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 Voice

Previous Top Next


MiniRobotLanguage (MRL)

 

AIC.Set TTS Voice

Selects a specific voice for Text-to-Speech (TTS) operations using different options

 

 

Intention

 

The `AIC.Set TTS Voice` command is used to choose a specific voice from a range of available options for Text-to-Speech operations.

This command enhances the customization of TTS by offering different voice types, catering to diverse preferences and requirements.

Users can select a voice either by specifying its number or by entering a name, with an internal algorithm determining the best match.

 

 

 

Syntax

 

 

AIC.Set TTS Voice[|P1]

 

 

Parameter Explanation

 

P1 - (optional) The voice to be selected. This can be a number corresponding to the voice's index or the name of the voice.

 

Available voices:

- `0` or "alloy"

- `1` or "echo"

- `2` or "fable"

- `3` or "onyx"

- `4` or "nova"

- `5` or "shimmer"

 

 

 

 

Example

 

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

' AIC.-Sample

'***********************************
' Set the TTS voice to "echo" by name

AIC.Set TTS Voice|echo

 

' Set the TTS voice to "fable" by number

AIC.Set TTS Voice|2

 

 

 

 

 

Remarks

 

Selecting the appropriate TTS voice is crucial for achieving the desired tone and style in voice synthesis. The internal algorithm facilitates easy selection by name.

The availability of voices might vary and is subject to updates or changes by the service provider.

The voice selection algorithm's effectiveness in matching names to voices may vary.

 

 

 

Limitations:

 

-

 

 

See also: