Skip to main content

Overview

Tool identifier text_to_speech. text_to_speech synthesizes text into speech and saves the audio locally. Import path: from veadk.tools.builtin_tools.tts import text_to_speech

Environment & prerequisites

Requirements:
  1. Configure the API key for the agent’s reasoning model.
  2. Configure the VeSpeech service App ID and API key.
Environment variables:
  • MODEL_AGENT_API_KEY: API key for the agent’s reasoning model
  • TOOL_VESPEECH_APP_ID: VeSpeech service App ID
  • TOOL_VESPEECH_API_KEY: VeSpeech service API key
  • TOOL_VESPEECH_SPEAKER: voice, defaults to zh_female_vv_uranus_bigtts
  • TOOL_VESPEECH_AUDIO_OUTPUT_PATH: audio output directory, defaults to the system temp directory

Usage

examples/tools/tts/agent.py
Last modified on September 19, 2026