cancel
Showing results for 
Search instead for 
Did you mean: 

MP3 & WMA player with DISCOVERY 746

hadi_ghr_e_61
Associate II
Posted on September 03, 2016 at 19:15

HI

how can i play audio files with WM8994 and DISCOVER 746 board?

thank you

10 REPLIES 10
Posted on September 04, 2016 at 14:58

You'd need to use a software CODEC to convert the WMA, MP3, OGG or whatever into a PCM format that can be pumped to the audio codec.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
mark239955_stm1
Associate II
Posted on September 04, 2016 at 15:36

Or a

http://www.vlsi.fi/en/products/vs1063.html

.

Walid FTITI_O
Senior II
Posted on September 05, 2016 at 11:16

Hi  ghr.hadi,

I recommend you the SAI-Audio'' example in the

http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-embedded-software/stm32cubef7.html

package located at this path: STM32Cube_FW_F7_V1.4.0\Projects\STM32756G_EVAL\Examples\SAI\SAI_Audio

This example uses an audio codec driver wm8994 located at this path STM32Cube_FW_F7_V1.4.0\Drivers\BSP\Components\wm8994.

The audio codec driver  consists of three independent layers:

 - Codec Hardware layer: which controls and communicates with the audio codec

   (WM8994) implemented on the evaluation board.

 - MAL (Media Access Layer): which controls and interfaces with storage media

   storing or providing the audio file/stream.

 - The high layer: which implements overall control and interfacing API allowing

   to perform basic audio operations (Init, Play, Pause, Resume, Stop, Volume

   control and audio file pointer management)

-Hannibal-

hadi_ghr_e_61
Associate II
Posted on September 05, 2016 at 11:55

Hi

thank you

do you have a document for SAI and this cub example?

hadi_ghr_e_61
Associate II
Posted on September 05, 2016 at 11:56

thank you

this a last way for me

hadi_ghr_e_61
Associate II
Posted on September 05, 2016 at 11:58

thank you too

do you have an library or code for do this?

Walid FTITI_O
Senior II
Posted on September 05, 2016 at 13:52

Hi ghr.hadi,

Check the SAI (serial Audio interface) parth  in the STM32F7 reference manual

http://www.st.com/content/ccc/resource/technical/document/reference_manual/c5/cf/ef/52/c0/f1/4b/fa/DM00124865.pdf/files/DM00124865.pdf/jcr:content/translations/en.DM00124865.pdf

. The code of example is in the location that I have already mentionned. There is another example in the same package called ''Audio_playback_and_record'' ready for use on STM32746G-Discovery at this path STM32Cube_FW_F7_V1.4.0\Projects\STM32746G-Discovery\Applications\Audio

Here is the STM32746G-Discovery user manual

http://www.st.com/content/ccc/resource/technical/document/user_manual/f0/14/c1/b9/95/6d/40/4d/DM00190424.pdf/files/DM00190424.pdf/jcr:content/translations/en.DM00190424.pdf

. You find in page 15 a description of the Audio hardware and software enviroment. For the example follow the instructions on the readme files.

-Hannibal-

hadi_ghr_e_61
Associate II
Posted on September 05, 2016 at 16:57

Hi

thank you

i can play WAV files now.

how can i play .MP3 and .WMA filles too?

ST site do not have C code for decode .MP3 and .WMA filles or i can not find it.

if you have it please share with me.

thank you

hadi_ghr_e_61
Associate II
Posted on September 05, 2016 at 17:24

I need this C code 

software CODEC to convert the WMA, MP3, OGG or whatever into a PCM format

any one can hellppppppp?

thank you