π§ Play sound
π§ Play sound
The Play sound block allows you to trigger a sound effect, sound effect or voiceover in your application, with advanced options such as waiting for playback to finish or identifying the sound for later stopping.
This block is particularly useful for enriching the user experience with audio feedback or voice instructions, while providing precise control over the execution flow.
π₯ Entries
- sound: Audio file to play (sound effect, sound effects or voiceover).
- tag (Text): Custom label to identify this sound and target it with the Stop sound block.
- wait (Boolean): If enabled (
True), the stream waits for reading to finish before continuing. Disabled (False) by default.
π€ Outings
- out (Stream): Allows you to plug in the rest of the flow. If wait is enabled, this output will not activate until the sound has finished playing.
π‘ Example of use
Scenario: Sound validation of a user action
- The user clicks a "Submit" button on a form.
- The stream arrives at the Play sound block to confirm sending.
- The block is configured with:
- sound: A "validation.mp3" file (confirmation sound).
- wait: Enabled (
True) to prevent the success message from being displayed too early. - tag: "confirmation_send" (in case the user cancels the action).
- The validation sound plays, and the flow waits for it to complete before moving to the next step.
- A message βYour request has been sent!β appears on the screen.
βοΈ Technical Details
- Stream behavior: If wait is disabled, the block starts reading in the background and immediately goes to out.
- Tag management: The same tag can be reused to stop a sound in progress via the Stop sound block, even if it was launched by a different instance of Play sound.
- Supported formats: Audio files must be in MP3, WAV or OGG format for optimal compatibility.
Updated on: 04/03/2026
Thank you!
