Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MM-56540 - Live-captions support (#18)
* initial live-captions support; wip * upgrade silero-vad-go * linting * tests * update rtcd * add config options for LiveCaptions, esp. LiveCaptionsOn; tests * fix test * fix tests * close captionDoneCh with other doneCh closers * make transcription loop more async * remove unused field * send NewAudioLenMs (a measure of load) in the caption ws event * be explicit that NewAudioLenMs is converted to float64 by marshaling * improvements: don't cut off old voice before it's transcribed; better logs * param tuning; better defaults: 2 transcribers x 2 threads * fix tests * return blank transcription if transcription error * tweak debug statement * add pressure valve to prevent death spiral on overloaded machines * tweak pressure valve * move structs to calls public; send release valve metrics over * implement backpressure for the transcriber pool * add backoff for transcriberQueueCh * remove unnecessary else * fix buffer size calculation * report tickrate metric * report initial tickrate on transcriber start * report initial tickrate on transcriber start * revert tickrate metric (not useful); update calls dependency * Revert tickrate metric; wasn't useful * update calls dependency; rename metric ws events * lower LiveCaptionsNumTranscribersDefault to 1 * fix useless min(LiveCaptionsNumTranscribersDefault, runtime.NumCPU()/2) * add NumThreadsDefault * single segment, language = en * Revert "single segment, language = en" This reverts commit 564f3be. * language = en * comment out debug statements for now * single segment * remove backoff * simplify mutexes and multiple windowing * more cleanup * recState -> jobState * update rtcd for moving type to JobStateClient * complicated algorithm but with clearer code; using normal vad * improve quality of transcription with background noise * lint * tweaking vad and minSpeechLength settings; PR comments * close off last segment * fix useless for select * add LiveCaptionsLanguage * add LiveCaptionsLanguage debug statement * PR comments * no need for loop label * upgrade tagged dependencies * SendWs -> SendWS; go mod tidy
- Loading branch information