Skip to content

Commit d6c8fa0

Browse files
authored
feat: Simplify s2t app (#491)
## Description Changes: - Simplify s2t example app - use `react-native-audio-api` to collect live audio for live streaming transcription ### Introduces a breaking change? - [ ] Yes - [x] No ### Type of change - [ ] Bug fix (change which fixes an issue) - [ ] New feature (change which adds functionality) - [x] Documentation update (improves or adds clarity to existing documentation) - [x] Other (chores, tests, code style improvements etc.) ### Tested on - [x] iOS - [x] Android ### Checklist - [x] I have performed a self-review of my code - [ ] I have commented my code, particularly in hard-to-understand areas - [x] I have updated the documentation accordingly - [x] My changes generate no new warnings
1 parent 3f0bf8a commit d6c8fa0

7 files changed

Lines changed: 293 additions & 476 deletions

File tree

.cspell-wordlist.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,4 @@ wordlist
5555
jitpack
5656
coreml
5757
mobilenetv
58+
flac

apps/speech-to-text/components/TextInputModal.tsx

Lines changed: 0 additions & 109 deletions
This file was deleted.

apps/speech-to-text/ios/Podfile.lock

Lines changed: 9 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1421,30 +1421,6 @@ PODS:
14211421
- ReactCommon/turbomodule/core
14221422
- sqlite3
14231423
- Yoga
1424-
- react-native-image-picker (7.2.3):
1425-
- DoubleConversion
1426-
- glog
1427-
- hermes-engine
1428-
- RCT-Folly (= 2024.11.18.00)
1429-
- RCTRequired
1430-
- RCTTypeSafety
1431-
- React-Core
1432-
- React-debug
1433-
- React-Fabric
1434-
- React-featureflags
1435-
- React-graphics
1436-
- React-hermes
1437-
- React-ImageManager
1438-
- React-jsi
1439-
- React-NativeModulesApple
1440-
- React-RCTFabric
1441-
- React-renderercss
1442-
- React-rendererdebug
1443-
- React-utils
1444-
- ReactCodegen
1445-
- ReactCommon/turbomodule/bridging
1446-
- ReactCommon/turbomodule/core
1447-
- Yoga
14481424
- react-native-safe-area-context (5.4.0):
14491425
- DoubleConversion
14501426
- glog
@@ -1842,7 +1818,7 @@ PODS:
18421818
- React-logger (= 0.79.2)
18431819
- React-perflogger (= 0.79.2)
18441820
- React-utils (= 0.79.2)
1845-
- RNAudioAPI (0.5.7):
1821+
- RNAudioAPI (0.6.5):
18461822
- DoubleConversion
18471823
- glog
18481824
- hermes-engine
@@ -1865,9 +1841,9 @@ PODS:
18651841
- ReactCodegen
18661842
- ReactCommon/turbomodule/bridging
18671843
- ReactCommon/turbomodule/core
1868-
- RNAudioAPI/audioapi (= 0.5.7)
1844+
- RNAudioAPI/audioapi (= 0.6.5)
18691845
- Yoga
1870-
- RNAudioAPI/audioapi (0.5.7):
1846+
- RNAudioAPI/audioapi (0.6.5):
18711847
- DoubleConversion
18721848
- glog
18731849
- hermes-engine
@@ -1890,9 +1866,9 @@ PODS:
18901866
- ReactCodegen
18911867
- ReactCommon/turbomodule/bridging
18921868
- ReactCommon/turbomodule/core
1893-
- RNAudioAPI/audioapi/ios (= 0.5.7)
1869+
- RNAudioAPI/audioapi/ios (= 0.6.5)
18941870
- Yoga
1895-
- RNAudioAPI/audioapi/ios (0.5.7):
1871+
- RNAudioAPI/audioapi/ios (0.6.5):
18961872
- DoubleConversion
18971873
- glog
18981874
- hermes-engine
@@ -1918,8 +1894,6 @@ PODS:
19181894
- Yoga
19191895
- RNDeviceInfo (14.0.4):
19201896
- React-Core
1921-
- RNLiveAudioStream (1.1.1):
1922-
- React
19231897
- RNReanimated (3.17.5):
19241898
- DoubleConversion
19251899
- glog
@@ -2148,7 +2122,6 @@ DEPENDENCIES:
21482122
- React-Mapbuffer (from `../../../node_modules/react-native/ReactCommon`)
21492123
- React-microtasksnativemodule (from `../../../node_modules/react-native/ReactCommon/react/nativemodule/microtasks`)
21502124
- react-native-executorch (from `../../../node_modules/react-native-executorch`)
2151-
- react-native-image-picker (from `../../../node_modules/react-native-image-picker`)
21522125
- react-native-safe-area-context (from `../../../node_modules/react-native-safe-area-context`)
21532126
- React-NativeModulesApple (from `../../../node_modules/react-native/ReactCommon/react/nativemodule/core/platform/ios`)
21542127
- React-oscompat (from `../../../node_modules/react-native/ReactCommon/oscompat`)
@@ -2181,9 +2154,8 @@ DEPENDENCIES:
21812154
- ReactAppDependencyProvider (from `build/generated/ios`)
21822155
- ReactCodegen (from `build/generated/ios`)
21832156
- ReactCommon/turbomodule/core (from `../../../node_modules/react-native/ReactCommon`)
2184-
- RNAudioAPI (from `../../../node_modules/react-native-audio-api`)
2157+
- RNAudioAPI (from `../node_modules/react-native-audio-api`)
21852158
- RNDeviceInfo (from `../../../node_modules/react-native-device-info`)
2186-
- RNLiveAudioStream (from `../../../node_modules/react-native-live-audio-stream`)
21872159
- RNReanimated (from `../../../node_modules/react-native-reanimated`)
21882160
- RNSVG (from `../../../node_modules/react-native-svg`)
21892161
- Yoga (from `../../../node_modules/react-native/ReactCommon/yoga`)
@@ -2288,8 +2260,6 @@ EXTERNAL SOURCES:
22882260
:path: "../../../node_modules/react-native/ReactCommon/react/nativemodule/microtasks"
22892261
react-native-executorch:
22902262
:path: "../../../node_modules/react-native-executorch"
2291-
react-native-image-picker:
2292-
:path: "../../../node_modules/react-native-image-picker"
22932263
react-native-safe-area-context:
22942264
:path: "../../../node_modules/react-native-safe-area-context"
22952265
React-NativeModulesApple:
@@ -2355,11 +2325,9 @@ EXTERNAL SOURCES:
23552325
ReactCommon:
23562326
:path: "../../../node_modules/react-native/ReactCommon"
23572327
RNAudioAPI:
2358-
:path: "../../../node_modules/react-native-audio-api"
2328+
:path: "../node_modules/react-native-audio-api"
23592329
RNDeviceInfo:
23602330
:path: "../../../node_modules/react-native-device-info"
2361-
RNLiveAudioStream:
2362-
:path: "../../../node_modules/react-native-live-audio-stream"
23632331
RNReanimated:
23642332
:path: "../../../node_modules/react-native-reanimated"
23652333
RNSVG:
@@ -2414,8 +2382,7 @@ SPEC CHECKSUMS:
24142382
React-logger: 8edfcedc100544791cd82692ca5a574240a16219
24152383
React-Mapbuffer: c3f4b608e4a59dd2f6a416ef4d47a14400194468
24162384
React-microtasksnativemodule: 054f34e9b82f02bd40f09cebd4083828b5b2beb6
2417-
react-native-executorch: 9e4c26039a419f8b79c040571e80617c1114ca26
2418-
react-native-image-picker: 8a3f16000e794f5381a7fe47bb48fd8d06741e47
2385+
react-native-executorch: c18d209e226f0530a9ee88f1d60ce5837d4800ee
24192386
react-native-safe-area-context: 562163222d999b79a51577eda2ea8ad2c32b4d06
24202387
React-NativeModulesApple: 2c4377e139522c3d73f5df582e4f051a838ff25e
24212388
React-oscompat: ef5df1c734f19b8003e149317d041b8ce1f7d29c
@@ -2448,9 +2415,8 @@ SPEC CHECKSUMS:
24482415
ReactAppDependencyProvider: 04d5eb15eb46be6720e17a4a7fa92940a776e584
24492416
ReactCodegen: 7ea266ccd94436294f516247db7402b57b1214af
24502417
ReactCommon: 76d2dc87136d0a667678668b86f0fca0c16fdeb0
2451-
RNAudioAPI: 2e3fd4bf75aa5717791babb30126707504996f09
2418+
RNAudioAPI: 31d5be92e97cfdcba9524b6f056c5460c1112c00
24522419
RNDeviceInfo: d863506092aef7e7af3a1c350c913d867d795047
2453-
RNLiveAudioStream: 93ac2bb6065be9018d0b00157b220f11cebc1513
24542420
RNReanimated: afd6a269a47d6f13ba295c46c6c0e14e3cbd0d8a
24552421
RNSVG: 794f269526df9ddc1f79b3d1a202b619df0368e3
24562422
SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748

apps/speech-to-text/package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@
2525
"react-native-audio-api": "0.6.5",
2626
"react-native-device-info": "^14.0.4",
2727
"react-native-executorch": "workspace:*",
28-
"react-native-image-picker": "^7.2.2",
29-
"react-native-live-audio-stream": "^1.1.1",
30-
"react-native-loading-spinner-overlay": "^3.0.1",
3128
"react-native-reanimated": "~3.17.4",
3229
"react-native-safe-area-context": "5.4.0",
3330
"react-native-svg": "15.11.2",

0 commit comments

Comments
 (0)