feat(apple): report voice activity during transcription

未关闭
#352 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
15/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
react-native, typescript

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
TypeScript
星标
1.4k
派生
64
平均合并
11 小时 8 分钟
30 天内合并 PR
2

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

callstackincubator/ai 的其他 Issue

查看 callstackincubator/ai 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。