Open AI TTS (Text-to-Speech)

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > AI - Artificial Intelligence Commands > AIC. - Artificial Intelligence Command > ! Open AI TTS >

Open AI TTS (Text-to-Speech)

AIC.Set TTS Format Any

Previous Top Next


MiniRobotLanguage (MRL)

 

AIC.Set TTS Format Any

Set the audio format for Text-to-Speech (TTS) output

 

 

Intention

 

The `AIC.Set TTS Format Any` command allows you to specify the audio format for the output of Text-to-Speech operations.

This flexibility is crucial for ensuring compatibility with various platforms and usage scenarios.

The default format is "mp3", but other formats like "opus", "aac", or "flac" are also available, catering to different needs.

 

 

Syntax

 

 

AIC.Set TTS Format Any|P1

 

 

Parameter Explanation

 

P1 - The desired audio format. If omitted, the default format ("mp3") is used.

 

Available formats:

- "mp3": The default format, widely compatible with most systems and devices.

- "opus": Optimized for internet streaming and communication, offering low latency.

- "aac": Commonly used for digital audio compression, preferred by platforms like YouTube, and supported on Android and iOS devices.

- "flac": Provides lossless audio compression, ideal for audio enthusiasts and archival purposes.

 

 

 

Example

 

'***********************************

' AIC.-Sample

'***********************************

' Set the TTS format to "opus" for streaming

AIC.Set TTS Format Any|opus

 

' Reset to the default "mp3" format

AIC.Set TTS Format Any|mp3

 

 

 

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

See also: