Skip to content

Commit

Permalink
corrections2 - still not compiles
Browse files Browse the repository at this point in the history
  • Loading branch information
mah92 committed Feb 17, 2025
1 parent 5d69dab commit c76b5c1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -319,10 +319,12 @@ class MainActivity : AppCompatActivity() {

val cacheConfig = getOfflineTtsCacheMechanismConfig(
dataDir = dataDir ?: "",
cacheSize = 20*1024*1024, // Fixed to 20 MBs
cacheSize = 20*1024*1024, // Default is 20 MBs
)!!

tts = OfflineTts(assetManager = assets, config = config, cacheConfig = cacheConfig)
val cache = new OfflineTtsCacheMechanism(cacheConfig)

tts = OfflineTts(assetManager = assets, config = config, cache = cache)
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,7 @@ object TtsEngine {
speed = PreferenceHelper(context).getSpeed()
speakerId = PreferenceHelper(context).getSid()

OfflineTtsCacheMechanismConfig config
auto cache = new OfflineTtsCacheMechanism(config)
val cache = new OfflineTtsCacheMechanism(cacheConfig)

tts = OfflineTts(assetManager = assets, config = config, cache = cache)
}
Expand Down

0 comments on commit c76b5c1

Please sign in to comment.