audio streaming

kamesh
Posts: 35
Joined: Sat Aug 06, 2016 5:14 am

audio streaming

Postby kamesh » Sat Dec 17, 2016 11:40 am

hi,

I need to play ringtone by using esp32. How can i play? pls revert back.

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: audio streaming

Postby kolban » Sat Dec 17, 2016 4:15 pm

If I had a project that needed to play a sound, I would use a module similar to this one:

http://www.ebay.com/itm/4-Channel-Contr ... 5d634b9ce8

It can store a few minutes of quality audio and has an amplifier built in. All one needs is to connect a speaker and trigger it to play from a GPIO from the ESP32.
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

ESP_Angus
Posts: 2196
Joined: Sun May 08, 2016 4:11 am

Re: audio streaming

Postby ESP_Angus » Mon Dec 19, 2016 3:13 am

Between the DAC and the I2S features of the ESP32, it is possible to play audio directly with some external hardware (amplifier or I2S codec, respectively.) Until the I2S driver is available, the simplest option would be to use a timer to call the dac_out_voltage() function at a particular sample rate. There isn't an example available to do this out of the box, but I believe it would work.

There are more complex audio examples in the pipeline, but not yet I'm afraid.

Who is online

Users browsing this forum: No registered users and 39 guests