Skip to main content
Glama

text_to_speech

Convert text to speech audio files using selected voices and models. Specify voice ID, model ID, and text to generate downloadable audio files for accessibility or content creation.

Instructions

[AllVoiceLab Tool] Generate speech from provided text.

This tool converts text to speech using the specified voice and model. The generated audio file is saved to the specified directory. Args: text: Target text for speech synthesis. Maximum 5,000 characters. voice_id: Voice ID to use for synthesis. Required. Must be a valid voice ID from the available voices (use get_voices tool to retrieve). model_id: Model ID to use for synthesis. Required. Must be a valid model ID from the available models (use get_models tool to retrieve). speed: Speech rate adjustment, range [0.5, 1.5], where 0.5 is slowest and 1.5 is fastest. Default value is 1. output_dir: Output directory for the generated audio file. Default is user's desktop. Returns: TextContent containing file path to the generated audio file. Limitations: - Text must not exceed 5,000 characters - Both voice_id and model_id must be valid and provided

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYes
voice_idYes
model_idYes
speedNo
output_dirNo

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/allvoicelab/AllVoiceLab-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server