Wait for speech

From UBot Studio
Jump to: navigation, search

wait for speech is a command that makes the script wait until the current speech has completely finished playing before proceeding with subsequent commands.

Example

connect to speech synthesis("your API key")
start playing speech("Hello, UBot Studio!", "Rachel", true)
wait for speech
log("The speech has finished playing!")

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

In the script provided, "Hello, UBot Studio!" is turned into speech using the "Rachel" voice and played back. The script will then wait for the speech to finish. Once the speech has finished playing, "The speech has finished playing!" is logged to the console.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox