Play Audio in nrf52 boards

How to Play Audio (.wav file) like human voice not the beep sound in nrf52832 boards?

Parents Reply Children
  • Hi Yesha,

    Thanks for the above positive reply's!

    I have similar kind of problem when I send audio data to Ble I am getting lots of noise on the other side [Android phone] .

    I have used SGTL5000 codec and NRF52832 MCU and I have used I2S protocol to get data from codec

    Please note:

    - I have set SGTL5000 codec I2S output to 16Khz. 

    - In LOOPBACK sound is very crystal clear but when I send that data on  ble i am getting lots of noise. 

    - I have taken dummy test where I have sent hard coded audio file to ble device and on the other   side means android side we successfully played that audio file.

    Do I need to compress or decompress the data for this or can you suggest how to send data on Ble?

    we are stuck here for long time!!!

    After long time someone open this topic again and as per your above reply in mind born a ray of hope!!

    PLEASE GUIDE US!!

    Best and regards,

    Dipak

  • Hi 

    You should be able to attach a file simply by drag dropping it into your reply. If you get the message that the file type is not supported you can zip it first. 

    I was able to build the soundforge project and run it on a Thingy52 (which comes with a built in speaker). I notice that there is a bit of noise when the sound is being played. Does this sound similar to the noise you are experiencing?

    20220909_145842.zip

    It is definitely possible to connect a DAC to the nRF52 over I2S, and this will give you much better sound quality compared to using the PWM. I will take a look next week if I can find a good example for this. 

    Best regards
    Torbjørn

  • Hi, 

    Thanks for the help, my sound file is not similar to this one, here we can hear sample 3 with noise but I am only getting noise but now I am changing output from PWM to DAC using I2C so looking for their examples

    Thanks,

    Yesha

  • Hi Yesha

    Sounds good. If you have issues integrating your DAC I would recommend opening a new ticket on this (same for Dipak's request below). 

    The devzone system is not really designed to handle multiple different inquiries in the same ticket. 

    Best regards
    Torbjørn

Related