Start playing speech

From UBot Studio
Revision as of 03:12, 12 July 2023 by LillyT (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

start playing speech is a command that starts playing the speech generated for the given text and voice.

The Refresh parameter can force the speech to be generated anew and played back.

Parameters

Text: The text that you want to convert into speech.

Voice: The voice that you wish to use for the speech synthesis. Available options are listed in a dropdown menu: Rachel, Domi, Bella, Antoni, Elli, Josh, Arnold, Adam, and Sam.

Refresh: This parameter forces the speech to be regenerated if set to true. This means that if the speech was previously generated, it will be regenerated before playback. The default setting is false.

Example

connect to speech synthesis("your API key")
start playing speech("Hello, UBot Studio!", "Rachel", true)

Please replace "your API key" with your actual API key.

The script provided converts "Hello, UBot Studio!" into speech using the "Rachel" voice. The speech is then played back. The 'refresh' parameter is set to 'true', meaning that if the speech was previously generated, it will be regenerated for playback.

Always handle your API Key carefully due to its sensitivity. An incorrect or exposed key could result in errors or a breach of security. Please make sure the selected voice ("Rachel", "Domi", "Bella", "Antoni", "Elli", "Josh", "Arnold", "Adam", "Sam") is available in your speech synthesis API.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox