react-native-davoice-tts 1.0.359 → 1.0.360

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.
Files changed (82) hide show
  1. package/TTSRNBridge.podspec +3 -7
  2. package/android/.gradle/9.2.0/checksums/checksums.lock +0 -0
  3. package/android/.gradle/9.2.0/fileChanges/last-build.bin +0 -0
  4. package/android/.gradle/9.2.0/fileHashes/fileHashes.bin +0 -0
  5. package/android/.gradle/9.2.0/fileHashes/fileHashes.lock +0 -0
  6. package/android/.gradle/9.2.0/gc.properties +0 -0
  7. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  8. package/android/.gradle/buildOutputCleanup/cache.properties +2 -2
  9. package/android/build/reports/problems/problems-report.html +659 -0
  10. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/DavoiceTTS +0 -0
  11. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.abi.json +361 -466
  12. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.private.swiftinterface +0 -1
  13. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.swiftinterface +0 -1
  14. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/DavoiceTTS +0 -0
  15. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.abi.json +361 -466
  16. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +0 -1
  17. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.swiftinterface +0 -1
  18. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.abi.json +361 -466
  19. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +0 -1
  20. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +0 -1
  21. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/_CodeSignature/CodeDirectory +0 -0
  22. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/_CodeSignature/CodeRequirements-1 +0 -0
  23. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/_CodeSignature/CodeResources +24 -24
  24. package/package.json +1 -1
  25. package/speech/audioRoutingConfig.md +79 -0
  26. package/speech/index.ts +30 -1
  27. package/ios/TTSRNBridge/libphonemes.a +0 -0
  28. package/ios/TTSRNBridge/libphonemes.xcframework/Info.plist +0 -48
  29. package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64/Headers/libphonemes.a +0 -0
  30. package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64/Headers/libucd.a +0 -0
  31. package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64/Headers/module.modulemap +0 -5
  32. package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64/Headers/phonemes.h +0 -41
  33. package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64/Headers/phonemes.podspec +0 -15
  34. package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64/Headers/phonemes_dir/en_dict +0 -0
  35. package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64/Headers/phonemes_dir/intonations +0 -0
  36. package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64/Headers/phonemes_dir/lang/gmw/en-US +0 -15
  37. package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64/Headers/phonemes_dir/phondata +0 -0
  38. package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64/Headers/phonemes_dir/phonindex +0 -0
  39. package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64/Headers/phonemes_dir/phontab +0 -0
  40. package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64/Headers/ucd.h +0 -1085
  41. package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64/libphonemes.a +0 -0
  42. package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64_x86_64-simulator/Headers/libphonemes.a +0 -0
  43. package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64_x86_64-simulator/Headers/libucd.a +0 -0
  44. package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64_x86_64-simulator/Headers/module.modulemap +0 -5
  45. package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64_x86_64-simulator/Headers/phonemes.h +0 -41
  46. package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64_x86_64-simulator/Headers/phonemes.podspec +0 -15
  47. package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64_x86_64-simulator/Headers/phonemes_dir/en_dict +0 -0
  48. package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64_x86_64-simulator/Headers/phonemes_dir/intonations +0 -0
  49. package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64_x86_64-simulator/Headers/phonemes_dir/lang/gmw/en-US +0 -15
  50. package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64_x86_64-simulator/Headers/phonemes_dir/phondata +0 -0
  51. package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64_x86_64-simulator/Headers/phonemes_dir/phonindex +0 -0
  52. package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64_x86_64-simulator/Headers/phonemes_dir/phontab +0 -0
  53. package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64_x86_64-simulator/Headers/ucd.h +0 -1085
  54. package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64_x86_64-simulator/libphonemes.a +0 -0
  55. package/ios/TTSRNBridge/libucd.a +0 -0
  56. package/ios/TTSRNBridge/libucd.xcframework/Info.plist +0 -48
  57. package/ios/TTSRNBridge/libucd.xcframework/ios-arm64/Headers/libphonemes.a +0 -0
  58. package/ios/TTSRNBridge/libucd.xcframework/ios-arm64/Headers/libucd.a +0 -0
  59. package/ios/TTSRNBridge/libucd.xcframework/ios-arm64/Headers/module.modulemap +0 -5
  60. package/ios/TTSRNBridge/libucd.xcframework/ios-arm64/Headers/phonemes.h +0 -41
  61. package/ios/TTSRNBridge/libucd.xcframework/ios-arm64/Headers/phonemes.podspec +0 -15
  62. package/ios/TTSRNBridge/libucd.xcframework/ios-arm64/Headers/phonemes_dir/en_dict +0 -0
  63. package/ios/TTSRNBridge/libucd.xcframework/ios-arm64/Headers/phonemes_dir/intonations +0 -0
  64. package/ios/TTSRNBridge/libucd.xcframework/ios-arm64/Headers/phonemes_dir/lang/gmw/en-US +0 -15
  65. package/ios/TTSRNBridge/libucd.xcframework/ios-arm64/Headers/phonemes_dir/phondata +0 -0
  66. package/ios/TTSRNBridge/libucd.xcframework/ios-arm64/Headers/phonemes_dir/phonindex +0 -0
  67. package/ios/TTSRNBridge/libucd.xcframework/ios-arm64/Headers/phonemes_dir/phontab +0 -0
  68. package/ios/TTSRNBridge/libucd.xcframework/ios-arm64/Headers/ucd.h +0 -1085
  69. package/ios/TTSRNBridge/libucd.xcframework/ios-arm64/libucd.a +0 -0
  70. package/ios/TTSRNBridge/libucd.xcframework/ios-arm64_x86_64-simulator/Headers/libphonemes.a +0 -0
  71. package/ios/TTSRNBridge/libucd.xcframework/ios-arm64_x86_64-simulator/Headers/libucd.a +0 -0
  72. package/ios/TTSRNBridge/libucd.xcframework/ios-arm64_x86_64-simulator/Headers/module.modulemap +0 -5
  73. package/ios/TTSRNBridge/libucd.xcframework/ios-arm64_x86_64-simulator/Headers/phonemes.h +0 -41
  74. package/ios/TTSRNBridge/libucd.xcframework/ios-arm64_x86_64-simulator/Headers/phonemes.podspec +0 -15
  75. package/ios/TTSRNBridge/libucd.xcframework/ios-arm64_x86_64-simulator/Headers/phonemes_dir/en_dict +0 -0
  76. package/ios/TTSRNBridge/libucd.xcframework/ios-arm64_x86_64-simulator/Headers/phonemes_dir/intonations +0 -0
  77. package/ios/TTSRNBridge/libucd.xcframework/ios-arm64_x86_64-simulator/Headers/phonemes_dir/lang/gmw/en-US +0 -15
  78. package/ios/TTSRNBridge/libucd.xcframework/ios-arm64_x86_64-simulator/Headers/phonemes_dir/phondata +0 -0
  79. package/ios/TTSRNBridge/libucd.xcframework/ios-arm64_x86_64-simulator/Headers/phonemes_dir/phonindex +0 -0
  80. package/ios/TTSRNBridge/libucd.xcframework/ios-arm64_x86_64-simulator/Headers/phonemes_dir/phontab +0 -0
  81. package/ios/TTSRNBridge/libucd.xcframework/ios-arm64_x86_64-simulator/Headers/ucd.h +0 -1085
  82. 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
@@ -14,11 +14,11 @@
14
14
  </data>
15
15
  <key>Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
16
16
  <data>
17
- 87hjXbS837rFjayDqqaQc5FnBwk=
17
+ MY66E6WyBVXIl9BnfupeiL1jepk=
18
18
  </data>
19
19
  <key>Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
20
20
  <data>
21
- ZyhlusTBZJR5nsRChtEKG7V69dw=
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
- ZyhlusTBZJR5nsRChtEKG7V69dw=
29
+ nJGa9a3X0P/C5O0dZf1NYhjqyhc=
30
30
  </data>
31
31
  <key>Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
32
32
  <data>
33
- gsALhsAeRthLWNfghd5y2ZJc5q4=
33
+ I0ZZs1/VTcCYET0HUBB4e1m9NIQ=
34
34
  </data>
35
35
  <key>Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
36
36
  <data>
37
- 87hjXbS837rFjayDqqaQc5FnBwk=
37
+ MY66E6WyBVXIl9BnfupeiL1jepk=
38
38
  </data>
39
39
  <key>Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
40
40
  <data>
41
- hW6EhBLa/ZxKj2KJAqSrwSxdzTU=
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
- hW6EhBLa/ZxKj2KJAqSrwSxdzTU=
49
+ KW3zq20fxSNKp3z3d7TcznPWiP4=
50
50
  </data>
51
51
  <key>Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
52
52
  <data>
53
- 1THCI0NR7Tb/6JPy7ZxkB0mHz74=
53
+ JxTbIAPQqoY+QChG6blPBPcQe3I=
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
- 87hjXbS837rFjayDqqaQc5FnBwk=
77
+ MY66E6WyBVXIl9BnfupeiL1jepk=
78
78
  </data>
79
79
  <key>hash2</key>
80
80
  <data>
81
- OejYVi2uKIpHsHsXj7RYJoaaF4lRzYc7BG089edtMd4=
81
+ MLoKKgw4AYadSd11qBjHKKQzvkcpIvtr7OA/UIRwG24=
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
- ZyhlusTBZJR5nsRChtEKG7V69dw=
88
+ nJGa9a3X0P/C5O0dZf1NYhjqyhc=
89
89
  </data>
90
90
  <key>hash2</key>
91
91
  <data>
92
- QuNi+7J4KpxecZNJStl/0QcnCA8MXVxNKBKMIUlZM+4=
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
- ZyhlusTBZJR5nsRChtEKG7V69dw=
110
+ nJGa9a3X0P/C5O0dZf1NYhjqyhc=
111
111
  </data>
112
112
  <key>hash2</key>
113
113
  <data>
114
- QuNi+7J4KpxecZNJStl/0QcnCA8MXVxNKBKMIUlZM+4=
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
- gsALhsAeRthLWNfghd5y2ZJc5q4=
121
+ I0ZZs1/VTcCYET0HUBB4e1m9NIQ=
122
122
  </data>
123
123
  <key>hash2</key>
124
124
  <data>
125
- WA7exZZxTj9YHYemeJdNFlUVExpyv5BIW5LMSr/8gN0=
125
+ IQXV0Ijhyd+kB+sGiji73vddv9kY1Z+H+GeEHgpPS1w=
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
- 87hjXbS837rFjayDqqaQc5FnBwk=
132
+ MY66E6WyBVXIl9BnfupeiL1jepk=
133
133
  </data>
134
134
  <key>hash2</key>
135
135
  <data>
136
- OejYVi2uKIpHsHsXj7RYJoaaF4lRzYc7BG089edtMd4=
136
+ MLoKKgw4AYadSd11qBjHKKQzvkcpIvtr7OA/UIRwG24=
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
- hW6EhBLa/ZxKj2KJAqSrwSxdzTU=
143
+ KW3zq20fxSNKp3z3d7TcznPWiP4=
144
144
  </data>
145
145
  <key>hash2</key>
146
146
  <data>
147
- Dovau9fXSZRaQdOZwlwbxqcg4rs/lalsgfldkqHEyoc=
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
- hW6EhBLa/ZxKj2KJAqSrwSxdzTU=
165
+ KW3zq20fxSNKp3z3d7TcznPWiP4=
166
166
  </data>
167
167
  <key>hash2</key>
168
168
  <data>
169
- Dovau9fXSZRaQdOZwlwbxqcg4rs/lalsgfldkqHEyoc=
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
- 1THCI0NR7Tb/6JPy7ZxkB0mHz74=
176
+ JxTbIAPQqoY+QChG6blPBPcQe3I=
177
177
  </data>
178
178
  <key>hash2</key>
179
179
  <data>
180
- 2iEo9/kMnKBz+rhKinfMHnobsM6G8oQesARtMDEp0Jg=
180
+ hXvsfFN1DMvUhFZqXnZMoygdgMgDm2SSpNCKkijh+EU=
181
181
  </data>
182
182
  </dict>
183
183
  <key>Modules/module.modulemap</key>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-davoice-tts",
3
- "version": "1.0.359",
3
+ "version": "1.0.360",
4
4
  "description": "tts library for React Native",
5
5
  "main": "tts/index.js",
6
6
  "types": "tts/index.d.ts",
@@ -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
- preferredInput: 'none' | 'builtInMic';
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>
@@ -1,5 +0,0 @@
1
- module phonemes {
2
- header "phonemes.h"
3
- header "ucd.h"
4
- export *
5
- }
@@ -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
-
@@ -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