Playing musicΒΆ

no-virtual Cannot be tested on a simulated robot.

Step Action

Drag and drop the Audio > Sound > Play Sound box onto the Flow Diagram panel.

../../../_images/chore_music_box.png

Double-click on it.

The two boxes enclosed in the Play Sound box appear.

../../../_images/chore_music_box_struct.png
Click the parameter-button parameter button of the Get File Path box.
Click the browse-button Browse button then click import-button Import file button to import an audio file then select it.

Click OK button twice.

The file is stored. You will not have to upload it again.

Click the play-button Play button to launch your behavior.

The music file you have selected is played on NAO.