feat(speech): server-side SpeechAudioProviderInterface with Gemini and ElevenLabs adapters #25
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#25
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
@quatrain/speech(#22, PR #23) defines the client-side contracts (SpeechSynthesizerInterface,SpeechController). Server-side text-to-speech providers are still implemented ad hoc by each application, so switching provider means rewriting endpoint code.Proposal
SpeechAudioProviderInterfacein@quatrain/speech:id: stringsynthesize(text: string, options: SpeechOptionsInterface): Promise<{ audio: Uint8Array, mimeType: string }>stream(text, options): AsyncIterable<Uint8Array>for providers with chunked output.@quatrain/speech-gemini: Gemini TTS adapter (PCM to WAV wrapping, voice and style prompt mapped fromSpeechOptionsInterface).@quatrain/speech-elevenlabs: ElevenLabs adapter (model id, default Flash v2.5; voice id; stability / similarity / style settings; streaming endpoint behindstream()).Acceptance criteria