speak
Converts text to speech with customizable voice settings, including speaker ID, speed, pronunciation variation, and volume. Play the audio through speakers for clear and tailored audio output.
Instructions
Convert text to speech and play it through the speakers.
Args:
text: The text to convert to speech
speaker_id: Voice speaker ID (default: 0)
length_scale: Speech speed control (default: 1.1, lower = faster)
noise_scale: Voice variation control (default: 0.667)
noise_w_scale: Pronunciation variation control (default: 0.333)
volume: Volume level from 0.01 to 1.00 (default: 0.15)
Returns:
Success or error message
Input Schema
Name | Required | Description | Default |
---|---|---|---|
length_scale | No | ||
noise_scale | No | ||
noise_w_scale | No | ||
speaker_id | No | ||
text | Yes | ||
volume | No |
Input Schema (JSON Schema)
{
"properties": {
"length_scale": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"default": 1.1,
"title": "Length Scale"
},
"noise_scale": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"default": 0.667,
"title": "Noise Scale"
},
"noise_w_scale": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"default": 0.333,
"title": "Noise W Scale"
},
"speaker_id": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": 0,
"title": "Speaker Id"
},
"text": {
"title": "Text",
"type": "string"
},
"volume": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"default": 0.15,
"title": "Volume"
}
},
"required": [
"text"
],
"title": "speakArguments",
"type": "object"
}