Skip to content

[RNE Rewrite] feat: add Whisper STT pipeline#1302

Open
barhanc wants to merge 18 commits into
rne-rewritefrom
@bh/stt
Open

[RNE Rewrite] feat: add Whisper STT pipeline#1302
barhanc wants to merge 18 commits into
rne-rewritefrom
@bh/stt

Conversation

@barhanc

@barhanc barhanc commented Jul 7, 2026

Copy link
Copy Markdown
Member

Description

Adds a full Whisper speech-to-text task pipeline, React hook, model registry entries, and an interactive example screen.

Introduces a breaking change?

  • Yes
  • No

Type of change

  • Bug fix (change which fixes an issue)
  • New feature (change which adds functionality)
  • Documentation update (improves or adds clarity to existing documentation)
  • Other (chores, tests, code style improvements etc.)

Tested on

  • iOS
  • Android

Testing instructions

  • Build speech example app on both Android and iOS.
  • Test the newly added speech-to-text feature.

Screenshots

Related issues

Closes #1208

Checklist

  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly
  • My changes generate no new warnings

Additional notes

Needs to wait for #1309 before merging so that the paths in models.ts can be pointed at SWM HF.

@barhanc barhanc self-assigned this Jul 7, 2026
@barhanc barhanc added refactoring feature PRs that implement a new feature labels Jul 7, 2026
@barhanc barhanc linked an issue Jul 7, 2026 that may be closed by this pull request
@barhanc
barhanc force-pushed the @bh/stt branch 2 times, most recently from 809853f to 6bfd3ad Compare July 13, 2026 14:19
@barhanc
barhanc force-pushed the @bh/stt branch 2 times, most recently from f1d6450 to adb83a9 Compare July 17, 2026 13:02
@barhanc
barhanc marked this pull request as ready for review July 17, 2026 13:37
@barhanc
barhanc requested review from IgorSwat and msluszniak July 17, 2026 13:37
Comment thread packages/react-native-executorch/src/models.ts
Comment thread packages/react-native-executorch/src/models.ts Outdated
Comment thread packages/react-native-executorch/src/models.ts Outdated
barhanc added 12 commits July 20, 2026 12:53
- Remove unused react-native-fs dep from speech example app
- Rename WhisperSttModel.fsmnVoiceActivityDetectorPath (string) to
  fsmnVadModel (FsmnVadModel) so defaultOptions flow through correctly
- Update useSpeechToText hook to read model path from fsmnVadModel and
  reconstruct the object with the local path after download
- Update all Whisper entries in models.ts accordingly; drop the now
  redundant FSMN_VAD_XNNPACK_FP32_URL constant
- Replace voiceDetector.push() with detectVoiceOnStream() to match the
  renamed streaming API
Add ModelPicker component (matching CV app's horizontal chip scroller)
and replace the inline fixed chip row on the STT screen with it.
barhanc and others added 2 commits July 21, 2026 15:03
- stt/ → microphone-transcription/
- stt-audio/ → audio-file-transcription/

Updated route names in _layout.tsx and navigation paths in index.tsx accordingly.
…port

- Replace bhanc/scratch URLs with official software-mansion HuggingFace repos
- Use BASE_URL/NEXT_VERSION_TAG pattern consistent with other models
- Add MLX bf16 model configs for all Whisper variants (tiny/base/small, en/multilingual)
- Add MLX model options to both example screens (iOS only)
@barhanc
barhanc requested a review from msluszniak July 21, 2026 14:02
@barhanc

barhanc commented Jul 21, 2026

Copy link
Copy Markdown
Member Author

@msluszniak I've updated the models on HF and added the MLX variant. I can't unfortunately test them since I don't have iOS device available.

@msluszniak

Copy link
Copy Markdown
Member

@barhanc Ok, I will test mlx delegates tomorrow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature PRs that implement a new feature refactoring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[RNE Rewrite] Speech - add Whisper STT pipeline implementation

2 participants