|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > AI - Artificial Intelligence Commands > AIC. - Artificial Intelligence Command > AIC. - Artificial Intelligence Command |
AIC.AskTTS |
Top |
MiniRobotLanguage (MRL)
AIC.AskTTS
Text-to-Speech (TTS)
Intention
The AIC.AskTTS command converts text to speech using OpenAI's TTS models. It generates natural-sounding audio from text and saves it as an MP3 file.
Syntax
AIC.AskTTS|$$Text|$$OutputPath[|$$Voice]
P1 - $$Text - Text to convert to speech
P2 - $$OutputPath - Path to save MP3 file
P3 - $$Voice (optional) - Voice: alloy, echo, fable, onyx, nova, shimmer
Example
' Convert text to speech
AIC.AskTTS|Hello, this is a test|C:\Audio\hello.mp3
' Use specific voice
AIC.AskTTS|Welcome to the system|C:\Audio\welcome.mp3|onyx
Available Voices
- alloy: Neutral, balanced
- echo: Male, calm
- fable: Male, expressive
- onyx: Male, deep
- nova: Female, gentle
- shimmer: Female, bright
Related Commands
- AIC.CallWhisper - Speech-to-Text
- AIC.PlayMP3 - Play audio