Wouldn't you typically want to run that output through an RC (low pass resistor-capacitor) filter to average out the voltage and eliminate high frequency PWM noise? Is that built into the pico?
- A physical speaker already acts as a filter due to inertia
- The PWM frequency and its square harmonics sit far beyond the human hearing range
Most of the digital parts of DAC chips are not there for conversion, but getting data ready for conversion through a reconstruction filter. You don't need that if you're driving a PWM signal through a cap to integrate it.