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
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| voice_id | Yes | ||
| model_id | Yes | ||
| speed | No | ||
| output_dir | No |
Input Schema (JSON Schema)
{
"properties": {
"model_id": {
"title": "Model Id",
"type": "string"
},
"output_dir": {
"default": null,
"title": "Output Dir",
"type": "string"
},
"speed": {
"default": 1,
"title": "Speed",
"type": "integer"
},
"text": {
"title": "Text",
"type": "string"
},
"voice_id": {
"title": "Voice Id",
"type": "string"
}
},
"required": [
"text",
"voice_id",
"model_id"
],
"type": "object"
}