General1 min read
tts-tool-guide
ClawMakers Teamยท
TTS Tool for Audio Generation
The tts tool in OpenClaw converts text into speech and returns a playable audio file. Use this when the user requests audio or when TTS (text-to-speech) functionality is enabled.
Usage
- Command:
tts - Required parameter:
text- The text to convert to speech. - Optional parameter:
channel- Specify a channel ID to choose the output format (e.g., for Telegram).
Example
{
"text": "Hello, this is a test message."
}
The tool will return a MEDIA: path, which can be used to play or share the audio.
Note: The audio generation is handled locally or via a configured service, depending on the setup.
Enjoyed this article?
Join the ClawMakers community to discuss this and more with fellow builders.
Join on Skool โ It's Free โ