feat #14740: transcription pipeline
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
errorText,
|
||||
getPendingPrompt,
|
||||
onCallEnded,
|
||||
onPromptChanged,
|
||||
transcribeCall,
|
||||
type CallId,
|
||||
type PendingPrompt,
|
||||
@@ -29,12 +30,12 @@
|
||||
.catch((err) => (error = errorText(err)))
|
||||
|
||||
onMount(() => {
|
||||
const unlisten = onCallEnded(refresh)
|
||||
const unlisten = [onCallEnded(refresh), onPromptChanged(refresh)]
|
||||
refresh()
|
||||
window.addEventListener('focus', refresh)
|
||||
return () => {
|
||||
window.removeEventListener('focus', refresh)
|
||||
unlisten.then((off) => off())
|
||||
unlisten.forEach((u) => u.then((off) => off()))
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user