diff --git a/OsmAnd/assets/bundled_assets.xml b/OsmAnd/assets/bundled_assets.xml
index 919b33dcee..b42af62bc6 100644
--- a/OsmAnd/assets/bundled_assets.xml
+++ b/OsmAnd/assets/bundled_assets.xml
@@ -64,7 +64,7 @@
-
+
diff --git a/OsmAnd/src/net/osmand/plus/resources/ResourceManager.java b/OsmAnd/src/net/osmand/plus/resources/ResourceManager.java
index a5b73a46c7..44db1f7a00 100644
--- a/OsmAnd/src/net/osmand/plus/resources/ResourceManager.java
+++ b/OsmAnd/src/net/osmand/plus/resources/ResourceManager.java
@@ -428,8 +428,15 @@ public class ResourceManager {
if (appPath.canWrite()) {
for (Map.Entry entry : mapping.entrySet()) {
File jsFile = new File(appPath, entry.getValue());
+ if (entry.getValue().contains("-tts") && entry.getValue()
+ .endsWith(IndexConstants.TTSVOICE_INDEX_EXT_JS)) {
+ File oggFile = new File(appPath, entry.getValue().replace("-tts", ""));
+ if (oggFile.getParentFile().exists() && !oggFile.exists()) {
+ copyAssets(context.getAssets(), entry.getKey(), oggFile);
+ }
+ }
if (jsFile.getParentFile().exists() && !jsFile.exists()) {
- ResourceManager.copyAssets(context.getAssets(), entry.getKey(), jsFile);
+ copyAssets(context.getAssets(), entry.getKey(), jsFile);
}
}
}