react-native-davoice-tts 1.0.262 → 1.0.265
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/android/libs/com/davoice/tts/1.0.0/tts-1.0.0.aar +0 -0
- package/android/libs/com/davoice/tts/1.0.0/tts-1.0.0.aar.md5 +1 -1
- package/android/libs/com/davoice/tts/1.0.0/tts-1.0.0.aar.sha1 +1 -1
- package/ios/SpeechBridge/SpeechBridge.m +4 -2
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/DavoiceTTS +0 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.abi.json +2970 -2970
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.private.swiftinterface +12 -12
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.swiftinterface +12 -12
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/DavoiceTTS +0 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.abi.json +8 -8
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.abi.json +8 -8
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/_CodeSignature/CodeDirectory +0 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/_CodeSignature/CodeRequirements-1 +0 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/_CodeSignature/CodeResources +12 -12
- package/package.json +1 -1
- package/speech/index.ts +11 -2
|
@@ -14,18 +14,6 @@ import _StringProcessing
|
|
|
14
14
|
import _SwiftConcurrencyShims
|
|
15
15
|
import onnxruntime_objc
|
|
16
16
|
import phonemes
|
|
17
|
-
public typealias EngineSchedule = (_ url: Foundation.URL, _ onDone: @escaping () -> Swift.Void) -> Swift.Bool
|
|
18
|
-
public typealias IsEngineReady = () -> Swift.Bool
|
|
19
|
-
public typealias useOnlyEnginePlayback = () -> Swift.Bool
|
|
20
|
-
public typealias StopEnginePlayback = () -> Swift.Void
|
|
21
|
-
public typealias CurrentEngineProvider = () -> AVFAudio.AVAudioEngine?
|
|
22
|
-
public enum AudioPlaybackHook {
|
|
23
|
-
public static var engineScheduleFile: DavoiceTTS.EngineSchedule?
|
|
24
|
-
public static var isEngineReady: DavoiceTTS.IsEngineReady?
|
|
25
|
-
public static var useOnlyEnginePlayback: DavoiceTTS.useOnlyEnginePlayback?
|
|
26
|
-
public static var stopEnginePlayback: DavoiceTTS.StopEnginePlayback?
|
|
27
|
-
public static var currentEngine: DavoiceTTS.CurrentEngineProvider?
|
|
28
|
-
}
|
|
29
17
|
@objc public protocol STTDelegate {
|
|
30
18
|
@objc func stt(_ stt: DavoiceTTS.STT, didEmitEvent name: Swift.String, body: [Swift.String : Any]?)
|
|
31
19
|
}
|
|
@@ -89,3 +77,15 @@ public enum AudioPlaybackHook {
|
|
|
89
77
|
@objc final public func playWav(_ url: Foundation.URL, markAsLastUtterance: Swift.Bool = true)
|
|
90
78
|
@objc final public func playBuffer(_ buffer: AVFAudio.AVAudioPCMBuffer, markAsLastUtterance: Swift.Bool = true)
|
|
91
79
|
}
|
|
80
|
+
public typealias EngineSchedule = (_ url: Foundation.URL, _ onDone: @escaping () -> Swift.Void) -> Swift.Bool
|
|
81
|
+
public typealias IsEngineReady = () -> Swift.Bool
|
|
82
|
+
public typealias useOnlyEnginePlayback = () -> Swift.Bool
|
|
83
|
+
public typealias StopEnginePlayback = () -> Swift.Void
|
|
84
|
+
public typealias CurrentEngineProvider = () -> AVFAudio.AVAudioEngine?
|
|
85
|
+
public enum AudioPlaybackHook {
|
|
86
|
+
public static var engineScheduleFile: DavoiceTTS.EngineSchedule?
|
|
87
|
+
public static var isEngineReady: DavoiceTTS.IsEngineReady?
|
|
88
|
+
public static var useOnlyEnginePlayback: DavoiceTTS.useOnlyEnginePlayback?
|
|
89
|
+
public static var stopEnginePlayback: DavoiceTTS.StopEnginePlayback?
|
|
90
|
+
public static var currentEngine: DavoiceTTS.CurrentEngineProvider?
|
|
91
|
+
}
|
|
@@ -14,18 +14,6 @@ import _StringProcessing
|
|
|
14
14
|
import _SwiftConcurrencyShims
|
|
15
15
|
import onnxruntime_objc
|
|
16
16
|
import phonemes
|
|
17
|
-
public typealias EngineSchedule = (_ url: Foundation.URL, _ onDone: @escaping () -> Swift.Void) -> Swift.Bool
|
|
18
|
-
public typealias IsEngineReady = () -> Swift.Bool
|
|
19
|
-
public typealias useOnlyEnginePlayback = () -> Swift.Bool
|
|
20
|
-
public typealias StopEnginePlayback = () -> Swift.Void
|
|
21
|
-
public typealias CurrentEngineProvider = () -> AVFAudio.AVAudioEngine?
|
|
22
|
-
public enum AudioPlaybackHook {
|
|
23
|
-
public static var engineScheduleFile: DavoiceTTS.EngineSchedule?
|
|
24
|
-
public static var isEngineReady: DavoiceTTS.IsEngineReady?
|
|
25
|
-
public static var useOnlyEnginePlayback: DavoiceTTS.useOnlyEnginePlayback?
|
|
26
|
-
public static var stopEnginePlayback: DavoiceTTS.StopEnginePlayback?
|
|
27
|
-
public static var currentEngine: DavoiceTTS.CurrentEngineProvider?
|
|
28
|
-
}
|
|
29
17
|
@objc public protocol STTDelegate {
|
|
30
18
|
@objc func stt(_ stt: DavoiceTTS.STT, didEmitEvent name: Swift.String, body: [Swift.String : Any]?)
|
|
31
19
|
}
|
|
@@ -89,3 +77,15 @@ public enum AudioPlaybackHook {
|
|
|
89
77
|
@objc final public func playWav(_ url: Foundation.URL, markAsLastUtterance: Swift.Bool = true)
|
|
90
78
|
@objc final public func playBuffer(_ buffer: AVFAudio.AVAudioPCMBuffer, markAsLastUtterance: Swift.Bool = true)
|
|
91
79
|
}
|
|
80
|
+
public typealias EngineSchedule = (_ url: Foundation.URL, _ onDone: @escaping () -> Swift.Void) -> Swift.Bool
|
|
81
|
+
public typealias IsEngineReady = () -> Swift.Bool
|
|
82
|
+
public typealias useOnlyEnginePlayback = () -> Swift.Bool
|
|
83
|
+
public typealias StopEnginePlayback = () -> Swift.Void
|
|
84
|
+
public typealias CurrentEngineProvider = () -> AVFAudio.AVAudioEngine?
|
|
85
|
+
public enum AudioPlaybackHook {
|
|
86
|
+
public static var engineScheduleFile: DavoiceTTS.EngineSchedule?
|
|
87
|
+
public static var isEngineReady: DavoiceTTS.IsEngineReady?
|
|
88
|
+
public static var useOnlyEnginePlayback: DavoiceTTS.useOnlyEnginePlayback?
|
|
89
|
+
public static var stopEnginePlayback: DavoiceTTS.StopEnginePlayback?
|
|
90
|
+
public static var currentEngine: DavoiceTTS.CurrentEngineProvider?
|
|
91
|
+
}
|
|
Binary file
|
|
@@ -4415,56 +4415,56 @@
|
|
|
4415
4415
|
{
|
|
4416
4416
|
"filePath": "\/Volumes\/T9\/projects\/DavoiceTTSPrivate\/Sources\/DaVoiceSTT.swift",
|
|
4417
4417
|
"kind": "Array",
|
|
4418
|
-
"offset":
|
|
4418
|
+
"offset": 5139,
|
|
4419
4419
|
"length": 203,
|
|
4420
4420
|
"value": "[\"onSpeechResults\", \"onSpeechStart\", \"onSpeechPartialResults\", \"onSpeechError\", \"onSpeechEnd\", \"onSpeechRecognized\", \"onSpeechVolumeChanged\"]"
|
|
4421
4421
|
},
|
|
4422
4422
|
{
|
|
4423
4423
|
"filePath": "\/Volumes\/T9\/projects\/DavoiceTTSPrivate\/Sources\/DaVoiceSTT.swift",
|
|
4424
4424
|
"kind": "IntegerLiteral",
|
|
4425
|
-
"offset":
|
|
4425
|
+
"offset": 20695,
|
|
4426
4426
|
"length": 1,
|
|
4427
4427
|
"value": "0"
|
|
4428
4428
|
},
|
|
4429
4429
|
{
|
|
4430
4430
|
"filePath": "\/Volumes\/T9\/projects\/DavoiceTTSPrivate\/Sources\/DaVoiceSTT.swift",
|
|
4431
4431
|
"kind": "BooleanLiteral",
|
|
4432
|
-
"offset":
|
|
4432
|
+
"offset": 20855,
|
|
4433
4433
|
"length": 5,
|
|
4434
4434
|
"value": "false"
|
|
4435
4435
|
},
|
|
4436
4436
|
{
|
|
4437
4437
|
"filePath": "\/Volumes\/T9\/projects\/DavoiceTTSPrivate\/Sources\/DaVoiceSTT.swift",
|
|
4438
4438
|
"kind": "BooleanLiteral",
|
|
4439
|
-
"offset":
|
|
4439
|
+
"offset": 22387,
|
|
4440
4440
|
"length": 4,
|
|
4441
4441
|
"value": "true"
|
|
4442
4442
|
},
|
|
4443
4443
|
{
|
|
4444
4444
|
"filePath": "\/Volumes\/T9\/projects\/DavoiceTTSPrivate\/Sources\/DaVoiceSTT.swift",
|
|
4445
4445
|
"kind": "IntegerLiteral",
|
|
4446
|
-
"offset":
|
|
4446
|
+
"offset": 23184,
|
|
4447
4447
|
"length": 1,
|
|
4448
4448
|
"value": "0"
|
|
4449
4449
|
},
|
|
4450
4450
|
{
|
|
4451
4451
|
"filePath": "\/Volumes\/T9\/projects\/DavoiceTTSPrivate\/Sources\/DaVoiceSTT.swift",
|
|
4452
4452
|
"kind": "BooleanLiteral",
|
|
4453
|
-
"offset":
|
|
4453
|
+
"offset": 32491,
|
|
4454
4454
|
"length": 4,
|
|
4455
4455
|
"value": "true"
|
|
4456
4456
|
},
|
|
4457
4457
|
{
|
|
4458
4458
|
"filePath": "\/Volumes\/T9\/projects\/DavoiceTTSPrivate\/Sources\/DaVoiceSTT.swift",
|
|
4459
4459
|
"kind": "BooleanLiteral",
|
|
4460
|
-
"offset":
|
|
4460
|
+
"offset": 51921,
|
|
4461
4461
|
"length": 5,
|
|
4462
4462
|
"value": "false"
|
|
4463
4463
|
},
|
|
4464
4464
|
{
|
|
4465
4465
|
"filePath": "\/Volumes\/T9\/projects\/DavoiceTTSPrivate\/Sources\/DaVoiceSTT.swift",
|
|
4466
4466
|
"kind": "FloatLiteral",
|
|
4467
|
-
"offset":
|
|
4467
|
+
"offset": 66732,
|
|
4468
4468
|
"length": 3,
|
|
4469
4469
|
"value": "0.7"
|
|
4470
4470
|
},
|
|
@@ -4415,56 +4415,56 @@
|
|
|
4415
4415
|
{
|
|
4416
4416
|
"filePath": "\/Volumes\/T9\/projects\/DavoiceTTSPrivate\/Sources\/DaVoiceSTT.swift",
|
|
4417
4417
|
"kind": "Array",
|
|
4418
|
-
"offset":
|
|
4418
|
+
"offset": 5139,
|
|
4419
4419
|
"length": 203,
|
|
4420
4420
|
"value": "[\"onSpeechResults\", \"onSpeechStart\", \"onSpeechPartialResults\", \"onSpeechError\", \"onSpeechEnd\", \"onSpeechRecognized\", \"onSpeechVolumeChanged\"]"
|
|
4421
4421
|
},
|
|
4422
4422
|
{
|
|
4423
4423
|
"filePath": "\/Volumes\/T9\/projects\/DavoiceTTSPrivate\/Sources\/DaVoiceSTT.swift",
|
|
4424
4424
|
"kind": "IntegerLiteral",
|
|
4425
|
-
"offset":
|
|
4425
|
+
"offset": 20695,
|
|
4426
4426
|
"length": 1,
|
|
4427
4427
|
"value": "0"
|
|
4428
4428
|
},
|
|
4429
4429
|
{
|
|
4430
4430
|
"filePath": "\/Volumes\/T9\/projects\/DavoiceTTSPrivate\/Sources\/DaVoiceSTT.swift",
|
|
4431
4431
|
"kind": "BooleanLiteral",
|
|
4432
|
-
"offset":
|
|
4432
|
+
"offset": 20855,
|
|
4433
4433
|
"length": 5,
|
|
4434
4434
|
"value": "false"
|
|
4435
4435
|
},
|
|
4436
4436
|
{
|
|
4437
4437
|
"filePath": "\/Volumes\/T9\/projects\/DavoiceTTSPrivate\/Sources\/DaVoiceSTT.swift",
|
|
4438
4438
|
"kind": "BooleanLiteral",
|
|
4439
|
-
"offset":
|
|
4439
|
+
"offset": 22387,
|
|
4440
4440
|
"length": 4,
|
|
4441
4441
|
"value": "true"
|
|
4442
4442
|
},
|
|
4443
4443
|
{
|
|
4444
4444
|
"filePath": "\/Volumes\/T9\/projects\/DavoiceTTSPrivate\/Sources\/DaVoiceSTT.swift",
|
|
4445
4445
|
"kind": "IntegerLiteral",
|
|
4446
|
-
"offset":
|
|
4446
|
+
"offset": 23184,
|
|
4447
4447
|
"length": 1,
|
|
4448
4448
|
"value": "0"
|
|
4449
4449
|
},
|
|
4450
4450
|
{
|
|
4451
4451
|
"filePath": "\/Volumes\/T9\/projects\/DavoiceTTSPrivate\/Sources\/DaVoiceSTT.swift",
|
|
4452
4452
|
"kind": "BooleanLiteral",
|
|
4453
|
-
"offset":
|
|
4453
|
+
"offset": 32491,
|
|
4454
4454
|
"length": 4,
|
|
4455
4455
|
"value": "true"
|
|
4456
4456
|
},
|
|
4457
4457
|
{
|
|
4458
4458
|
"filePath": "\/Volumes\/T9\/projects\/DavoiceTTSPrivate\/Sources\/DaVoiceSTT.swift",
|
|
4459
4459
|
"kind": "BooleanLiteral",
|
|
4460
|
-
"offset":
|
|
4460
|
+
"offset": 51921,
|
|
4461
4461
|
"length": 5,
|
|
4462
4462
|
"value": "false"
|
|
4463
4463
|
},
|
|
4464
4464
|
{
|
|
4465
4465
|
"filePath": "\/Volumes\/T9\/projects\/DavoiceTTSPrivate\/Sources\/DaVoiceSTT.swift",
|
|
4466
4466
|
"kind": "FloatLiteral",
|
|
4467
|
-
"offset":
|
|
4467
|
+
"offset": 66732,
|
|
4468
4468
|
"length": 3,
|
|
4469
4469
|
"value": "0.7"
|
|
4470
4470
|
},
|
|
Binary file
|
|
Binary file
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
</data>
|
|
15
15
|
<key>Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
|
|
16
16
|
<data>
|
|
17
|
-
|
|
17
|
+
L1Y/Nj+pKITaEPQoq/Z3HfDTFc8=
|
|
18
18
|
</data>
|
|
19
19
|
<key>Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
|
|
20
20
|
<data>
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
</data>
|
|
31
31
|
<key>Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
|
|
32
32
|
<data>
|
|
33
|
-
|
|
33
|
+
DnOU03i6+UAs8grpgRX902J+Tgk=
|
|
34
34
|
</data>
|
|
35
35
|
<key>Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
|
|
36
36
|
<data>
|
|
37
|
-
|
|
37
|
+
L1Y/Nj+pKITaEPQoq/Z3HfDTFc8=
|
|
38
38
|
</data>
|
|
39
39
|
<key>Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
|
|
40
40
|
<data>
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
</data>
|
|
51
51
|
<key>Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
|
|
52
52
|
<data>
|
|
53
|
-
|
|
53
|
+
yImYXru+D+tEeZbTEK+NXYeEukY=
|
|
54
54
|
</data>
|
|
55
55
|
<key>Modules/module.modulemap</key>
|
|
56
56
|
<data>
|
|
@@ -74,11 +74,11 @@
|
|
|
74
74
|
<dict>
|
|
75
75
|
<key>hash</key>
|
|
76
76
|
<data>
|
|
77
|
-
|
|
77
|
+
L1Y/Nj+pKITaEPQoq/Z3HfDTFc8=
|
|
78
78
|
</data>
|
|
79
79
|
<key>hash2</key>
|
|
80
80
|
<data>
|
|
81
|
-
|
|
81
|
+
EevoH578jIOuLNX8Z4t9Al6EwracFmXbD7FfIfA9EKU=
|
|
82
82
|
</data>
|
|
83
83
|
</dict>
|
|
84
84
|
<key>Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
|
|
@@ -118,22 +118,22 @@
|
|
|
118
118
|
<dict>
|
|
119
119
|
<key>hash</key>
|
|
120
120
|
<data>
|
|
121
|
-
|
|
121
|
+
DnOU03i6+UAs8grpgRX902J+Tgk=
|
|
122
122
|
</data>
|
|
123
123
|
<key>hash2</key>
|
|
124
124
|
<data>
|
|
125
|
-
|
|
125
|
+
C6Hvdz400b0oH8p/EP/K8LnutU5azWunQLU30ZDSacg=
|
|
126
126
|
</data>
|
|
127
127
|
</dict>
|
|
128
128
|
<key>Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
|
|
129
129
|
<dict>
|
|
130
130
|
<key>hash</key>
|
|
131
131
|
<data>
|
|
132
|
-
|
|
132
|
+
L1Y/Nj+pKITaEPQoq/Z3HfDTFc8=
|
|
133
133
|
</data>
|
|
134
134
|
<key>hash2</key>
|
|
135
135
|
<data>
|
|
136
|
-
|
|
136
|
+
EevoH578jIOuLNX8Z4t9Al6EwracFmXbD7FfIfA9EKU=
|
|
137
137
|
</data>
|
|
138
138
|
</dict>
|
|
139
139
|
<key>Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
|
|
@@ -173,11 +173,11 @@
|
|
|
173
173
|
<dict>
|
|
174
174
|
<key>hash</key>
|
|
175
175
|
<data>
|
|
176
|
-
|
|
176
|
+
yImYXru+D+tEeZbTEK+NXYeEukY=
|
|
177
177
|
</data>
|
|
178
178
|
<key>hash2</key>
|
|
179
179
|
<data>
|
|
180
|
-
|
|
180
|
+
7ClmdNPVHwWv/Ziq1FUwEWFSg3X+oC6h93RTNU4tOqA=
|
|
181
181
|
</data>
|
|
182
182
|
</dict>
|
|
183
183
|
<key>Modules/module.modulemap</key>
|
package/package.json
CHANGED
package/speech/index.ts
CHANGED
|
@@ -412,7 +412,11 @@ class Speech {
|
|
|
412
412
|
// ---------- iOS-only: SpeechRecognitionLite pause/unpause ----------
|
|
413
413
|
pauseSpeechRecognition(): Promise<void> {
|
|
414
414
|
this.logCall('pauseSpeechRecognitionLite');
|
|
415
|
-
|
|
415
|
+
// ANDROID: route to pauseMicrophone()
|
|
416
|
+
if (Platform.OS === 'android') {
|
|
417
|
+
dbg('Android pauseSpeechRecognition -> pauseMicrophone()');
|
|
418
|
+
return this.pauseMicrophone();
|
|
419
|
+
}
|
|
416
420
|
|
|
417
421
|
if (!(NativeSpeech as any)?.pauseSpeechRecognitionLite) {
|
|
418
422
|
dbg('iOS pauseSpeechRecognitionLite not available on NativeSpeech');
|
|
@@ -433,7 +437,12 @@ class Speech {
|
|
|
433
437
|
|
|
434
438
|
unPauseSpeechRecognition(times: number): Promise<void> {
|
|
435
439
|
this.logCall('unPauseSpeechRecognitionLite', { times });
|
|
436
|
-
|
|
440
|
+
|
|
441
|
+
// ANDROID: route to unPauseMicrophone()
|
|
442
|
+
if (Platform.OS === 'android') {
|
|
443
|
+
dbg('Android unPauseSpeechRecognition -> unPauseMicrophone()');
|
|
444
|
+
return this.unPauseMicrophone();
|
|
445
|
+
}
|
|
437
446
|
|
|
438
447
|
if (!(NativeSpeech as any)?.unPauseSpeechRecognitionLite) {
|
|
439
448
|
dbg('iOS unPauseSpeechRecognitionLite(times) not available on NativeSpeech');
|