Skip to content

play_wav_from_flash_blocking_reopen #39

@brylka787

Description

@brylka787

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions