I have a jetson nano and im trying to play a sound on a loop,
im doing a basic sound playing with pyaudio on a basic python loop, it looks like this:
for i in range(10):
new_player = Player(device=player_device, file='test.wav')
data = new_player.wav_file.readframes(new_player.chunk_size)
print(f"Playing {new_player.file_name}")
while data:
new_player.stream.write(data)
data = new_player.wav_file.readframes(new_player.chunk_size)
new_player.wav_file.rewind()
new_player.stream.stop_stream()
new_player.close()
for some reason as im running the code for 10 times, 1-3 out of the 10 iterations doesn’t actually play the sound on the speaker, am i missing something?
There is no update from you for a period, assuming this is not an issue any more.
Hence we are closing this topic. If need further support, please open a new one.
Thanks