react-native-davoice-tts 1.0.359 → 1.0.361
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 +3 -7
- package/android/.gradle/9.2.0/checksums/checksums.lock +0 -0
- package/android/.gradle/9.2.0/fileChanges/last-build.bin +0 -0
- package/android/.gradle/9.2.0/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/9.2.0/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/9.2.0/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -2
- package/android/build/reports/problems/problems-report.html +659 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/Info.plist +5 -5
- 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 +431 -543
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.private.swiftinterface +0 -1
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.swiftinterface +0 -1
- 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 +431 -543
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +0 -1
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.swiftinterface +0 -1
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.abi.json +431 -543
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +0 -1
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +0 -1
- 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 +24 -24
- package/package.json +1 -1
- package/speech/audioRoutingConfig.md +79 -0
- package/speech/index.ts +30 -1
- package/ios/TTSRNBridge/libphonemes.a +0 -0
- package/ios/TTSRNBridge/libphonemes.xcframework/Info.plist +0 -48
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64/Headers/libphonemes.a +0 -0
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64/Headers/libucd.a +0 -0
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64/Headers/module.modulemap +0 -5
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64/Headers/phonemes.h +0 -41
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64/Headers/phonemes.podspec +0 -15
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64/Headers/phonemes_dir/en_dict +0 -0
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64/Headers/phonemes_dir/intonations +0 -0
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64/Headers/phonemes_dir/lang/gmw/en-US +0 -15
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64/Headers/phonemes_dir/phondata +0 -0
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64/Headers/phonemes_dir/phonindex +0 -0
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64/Headers/phonemes_dir/phontab +0 -0
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64/Headers/ucd.h +0 -1085
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64/libphonemes.a +0 -0
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64_x86_64-simulator/Headers/libphonemes.a +0 -0
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64_x86_64-simulator/Headers/libucd.a +0 -0
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64_x86_64-simulator/Headers/module.modulemap +0 -5
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64_x86_64-simulator/Headers/phonemes.h +0 -41
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64_x86_64-simulator/Headers/phonemes.podspec +0 -15
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64_x86_64-simulator/Headers/phonemes_dir/en_dict +0 -0
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64_x86_64-simulator/Headers/phonemes_dir/intonations +0 -0
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64_x86_64-simulator/Headers/phonemes_dir/lang/gmw/en-US +0 -15
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64_x86_64-simulator/Headers/phonemes_dir/phondata +0 -0
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64_x86_64-simulator/Headers/phonemes_dir/phonindex +0 -0
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64_x86_64-simulator/Headers/phonemes_dir/phontab +0 -0
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64_x86_64-simulator/Headers/ucd.h +0 -1085
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64_x86_64-simulator/libphonemes.a +0 -0
- package/ios/TTSRNBridge/libucd.a +0 -0
- package/ios/TTSRNBridge/libucd.xcframework/Info.plist +0 -48
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64/Headers/libphonemes.a +0 -0
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64/Headers/libucd.a +0 -0
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64/Headers/module.modulemap +0 -5
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64/Headers/phonemes.h +0 -41
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64/Headers/phonemes.podspec +0 -15
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64/Headers/phonemes_dir/en_dict +0 -0
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64/Headers/phonemes_dir/intonations +0 -0
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64/Headers/phonemes_dir/lang/gmw/en-US +0 -15
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64/Headers/phonemes_dir/phondata +0 -0
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64/Headers/phonemes_dir/phonindex +0 -0
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64/Headers/phonemes_dir/phontab +0 -0
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64/Headers/ucd.h +0 -1085
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64/libucd.a +0 -0
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64_x86_64-simulator/Headers/libphonemes.a +0 -0
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64_x86_64-simulator/Headers/libucd.a +0 -0
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64_x86_64-simulator/Headers/module.modulemap +0 -5
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64_x86_64-simulator/Headers/phonemes.h +0 -41
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64_x86_64-simulator/Headers/phonemes.podspec +0 -15
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64_x86_64-simulator/Headers/phonemes_dir/en_dict +0 -0
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64_x86_64-simulator/Headers/phonemes_dir/intonations +0 -0
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64_x86_64-simulator/Headers/phonemes_dir/lang/gmw/en-US +0 -15
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64_x86_64-simulator/Headers/phonemes_dir/phondata +0 -0
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64_x86_64-simulator/Headers/phonemes_dir/phonindex +0 -0
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64_x86_64-simulator/Headers/phonemes_dir/phontab +0 -0
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64_x86_64-simulator/Headers/ucd.h +0 -1085
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64_x86_64-simulator/libucd.a +0 -0
|
@@ -15,7 +15,6 @@ import _Concurrency
|
|
|
15
15
|
import _StringProcessing
|
|
16
16
|
import _SwiftConcurrencyShims
|
|
17
17
|
import onnxruntime_objc
|
|
18
|
-
import phonemes
|
|
19
18
|
import ObjectiveC.runtime
|
|
20
19
|
public typealias EngineSchedule = (_ url: Foundation.URL, _ onDone: @escaping () -> Swift.Void) -> Swift.Bool
|
|
21
20
|
public typealias IsEngineReady = () -> Swift.Bool
|
|
@@ -15,7 +15,6 @@ import _Concurrency
|
|
|
15
15
|
import _StringProcessing
|
|
16
16
|
import _SwiftConcurrencyShims
|
|
17
17
|
import onnxruntime_objc
|
|
18
|
-
import phonemes
|
|
19
18
|
import ObjectiveC.runtime
|
|
20
19
|
public typealias EngineSchedule = (_ url: Foundation.URL, _ onDone: @escaping () -> Swift.Void) -> Swift.Bool
|
|
21
20
|
public typealias IsEngineReady = () -> Swift.Bool
|
|
Binary file
|
|
Binary file
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
</data>
|
|
15
15
|
<key>Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
|
|
16
16
|
<data>
|
|
17
|
-
|
|
17
|
+
DU9JyBlcaUtgxXUGLwgwpteHqkA=
|
|
18
18
|
</data>
|
|
19
19
|
<key>Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
|
|
20
20
|
<data>
|
|
21
|
-
|
|
21
|
+
nJGa9a3X0P/C5O0dZf1NYhjqyhc=
|
|
22
22
|
</data>
|
|
23
23
|
<key>Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
|
|
24
24
|
<data>
|
|
@@ -26,19 +26,19 @@
|
|
|
26
26
|
</data>
|
|
27
27
|
<key>Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key>
|
|
28
28
|
<data>
|
|
29
|
-
|
|
29
|
+
nJGa9a3X0P/C5O0dZf1NYhjqyhc=
|
|
30
30
|
</data>
|
|
31
31
|
<key>Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
|
|
32
32
|
<data>
|
|
33
|
-
|
|
33
|
+
KZHqcEQQl+nQFm9sSDYmYocm2IY=
|
|
34
34
|
</data>
|
|
35
35
|
<key>Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
|
|
36
36
|
<data>
|
|
37
|
-
|
|
37
|
+
DU9JyBlcaUtgxXUGLwgwpteHqkA=
|
|
38
38
|
</data>
|
|
39
39
|
<key>Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
|
|
40
40
|
<data>
|
|
41
|
-
|
|
41
|
+
KW3zq20fxSNKp3z3d7TcznPWiP4=
|
|
42
42
|
</data>
|
|
43
43
|
<key>Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
|
|
44
44
|
<data>
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
</data>
|
|
47
47
|
<key>Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
|
|
48
48
|
<data>
|
|
49
|
-
|
|
49
|
+
KW3zq20fxSNKp3z3d7TcznPWiP4=
|
|
50
50
|
</data>
|
|
51
51
|
<key>Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
|
|
52
52
|
<data>
|
|
53
|
-
|
|
53
|
+
iriVmzH4XpRl5t6jH/tphfJi9W0=
|
|
54
54
|
</data>
|
|
55
55
|
<key>Modules/module.modulemap</key>
|
|
56
56
|
<data>
|
|
@@ -74,22 +74,22 @@
|
|
|
74
74
|
<dict>
|
|
75
75
|
<key>hash</key>
|
|
76
76
|
<data>
|
|
77
|
-
|
|
77
|
+
DU9JyBlcaUtgxXUGLwgwpteHqkA=
|
|
78
78
|
</data>
|
|
79
79
|
<key>hash2</key>
|
|
80
80
|
<data>
|
|
81
|
-
|
|
81
|
+
27Jd/Wg2gx5wcJLY1W2gYqdc4I9yQJ+gInS2OMlX0y4=
|
|
82
82
|
</data>
|
|
83
83
|
</dict>
|
|
84
84
|
<key>Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
|
|
85
85
|
<dict>
|
|
86
86
|
<key>hash</key>
|
|
87
87
|
<data>
|
|
88
|
-
|
|
88
|
+
nJGa9a3X0P/C5O0dZf1NYhjqyhc=
|
|
89
89
|
</data>
|
|
90
90
|
<key>hash2</key>
|
|
91
91
|
<data>
|
|
92
|
-
|
|
92
|
+
0iPH5zlEtAJ3NTDgWPDwrXa3fCLwpTV8+wfrCWoLQsc=
|
|
93
93
|
</data>
|
|
94
94
|
</dict>
|
|
95
95
|
<key>Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
|
|
@@ -107,44 +107,44 @@
|
|
|
107
107
|
<dict>
|
|
108
108
|
<key>hash</key>
|
|
109
109
|
<data>
|
|
110
|
-
|
|
110
|
+
nJGa9a3X0P/C5O0dZf1NYhjqyhc=
|
|
111
111
|
</data>
|
|
112
112
|
<key>hash2</key>
|
|
113
113
|
<data>
|
|
114
|
-
|
|
114
|
+
0iPH5zlEtAJ3NTDgWPDwrXa3fCLwpTV8+wfrCWoLQsc=
|
|
115
115
|
</data>
|
|
116
116
|
</dict>
|
|
117
117
|
<key>Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
|
|
118
118
|
<dict>
|
|
119
119
|
<key>hash</key>
|
|
120
120
|
<data>
|
|
121
|
-
|
|
121
|
+
KZHqcEQQl+nQFm9sSDYmYocm2IY=
|
|
122
122
|
</data>
|
|
123
123
|
<key>hash2</key>
|
|
124
124
|
<data>
|
|
125
|
-
|
|
125
|
+
0XmrrcyTgnWcxH5non8Y4DMeKumMjZVwrwmU21RTmFs=
|
|
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
|
+
DU9JyBlcaUtgxXUGLwgwpteHqkA=
|
|
133
133
|
</data>
|
|
134
134
|
<key>hash2</key>
|
|
135
135
|
<data>
|
|
136
|
-
|
|
136
|
+
27Jd/Wg2gx5wcJLY1W2gYqdc4I9yQJ+gInS2OMlX0y4=
|
|
137
137
|
</data>
|
|
138
138
|
</dict>
|
|
139
139
|
<key>Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
|
|
140
140
|
<dict>
|
|
141
141
|
<key>hash</key>
|
|
142
142
|
<data>
|
|
143
|
-
|
|
143
|
+
KW3zq20fxSNKp3z3d7TcznPWiP4=
|
|
144
144
|
</data>
|
|
145
145
|
<key>hash2</key>
|
|
146
146
|
<data>
|
|
147
|
-
|
|
147
|
+
Zry/ZX+dhZk8czEu6juDVYa+TcZniSIP3m4nuPxQW8k=
|
|
148
148
|
</data>
|
|
149
149
|
</dict>
|
|
150
150
|
<key>Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
|
|
@@ -162,22 +162,22 @@
|
|
|
162
162
|
<dict>
|
|
163
163
|
<key>hash</key>
|
|
164
164
|
<data>
|
|
165
|
-
|
|
165
|
+
KW3zq20fxSNKp3z3d7TcznPWiP4=
|
|
166
166
|
</data>
|
|
167
167
|
<key>hash2</key>
|
|
168
168
|
<data>
|
|
169
|
-
|
|
169
|
+
Zry/ZX+dhZk8czEu6juDVYa+TcZniSIP3m4nuPxQW8k=
|
|
170
170
|
</data>
|
|
171
171
|
</dict>
|
|
172
172
|
<key>Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
|
|
173
173
|
<dict>
|
|
174
174
|
<key>hash</key>
|
|
175
175
|
<data>
|
|
176
|
-
|
|
176
|
+
iriVmzH4XpRl5t6jH/tphfJi9W0=
|
|
177
177
|
</data>
|
|
178
178
|
<key>hash2</key>
|
|
179
179
|
<data>
|
|
180
|
-
|
|
180
|
+
61xsn9lZAHJUXZJ9ELKK+6PPx5RHYdyUFqWvsxQlWFI=
|
|
181
181
|
</data>
|
|
182
182
|
</dict>
|
|
183
183
|
<key>Modules/module.modulemap</key>
|
package/package.json
CHANGED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# iOS Audio Routing Input Preferences
|
|
2
|
+
|
|
3
|
+
Set the routing JSON before speech initialization:
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
await Speech.setAudioRoutingConfig(audioRoutingConfig);
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Every `RouteConfigEntry` has an ordered input preference chain:
|
|
10
|
+
|
|
11
|
+
1. `preferredInput`
|
|
12
|
+
2. `forceFallback`
|
|
13
|
+
3. `forceFallback1`
|
|
14
|
+
4. `forceFallback2`
|
|
15
|
+
|
|
16
|
+
The older `preferredInputFallback`, `preferredInputFallback1`, and
|
|
17
|
+
`preferredInputFallback2` names remain accepted as aliases. The exact lowercase
|
|
18
|
+
`forcefallback` spelling is also accepted, but TypeScript code should use
|
|
19
|
+
`forceFallback`.
|
|
20
|
+
|
|
21
|
+
Each field accepts:
|
|
22
|
+
|
|
23
|
+
- `bluetoothHighQualityMic`: an iOS 26 Bluetooth input that reports support for
|
|
24
|
+
Apple's high-quality recording capability.
|
|
25
|
+
- `builtInMic`: the iPhone/iPad microphone.
|
|
26
|
+
- `none`: clear the app's preferred input and let iOS choose.
|
|
27
|
+
|
|
28
|
+
The library activates the configured audio-session category before inspecting
|
|
29
|
+
inputs. When `bluetoothHighQualityRecording` is present, the native library
|
|
30
|
+
also enables A2DP for the primary HD attempt if the app omitted it. If the HD
|
|
31
|
+
request fails, fallback entries are forced audio-session policies rather than
|
|
32
|
+
input-only requests:
|
|
33
|
+
|
|
34
|
+
- `builtInMic` removes HD/HFP, enables A2DP, and verifies the device microphone.
|
|
35
|
+
- `none` removes HD/A2DP, enables ordinary HFP, and clears the preferred input.
|
|
36
|
+
|
|
37
|
+
Unsupported, unavailable, invalid, or failed candidates continue to the next
|
|
38
|
+
fallback. Duplicate values are ignored. Existing entries without any
|
|
39
|
+
preferred-input field behave as `preferredInput: "none"` without manufacturing
|
|
40
|
+
an HD-failure fallback.
|
|
41
|
+
|
|
42
|
+
## Preserve High-Quality Music on Fallback
|
|
43
|
+
|
|
44
|
+
```ts
|
|
45
|
+
const entry: RouteConfigEntry = {
|
|
46
|
+
category: 'playAndRecord',
|
|
47
|
+
mode: 'default',
|
|
48
|
+
options: [
|
|
49
|
+
'mixWithOthers',
|
|
50
|
+
'allowBluetoothA2DP',
|
|
51
|
+
'bluetoothHighQualityRecording',
|
|
52
|
+
],
|
|
53
|
+
preferredInput: 'bluetoothHighQualityMic',
|
|
54
|
+
forceFallback: 'builtInMic',
|
|
55
|
+
};
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Accept HFP/Call-Quality Fallback
|
|
59
|
+
|
|
60
|
+
```ts
|
|
61
|
+
const entry: RouteConfigEntry = {
|
|
62
|
+
category: 'playAndRecord',
|
|
63
|
+
mode: 'default',
|
|
64
|
+
options: [
|
|
65
|
+
'mixWithOthers',
|
|
66
|
+
'bluetoothHighQualityRecording',
|
|
67
|
+
],
|
|
68
|
+
preferredInput: 'bluetoothHighQualityMic',
|
|
69
|
+
forceFallback: 'none',
|
|
70
|
+
};
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
In this fallback position, `none` forces the ordinary HFP-capable category
|
|
74
|
+
policy and then clears the preferred input. HFP may reduce Bluetooth output
|
|
75
|
+
quality.
|
|
76
|
+
|
|
77
|
+
`bluetoothHighQualityRecording` requires iOS 26 and `mode: "default"`. Apply the
|
|
78
|
+
same input policy to `WhenPlayingAudio.onPlay` if TTS/WAV playback should retain
|
|
79
|
+
the selected microphone route.
|
package/speech/index.ts
CHANGED
|
@@ -81,6 +81,11 @@ export type RNAssetLike = any; // keep permissive (Metro asset numbers/objects v
|
|
|
81
81
|
export type ModelRef = string | RNAssetLike;
|
|
82
82
|
|
|
83
83
|
/** iOS AVAudioSession routing entry shared by STT and TTS. */
|
|
84
|
+
export type PreferredAudioInput =
|
|
85
|
+
| 'bluetoothHighQualityMic'
|
|
86
|
+
| 'builtInMic'
|
|
87
|
+
| 'none';
|
|
88
|
+
|
|
84
89
|
export type RouteConfigEntry = {
|
|
85
90
|
category: 'playAndRecord' | 'record' | 'soloAmbient' | 'ambient' | 'playback';
|
|
86
91
|
mode: 'default' | 'measurement' | 'voiceChat' | 'videoRecording' | 'gameChat';
|
|
@@ -88,12 +93,36 @@ export type RouteConfigEntry = {
|
|
|
88
93
|
| 'mixWithOthers'
|
|
89
94
|
| 'duckOthers'
|
|
90
95
|
| 'allowBluetooth'
|
|
96
|
+
| 'allowBluetoothHFP'
|
|
91
97
|
| 'allowBluetoothA2DP'
|
|
98
|
+
| 'bluetoothHighQualityRecording'
|
|
92
99
|
| 'allowAirPlay'
|
|
93
100
|
| 'defaultToSpeaker'
|
|
94
101
|
| 'overrideMutedMicrophoneInterruption'
|
|
95
102
|
)[];
|
|
96
|
-
|
|
103
|
+
/** First input policy to try. HD Bluetooth requires iOS 26, mode=default, and bluetoothHighQualityRecording. */
|
|
104
|
+
preferredInput: PreferredAudioInput;
|
|
105
|
+
/**
|
|
106
|
+
* Forced fallback after an HD Bluetooth request fails. builtInMic switches
|
|
107
|
+
* to phone-mic + A2DP; none switches to ordinary headset HFP.
|
|
108
|
+
*/
|
|
109
|
+
forceFallback?: PreferredAudioInput;
|
|
110
|
+
/** Lowercase JSON alias for forceFallback. Prefer forceFallback in TypeScript. */
|
|
111
|
+
forcefallback?: PreferredAudioInput;
|
|
112
|
+
/** Backward-compatible alias for forceFallback. */
|
|
113
|
+
preferredInputFallback?: PreferredAudioInput;
|
|
114
|
+
/** Additional forced fallback after forceFallback. */
|
|
115
|
+
forceFallback1?: PreferredAudioInput;
|
|
116
|
+
/** Lowercase JSON alias for forceFallback1. */
|
|
117
|
+
forcefallback1?: PreferredAudioInput;
|
|
118
|
+
/** Backward-compatible alias for forceFallback1. */
|
|
119
|
+
preferredInputFallback1?: PreferredAudioInput;
|
|
120
|
+
/** Final forced fallback. */
|
|
121
|
+
forceFallback2?: PreferredAudioInput;
|
|
122
|
+
/** Lowercase JSON alias for forceFallback2. */
|
|
123
|
+
forcefallback2?: PreferredAudioInput;
|
|
124
|
+
/** Backward-compatible alias for forceFallback2. */
|
|
125
|
+
preferredInputFallback2?: PreferredAudioInput;
|
|
97
126
|
/** On onFinishPlaying, deactivate with notifyOthersOnDeactivation before restoring regular routing. */
|
|
98
127
|
notifyOthers?: boolean;
|
|
99
128
|
};
|
|
Binary file
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>AvailableLibraries</key>
|
|
6
|
-
<array>
|
|
7
|
-
<dict>
|
|
8
|
-
<key>BinaryPath</key>
|
|
9
|
-
<string>libphonemes.a</string>
|
|
10
|
-
<key>HeadersPath</key>
|
|
11
|
-
<string>Headers</string>
|
|
12
|
-
<key>LibraryIdentifier</key>
|
|
13
|
-
<string>ios-arm64_x86_64-simulator</string>
|
|
14
|
-
<key>LibraryPath</key>
|
|
15
|
-
<string>libphonemes.a</string>
|
|
16
|
-
<key>SupportedArchitectures</key>
|
|
17
|
-
<array>
|
|
18
|
-
<string>arm64</string>
|
|
19
|
-
<string>x86_64</string>
|
|
20
|
-
</array>
|
|
21
|
-
<key>SupportedPlatform</key>
|
|
22
|
-
<string>ios</string>
|
|
23
|
-
<key>SupportedPlatformVariant</key>
|
|
24
|
-
<string>simulator</string>
|
|
25
|
-
</dict>
|
|
26
|
-
<dict>
|
|
27
|
-
<key>BinaryPath</key>
|
|
28
|
-
<string>libphonemes.a</string>
|
|
29
|
-
<key>HeadersPath</key>
|
|
30
|
-
<string>Headers</string>
|
|
31
|
-
<key>LibraryIdentifier</key>
|
|
32
|
-
<string>ios-arm64</string>
|
|
33
|
-
<key>LibraryPath</key>
|
|
34
|
-
<string>libphonemes.a</string>
|
|
35
|
-
<key>SupportedArchitectures</key>
|
|
36
|
-
<array>
|
|
37
|
-
<string>arm64</string>
|
|
38
|
-
</array>
|
|
39
|
-
<key>SupportedPlatform</key>
|
|
40
|
-
<string>ios</string>
|
|
41
|
-
</dict>
|
|
42
|
-
</array>
|
|
43
|
-
<key>CFBundlePackageType</key>
|
|
44
|
-
<string>XFWK</string>
|
|
45
|
-
<key>XCFrameworkFormatVersion</key>
|
|
46
|
-
<string>1.0</string>
|
|
47
|
-
</dict>
|
|
48
|
-
</plist>
|
|
Binary file
|
|
Binary file
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
#ifndef PHONEME_LIB_H
|
|
2
|
-
#define PHONEME_LIB_H
|
|
3
|
-
|
|
4
|
-
#ifdef __cplusplus
|
|
5
|
-
extern "C"
|
|
6
|
-
#endif
|
|
7
|
-
typedef enum {
|
|
8
|
-
PHONE_ONE,
|
|
9
|
-
PHONE_TWO,
|
|
10
|
-
PHONE_THREE,
|
|
11
|
-
PHONE_FOUR
|
|
12
|
-
} phonemes_number;
|
|
13
|
-
#ifdef __cplusplus
|
|
14
|
-
extern "C"
|
|
15
|
-
#endif
|
|
16
|
-
int phoneme_Initialize(phonemes_number output, int buflength, const char *path, int options);
|
|
17
|
-
|
|
18
|
-
#ifdef __cplusplus
|
|
19
|
-
extern "C"
|
|
20
|
-
#endif
|
|
21
|
-
typedef enum {
|
|
22
|
-
OK=0,
|
|
23
|
-
IE=-1,
|
|
24
|
-
BE=1,
|
|
25
|
-
NA=2
|
|
26
|
-
} phonemes_errors;
|
|
27
|
-
|
|
28
|
-
#ifdef __cplusplus
|
|
29
|
-
extern "C"
|
|
30
|
-
#endif
|
|
31
|
-
phonemes_errors phoneme_language(const char *name);
|
|
32
|
-
|
|
33
|
-
#ifdef __cplusplus
|
|
34
|
-
extern "C"
|
|
35
|
-
#endif
|
|
36
|
-
const char *phoneme_text_to_phonemes(const void **textptr, int textmode, int phonememode);
|
|
37
|
-
#ifdef __cplusplus
|
|
38
|
-
extern "C"
|
|
39
|
-
#endif
|
|
40
|
-
const char *phoneme_text_to_phoneme_punct(const void **textptr, int textmode, int phonememode, int *terminator);
|
|
41
|
-
#endif
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
Pod::Spec.new do |s|
|
|
2
|
-
s.name = 'phonemes'
|
|
3
|
-
s.version = '1.0.3'
|
|
4
|
-
s.summary = 'phonemes for iOS'
|
|
5
|
-
s.license = { :type => 'GPL-3.0' }
|
|
6
|
-
s.author = { 'Phoneme' => 'o@o.com' }
|
|
7
|
-
s.homepage = "https://github.com/frymanofer/tbd.git" # Update with your repo URL
|
|
8
|
-
s.platform = :ios, '12.0'
|
|
9
|
-
s.source = { :path => '.' } # local pod
|
|
10
|
-
s.vendored_frameworks = '../phonemes-xcfw/libphonemes.xcframework',
|
|
11
|
-
'../phonemes-xcfw/libucd.xcframework'
|
|
12
|
-
s.public_header_files = 'phonemes.h', 'ucd.h'
|
|
13
|
-
s.libraries = 'c++'
|
|
14
|
-
end
|
|
15
|
-
|
|
Binary file
|
|
Binary file
|
package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64/Headers/phonemes_dir/lang/gmw/en-US
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
name English (America)
|
|
2
|
-
language en-us 2
|
|
3
|
-
language en 3
|
|
4
|
-
|
|
5
|
-
maintainer Reece H. Dunn <msclrhd@gmail.com>
|
|
6
|
-
status mature
|
|
7
|
-
|
|
8
|
-
phonemes en-us
|
|
9
|
-
dictrules 3 6
|
|
10
|
-
|
|
11
|
-
stressLength 140 120 190 170 0 0 255 300
|
|
12
|
-
stressAmp 17 16 19 19 19 19 21 19
|
|
13
|
-
|
|
14
|
-
replace 03 I i
|
|
15
|
-
replace 03 I2 i
|
|
Binary file
|
|
Binary file
|