sound_play_predefined


Overview

The sound_play_predefined application plays a randomly selected predefined sound.

Execution

The application can be executed using:

python3 sound_play_predefined/ --auto-run

Inputs

  • No user input is required.

  • The application automatically selects and plays a predefined sound.

Outputs

  • A log message displays the list of available sounds, the selected sound and playback status.

Behavior

  • The application starts and logs its execution.

  • It retrieves the list of available predefined sounds.

  • A random sound is selected and played.

  • The application finishes execution automatically.

Example Output

# python3 sound_play_predefined/ --auto-run
[INFO] [timestamp] [pyraya.sound_play_predefined]: Auto running the app
[INFO] [timestamp] [pyraya.sound_play_predefined]: Available sounds:
[INFO] [timestamp] [pyraya.sound_play_predefined]:   - malfunction
[INFO] [timestamp] [pyraya.sound_play_predefined]:   - thank_you_1
...
[INFO] [timestamp] [pyraya.sound_play_predefined]: Playing random sound: attention

Key Notes

  • The application selects a sound randomly from a predefined list.

  • The user does not interact with the application; it runs automatically.