Wait for speech
From UBot Studio
(Difference between revisions)
(Created page with "'''wait for speech''' is a command that makes your scripting tool (UBot Studio) wait until the current speech has completely finished playing before proceeding with subsequent...") |
|||
Line 1: | Line 1: | ||
− | '''wait for speech''' is a command that makes | + | '''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 == | == Example == | ||
Line 15: | Line 13: | ||
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. | 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. | ||
− | |||
− | |||
− | |||
− |
Latest revision as of 17:35, 12 July 2023
wait for speech is a command that makes the script wait until the current speech has completely finished playing before proceeding with subsequent commands.
[edit] 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.