Page 1 of 1

audio streaming

Posted: Sat Dec 17, 2016 11:40 am
by kamesh
hi,

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

Re: audio streaming

Posted: Sat Dec 17, 2016 4:15 pm
by kolban
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.

Re: audio streaming

Posted: Mon Dec 19, 2016 3:13 am
by ESP_Angus
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.