react-native-davoice-tts 1.0.282 → 1.0.284
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.
- package/TTSRNBridge.podspec +1 -1
- package/package.json +1 -1
- package/speech/index.ts +6 -3
package/TTSRNBridge.podspec
CHANGED
|
@@ -2,7 +2,7 @@ require 'json'
|
|
|
2
2
|
|
|
3
3
|
Pod::Spec.new do |s|
|
|
4
4
|
s.name = "TTSRNBridge"
|
|
5
|
-
s.version = "1.0.
|
|
5
|
+
s.version = "1.0.157" # Update to your package version
|
|
6
6
|
s.summary = "TTS for React Native."
|
|
7
7
|
s.description = <<-DESC
|
|
8
8
|
A React Native module for tts .
|
package/package.json
CHANGED
package/speech/index.ts
CHANGED
|
@@ -329,9 +329,12 @@ class Speech {
|
|
|
329
329
|
|
|
330
330
|
/**
|
|
331
331
|
* ANDROID ONLY: Start remote STT and initialize TTS in playback-only mode (no model/ONNX init).
|
|
332
|
-
*
|
|
332
|
+
* Accepts the same argument shape as initAllRemoteSTT() for API compatibility.
|
|
333
|
+
* model/onboardingJsonPath are intentionally ignored on Android for now.
|
|
333
334
|
*/
|
|
334
|
-
async initAllRemoteSTTAndTTS(
|
|
335
|
+
async initAllRemoteSTTAndTTS(
|
|
336
|
+
_modelOrOpts?: ModelRef | { model: ModelRef; onboardingJsonPath?: string },
|
|
337
|
+
): Promise<void> {
|
|
335
338
|
if (Platform.OS !== 'android') {
|
|
336
339
|
throw new Error('initAllRemoteSTTAndTTS is Android-only.');
|
|
337
340
|
}
|
|
@@ -353,7 +356,7 @@ class Speech {
|
|
|
353
356
|
}
|
|
354
357
|
await NativeTTS.initTTSPlaybackOnly();
|
|
355
358
|
this.androidTtsPlaybackOnly = true;
|
|
356
|
-
await sleep(
|
|
359
|
+
await sleep(500);
|
|
357
360
|
}
|
|
358
361
|
|
|
359
362
|
dbgModel(label: string, model: any) {
|