Electronics > Projects, Designs, and Technical Stuff
MP3 Decoder Options
Kasper:
--- Quote from: amyk on January 28, 2019, 12:19:20 pm ---
--- Quote from: Kasper on January 28, 2019, 07:29:31 am ---Microchip wants $200usd for MP3 library.
--- End quote ---
Github wants $0 :)
https://github.com/lieff/minimp3
--- End quote ---
Yes and my PC that has working code wants $0 :)
OwO:
STM32F107RCT6.
64KB ram, 256KB flash, and integrated 12-bit DAC.
$1.5 at small quantities.
Kasper:
Thanks but I don't think 12 bit will cut it. I've read 16 bit is plenty for everyone except the most expert audiophiles. So I am aiming for atleast 16.
SiliconWizard:
--- Quote from: Kasper on January 28, 2019, 04:43:56 am ---Looks like MCUs with DAC >= 16 bit aren't too common. And audio DACs are spread into multiple categories on DK.
--- End quote ---
That's true. But you could consider another option. Is it going to be a portable MP3 player, mainly used with headphones? If so, you'll need an headphones amp anyway, so an additional IC.
There are actually audio DACs that include an headphones amp, so you will only need an MCU capable of decoding MP3 and having an I2S output, and such a DAC. Problem solved.
For instance the TLV320DAC3100 from TI is about $2.5 per 1, about $1.8 per 100 (Digikey). http://www.ti.com/product/TLV320DAC3100
With a VS1053B, you'll need an MCU anyway to feed it? But it does include an headphones driver. So does the above DAC. And the overall sound quality will probably be much higher. So you'll essentially go from a $10 IC per 100 to a $1.8 IC per 100, plus the MCU, for a better sounding solution.
The advantage is that it'll be also more flexible. You could for instance add FLAC decoding or anything else the MCU can decode.
mariush:
If money's no issue, how about something like Cirrus Logic WM8731 : https://www.digikey.com/product-detail/en/cirrus-logic-inc/WM8731SEDS-RV/WM8731SEDS-RVTR-ND/5036734
It's around 2$ in quantity (1000+)
The WM8731 or WM8731L (WM8731/L) are low power stereo CODECs with an integrated headphone driver. The WM8731/L is designed specifically for portable MP3 audio and speech players and recorders. The WM8731 is also ideal for MD, CD-RW machines and DAT recorders. Stereo line and mono microphone level audio inputs are provided, along with a mute function, programmable line level volume control and a bias voltage output suitable for an electret type microphone.
Stereo 24-bit multi-bit sigma delta ADCs and DACs are used with oversampling digital interpolation and decimation filters. Digital audio input word lengths from 16-32 bits and sampling rates from 8kHz to 96kHz are supported.
Stereo audio outputs are buffered for driving headphones from a programmable volume control, line level outputs are also provided along with anti-thump mute and power up/down circuitry.
The device is controlled via a 2 or 3 wire serial interface. The interface provides access to all features including volume controls, mutes, de-emphasis and extensive power management facilities.
If you want something cheaper, may want to check out AK4951 that costs around 1.3$/100 or 1$ /500 : https://www.digikey.com/product-detail/en/akm-semiconductor-inc/AK4951EN/974-1064-1-ND/5180415
AK4951 is a low power 24-bit stereo CODEC with a microphone, headphone and speaker amplifiers. The AK4951 supports sampling frequency from 8kHz to 48kHz. It is suitable for a wide range of application from speech signal processing for narrowband, wideband and super wideband to sound signal processing for audio band.The input circuits include a microphone amplifier, an automatic wind noise reduction filter of the proprietary algorithms and a high performance digital ALC (automatic level control) circuit, therefore the AK4951 can record with high-quality sound regardless of whether indoors or outdoors. In addition, the output circuits include a cap-less headphone amplifier with a negative voltage generated by charge pump circuit and a speaker amplifier with 1W output power. It is suitable for various products as well as portable applications with recording/playback function.
(but keep in mind it's listed as "not for new designs" - check out other parts from them which are "active", before committing to this part)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version