Sound#

Play Sound#

The Play Sound block is used to play the specified sound effect.

VEXcode stack of blocks containing a play sound honk block.#
    play sound [honk v]

Choose what sound effect to play:

  • honk - A sound similar to a car horn.

  • doorbell - A sound similar to a ringing doorbell.

  • crash - A sound similar to a collision.

  • random - The 123 Robot will randomly select between honk, doorbell, and crash.

Image of the Play Sound block with options to select sound effects: honk, doorbell, crash, or random.

In this example, the 123 Robot will play the doorbell sound effect.

VEXcode stack of blocks containing a when started block, and a play sound doorbell block.#
    when started :: hat events
    play sound [doorbell v]