Skip to content

Audio ​

Audio blocks let you play a variety of sound effects and speech.

Play sound ​

Plays the sound you choose at the specified volume.
Enabling the repeat checkbox plays the selected sound over and over.

play_sound

Parameters ​

NameKindDescriptionRange / TypeDefault
clipDropdown optionSound clip nameClip names in the sound library-
volumeInput (field)VolumeInteger 0 to 100100
repeatCheckboxWhether to repeatTRUE / FALSEFALSE

Python ​

python
Utils.play_sound('', 100, True)
Utils.play_sound('', 100, False)

Set language and voice ​

Sets the lang and voice used to play TTS.
You can choose from various languages and voices to produce more natural-sounding speech.

set_tts

Parameters ​

NameKindDescriptionRange / TypeDefault
langDropdown optionLanguage codeTTS language codes for the 21 languages the program supports (e.g. 'ko-KR', 'en-US')-
voiceDropdown optionVoice nameSystem TTS voice names (e.g. 'Google US English')-

Python ​

python
Utils.set_tts('en-US', '')

Speak ​

Converts the entered text into sound and speaks it.

speak

Parameters ​

NameKindDescriptionRange / TypeDefault
textInputText to speakString-

Python ​

python
Utils.speak('Hello')