Free Intro Class
    Botspot Logo

    agenthub · output.voice

    Voice Output

    Speak text aloud. It takes an upstream answer and synthesises a clip the chat surface plays.

    category Outputin text · message · instructionsout execution asyncmodel cost model tokens

    Why the node earns its place

    The natural terminal for a voice agent: an LLM writes the answer, this says it. Only voice models appear in the dropdown — those whose deployment actually exposes speech synthesis — so you cannot select a model that will fail at call time.

    Instructable models take direction. The instructions field is where tone, pace and emotion go, which is the difference between a correct answer and one that sounds like the brand.

    How it works at run time

    1. 1
      Take the text from the wired port, or from a wired message object.
    2. 2
      Synthesise through the speech capability in the requested format, with the chosen voice and any instructions.
    3. 3
      Return an assistant message carrying a voice marker, the audio data URI and the spoken text; the surface renders a player.

    What you wire

    Inputs

    • text *
      string
    • message
      object
    • instructions
      string

    Outputs

    Nothing handed onward.

    Configuration

    KeyTypeDefault & optionsWhat it does
    model *stringchoices from model-library:voice_modelsVoice (text-to-speech) model to synthesize with
    voicestringVoice name for the selected model (provider-specific, e.g. OpenAI: alloy/nova, Gemini: Kore/Puck). Leave blank for the model's default.
    formatstringdefault "mp3" mp3 · wav · opusAudio format
    instructionsstringHow the voice should speak — tone, emotion, pace (gpt-4o-mini-tts and other instructable models). E.g. 'Warm, patient kindergarten teacher: cheerful, slow and clear, with little pauses.' Ignored by plain TTS models.

    What usually goes wrong

    Watch for this

    Voice names are provider-specific — an OpenAI voice name means nothing to Gemini. Leave it blank for the model's default rather than guessing. Plain, non-instructable models ignore instructions silently rather than erroring.

    Behaviour & provenance

    buildersChat & voice agents
    routesno
    side effectsnone — computes only
    replay safetynot applicable
    talks toa model
    holdsworkspace runtime token