@focus8/expo-acapela-tts 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,7 +12,7 @@ class ExpoAcapelaTtsModule : Module(), iTTSEventsCallback {
12
12
  private var tts: acattsandroid? = null
13
13
  private var isInitialized = false
14
14
  private var currentVoice: String? = null
15
- private var voicePaths = mutableListOf("/system/media/voices", "/data/media/voices")
15
+ private var voicePaths = mutableListOf("/sdcard/voices", "/system/media/voices", "/data/media/voices")
16
16
  private var licenseUserId: Long? = null
17
17
  private var licensePassword: Long? = null
18
18
  private var licenseKey: String? = null
@@ -117,8 +117,21 @@ class ExpoAcapelaTtsModule : Module(), iTTSEventsCallback {
117
117
 
118
118
  try {
119
119
  val voiceDirPaths = voicePaths.toTypedArray()
120
+ logInfo("getVoicesAsync: scanning paths: ${voiceDirPaths.joinToString()}")
121
+ for (path in voiceDirPaths) {
122
+ val dir = java.io.File(path)
123
+ if (dir.exists()) {
124
+ val files = dir.list() ?: emptyArray()
125
+ logInfo(" Path $path: exists=${dir.exists()}, canRead=${dir.canRead()}, entries=${files.size}")
126
+ } else {
127
+ logInfo(" Path $path: does not exist")
128
+ }
129
+ }
120
130
  val voicesList = tts!!.getVoicesList(voiceDirPaths) ?: emptyArray()
121
131
  logInfo("Found ${voicesList.size} voices")
132
+ for (v in voicesList) {
133
+ logInfo(" Voice: $v")
134
+ }
122
135
 
123
136
  val voices = voicesList.map { voiceName ->
124
137
  val info = tts!!.getVoiceInfo(voiceName) ?: emptyMap()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@focus8/expo-acapela-tts",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Acapela TTS integration for Expo on Android",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",