feat(apple): report voice activity during transcription

オープン
#352 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
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分
マージ済み PR(30日)
2

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

callstackincubator/ai のほかの issue

callstackincubator/ai の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。