When I open a wav file directly everything is OK.
But when I try to open same wav file with a python script, there is no sound! And there is no error message about python script. The script is very simple
import simpleaudio as sa
wave_obj = sa.WaveObject.from_wave_file("playAudio.wav")
play_obj = wave_obj.play()
The same script runs on my laptop correctly.
So, how can I play my audio file on AGX Xavier Dev Kit using a python script?
Suggest to try setting correct audio device (USB speakers) using system sound settings (UI) before the playback. If that doesn’t work, try to use pyaudio for playback with correct device index. Device list index can be checked as mentioned here. Feel free to explore further to get unblocked.