Skip to content

play audio through cli

Olivier Kaloudoff edited this page Feb 11, 2024 · 2 revisions

Listening to a WAV file through bb10 terminal (tested with Term48)

bash-5.0$ unzip packages/lib-nixtla-audio.zip
Archive:  packages/lib-nixtla-audio.zip

  inflating: bin/demoPlayWav
  inflating: bin/demoCaptureEco
  inflating: lib/libnixtla-audio.so

bash-5.0$ export LD_LIBRARY_PATH=~/lib

bash-5.0$ demoPlayWav /usr/share/sounds/notification_download_complete.wav
WAV file loaded.
Source(1) assigned and retained.
Buffer(1) loaded with data and retained.
Buffer(1) linked with source(1).


Change the volume level.

echo 'msg::set_output_level\nid::1\ndat:json:{"name":"headset", "level":75}' >> /pps/services/audio/control

echo 'msg::set_output_level\nid::1\ndat:json:{"name":"speaker", "level":75}' >> /pps/services/audio/control