2024-12-10 10:30 PM - last edited on 2024-12-11 12:53 AM by Andrew Neil
Hello everyone,
I am currently using the WM8904 audio codec in my project. The audio is stored in external flash memory, and I am reading it in chunks of 1024 bytes at a time. The audio format is 16-bit WAV with an 8000 Hz sample rate.
For playback, we are using a mono speaker. I have attached the schematic of our codec for reference.
Issue: The audio output is not clear. I have verified the data being read from the flash, and it matches the stored data.
I would like to know:
2024-12-11 12:43 AM
1. read the datasheet of WM8904, which is not a product from ST
2. working source code... you're not telling us which STM32 you are using and how it is connected to the DAC
2024-12-11 01:02 AM
As @LCE said, you need to provide more details - please see the Posting Tips:
@Tharun123 wrote:I have attached the schematic of our codec for reference.
I think you forgot that?
@Tharun123 wrote:Issue: The audio output is not clear.
What, exactly, do you mean by that?
Have you viewed the output on an oscilloscope?
@Tharun123 wrote:
- What audio formats (sample rate, bit width, clock configuration, etc.) are supported by the WM8904 codec?
It's not an ST Product - you need to consult the manufacturer's specifications & other supporting documentation for that:
https://www.cirrus.com/products/wm8904/
https://www.cirrus.com/products/wm8904/#supportRequest=true&formType=design&supportProduct=wm8904