feat(apple): report voice activity during transcription

Open
#352 1 comment 0 reactions 0 assignees View on GitHub

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

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

Blocked

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

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from callstackincubator/ai

All issues in callstackincubator/ai

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.