feat(apple): report voice activity during transcription
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 15/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- react-native, typescript
- Domain
- audio-video-rtc, mobile
Research direction
Read the implementation on the feat/apple-speech-detection branch and the AppleTranscription.transcribeLive and transcribeStream entry points. The reported SpeechDetector failures on iOS 27 block the work pending an Apple fix; resume by checking whether it works alongside SpeechTranscriber and on its own. Done means speech start and stop events are reported for both transcription methods.
Written by the indexing model from the issue text.
Description
Follow-up to #98. Live transcription has shipped, and echo cancellation is left to third-party audio libraries. Voice activity detection is the one piece still missing for full-duplex speech.
Goal
Report when speech starts and stops during AppleTranscription.transcribeLive and transcribeStream, e.g. through an onSpeechActivity callback. Apps can use it for barge-in: stop playback as soon as the user starts talking, before any words are transcribed.
Status: blocked on Apple
The plan was to add Apple's SpeechDetector module to the SpeechAnalyzer sessions. On iOS 27 (tested on one iPhone):
- Run alongside
SpeechTranscriber, it never reports a result. - Run on its own, it crashes inside Speech.framework while the analyzer sets itself up.
The implementation is on the feat/apple-speech-detection branch (not pushed). We'll pick it up once Apple fixes the detector.
Workaround for now
Treat the first partial result (isFinal: false in onResult, or transcript-partial with experimental_streamTranscribe) as "speech started". It fires a little later, once words come through.
- Dominant language
- TypeScript
- Stars
- 1.4k
- Forks
- 64
- Avg merge
- 11h 8m
- Merged PRs (30d)
- 2
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from callstackincubator/ai
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
callstackincubator/ai#378 ·
-
feat(android): add ml kit task apis and context cachingPossibly taken A pull request linked to this issue is open or already merged. Openenhancement
Difficulty 5/5 Over a week Newbie friendliness 20/100
callstackincubator/ai#366 · 1 comment ·
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 20/100
callstackincubator/ai#365 · 2 comments ·
-
Blocked enhancement
Difficulty 3/5 1-2 days Newbie friendliness 30/100
callstackincubator/ai#364 · 1 comment ·
-
feat(android): add streamed and live transcription with word timingsPossibly taken A pull request linked to this issue is open or already merged. OpenBlocked enhancement
Difficulty 4/5 3-5 days Newbie friendliness 35/100
callstackincubator/ai#363 · 1 comment ·
All issues in callstackincubator/ai
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
earendil-works/gondolin#222 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
endora-commerce/endora-commerce#2203 ·
Maintainers usually reply within 1 day
-
enhancement priority:medium ready-for-human
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
wondermoney/wondermoney#1079 ·
Maintainers usually reply within 1 day