micropython-i2s-examples icon indicating copy to clipboard operation
micropython-i2s-examples copied to clipboard

play_wav_from_flash_blocking_reopen

Open brylka787 opened this issue 10 months ago • 2 comments

Hello Mike,

Thonny's picture only shows that the "side-to-side-8k-16bits-stereo.wav" is in the Pico's flash memory.

But I still have no sound with "play_wav_from_flash_blocking.py".

I took measurements with an oscilloscope.

With "play_tone.py" I have on the pins pin 18 > 104.2 kHz pin 17 > 22.05 kHz pin 16 > 705.6 kHz And the 440 Hz tone is also very easy to hear. A bit quiet compared to a test with an ESP32-Cam and the "PlayMODFromPROGMEMToDAC.ino" from the "ESP8266Audio" library.

With "play_wav_from_flash_blocking.py" I have on the pins pin 18 > 34.35 kHz pin 17 > 8.00 kHz pin 16 > 256.0 kHz And there is absolutely nothing to hear. Maybe it is too quiet that I can't hear anything. I have a pair of PC speakers with an amplifier.

With PC VLC player the "side-to-side-8k-16bits-stereo.wav" can be heard well.

Can you change the volume in the code somehow? Or somewhere with print to display the data for audio_out = I2S _ = audio_out.write(wav_samples_mv[:num_read]) .

Peter

brylka787 avatar Jan 29 '25 15:01 brylka787