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()
play_obj.wait_done()
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?
My audio file was 3 sec.
I have tried the same script with 18sec. audio clip in the loop.
But the situation same. The code is running but there is no sound.
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.