Chat To Speech
A 2-step recipe with Hyperbolic. We can help you get access.
Recipe · 2 steps
Chat To Speech
with Hyperbolic
Produce a chat answer and narrate it as base64 speech audio.
- Ask the chat model for a concise, natural spoken-style answer suitable for narration.
- Convert the chat answer to speech audio and capture the base64 audio and its duration.
What you'll need to have ready
- apiKey: Hyperbolic API key passed as a Bearer token.
- chatModel: Chat model id used to author the spoken answer.
- question: The question to answer and narrate.
- language: TTS language code (e.g. EN, ES, FR, JA, ZH, KR).
- speed: Speech speed between 0.5 and 2.0.
- voice: Optional speaker / voice id for the TTS model.
For your developer
Arazzo workflow hyperbolic-ai:chat-to-speech, 2 operations: createChatCompletion → generateAudio. Specs on APIs.io.