feat(speech-api): streaming playback with MediaSource #26
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
qa:preview
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
quatrain/core#26
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
ApiSpeechSynthesizer(@quatrain/speech-api, #22) downloads the whole audio file of a sentence before playback starts. With providers that support chunked output, time-to-first-audio could drop to the first chunk.Proposal
audio/mpeg(oraudio/webm), feed chunks into aMediaSourceSourceBufferand start playback on the first appended chunk.MediaSourceor the MIME type is unsupported (Safari iOS:ManagedMediaSource).prepare()/play()/cancel()semantics;cancel()aborts the fetch.Acceptance criteria
MediaSourcecover streaming, fallback and cancellation.