feat(android): add streamed and live transcription with word timings

Aperta
#363 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
kotlin, typescript
Ambito
mobile-dev

Direzione di ricerca

Start in the @react-native-ai/android package: read the existing AudioSource.fromFile transcription path, then the ML Kit genai-speech-recognition docs for fromMic/fromPfd and enableWordTiming. Design how streamed PCM chunks and a live microphone API would map onto experimental_streamTranscribe and Apple's transcribeLive shape. Note the issue itself flags that en-US is unavailable on the only test device, so testing needs another device — done means streaming and live transcription producing segments from word timings.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Blocked enhancement

@react-native-ai/android transcribes whole files with AudioSource.fromFile. ML Kit's speech recognition (genai-speech-recognition 1.0.0-alpha2) also takes AudioSource.fromMic() and fromPfd (16 kHz mono 16-bit PCM), with partial results and word timings (recognitionOptions { enableWordTiming = true }), which only work with streamed sources.

These could back experimental_streamTranscribe (PCM chunks) and a live microphone API like Apple's transcribeLive, with segments from the word timings.

Note: on the test Pixel 9 Pro (AICore aicore_20260219), checkStatus reports en-US unavailable in both basic and advanced mode, so this needs another device to test.

Lingua principale
TypeScript
Stelle
1.4k
Fork
64
Merge medio
11h 24m
PR unite (30g)
91

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di callstackincubator/ai

Tutte le issue di callstackincubator/ai

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.