Difference between revisions of "Sound Bricks"
Line 27: | Line 27: | ||
=== Start sound and wait=== | === Start sound and wait=== | ||
---- | ---- | ||
− | [[File: | + | [[File:start-sound-and-wait.png|link=]] |
Plays a sound and waits until the sound is finished before continuing to the next block. | Plays a sound and waits until the sound is finished before continuing to the next block. | ||
+ | |||
+ | An example script: | ||
+ | |||
+ | [[File:download_button.png|link=https://share.catrob.at/pocketcode/download/34254.catrobat?fname=Start+sound+and+wait]] | ||
+ | |||
+ | [[File:start-sound-and-wait-2.png|link=]] | ||
+ | |||
+ | [[File:start-sound-and-wait3.gif|link=]] | ||
=== <span style="color:#FFFFFF"> StopAllSoundsBrick </span> === | === <span style="color:#FFFFFF"> StopAllSoundsBrick </span> === |
Latest revision as of 09:37, 25 July 2017
Watch the videos beside the bricks to get an explaination of the brick functionality.
PlaySoundBrick
Start sound (Sound)
Plays a sound and continues with the next brick immediately.
An example script:
Record a sound or choose one from the media library. This is how to download one from the library:
PlaySoundAndWaitBrick
Start sound and wait
Plays a sound and waits until the sound is finished before continuing to the next block.
An example script:
StopAllSoundsBrick
Stop all sounds
Stops all playing sounds.
SetVolumeToBrick
Set volume to (60) %
Sets the volume for sound replay to a certain value.
ChangeVolumeByBrick
Change volume by (-10.0)
Changes the volume for sound replay by a certain value.
SpeakBrick
Speak (Hello!)
Speaks the phrase with the voice of the phone.
SpeakAndWaitBrick
Speak and wait
Speaks the phrase with the voice of the phone and waits until the sound is finished before continuing to the next block.
AskSpeechBrick
Ask (text) and store recorded answer in (variable)
Asks a quetsion and recorded your answer. The answer is stored in a variable and can be used.