MrBuddyCasino / ESP32_Alexa

An Alexa Smart Speaker project for the ESP32.
Mozilla Public License 2.0
265 stars 72 forks source link

External RAM #19

Closed adimnno closed 6 years ago

adimnno commented 6 years ago

It seems that you have used the PSRAM module as FIFO for the mic input and mp3 output. But you mentioned that you do not need any extra RAM in "http://www.esp32.com/viewtopic.php?f=17&t=2618". How do you achieve playing long response for paragraphs then?

MrBuddyCasino commented 6 years ago

No, PSRAM is not used. Audio is streaming.

adimnno commented 6 years ago

Hi MrBuddyCasion,

Thank you very much for your prompt reply. But I have investigated your code few months before, it seems that you have use the SPI RAM to store the MP3 data replied form AVS before the media player starting to play. It's reasonable as you could not foresee the length of the alexa response. If you use internal RAM as buffer, ( I guess the RAM size is a great limitation), how could you make sure the smoothness of the playback?

I appreciate much of your great work!!

Thank you very much.

MrBuddyCasino commented 6 years ago

I guess you mean the SPI Fifo code parts. They are remnants of the ESP8266 origins of this projects, where MP3 playback could only be accomplished with an external SPI RAM chip. The FIFO buffer is still used, but the data does not reside in external RAM anymore.

A small buffer is used for streaming the audio in real time, and it only works smoothly if your wifi connection is good.

adimnno commented 6 years ago

OK! Thanks for your pointing out of my question. I would investigate more on your latest code first.

THANK YOU VERY MUCH !!!!