Hyy, a beginner here. I am working on a project in which, a speaker connected to PAM8043 will be saying words like 'Tomato', and 'Onion' using ESP32 CAM. Any advice on how to achieve this?
Welcome
An ESP32 CAM is not an Arduino Nano ESP32; therefore your topic has been moved to a more suitable location of the forum.
you could attach a DFPlayer_Mini to the ESP-CAM
audio MP3 files on a SD card selected for playing by program on ESP32
Is there anyyyy way to play audio using ESP32-CAM?? Like any way? I want some cheap way. PLS advice.
Sir the problem is I dont wanna use SD card, i am looking for cheap solution, sd cards are costly. Is there any other way?
Please do not cross-post. It's against the rules of the forum because it wastes peoples time.
You topics on the same subject have been merged.
Maybe you could store the audio files in flash using a file system like littlefs or spiffs.
Audio can take up a lot of bytes so you would have to pay attention to how mush storage space you use. When you need the sound read the file into an array and send it to tx buffers of i2s to digital to analog converter.
The D/A on the esp is only 8 bits so the sound is not going to be great. Probably better to use i2s speaker which has its own digital to analog converter built in.
Yeah i stored the audio files in flash using a file system like littlefs. Can ESP32-cam be used with the MAX98357A I2S 3W class D amplifier to play audio or music?? Does ESP32-CAM can support I2S? Any advice will be appreciated as I am complete noob
I have a question Pls , Can ESP32-cam be used with the MAX98357A I2S 3W class D amplifier to play audio or music?? Does ESP32-CAM can support I2S? Any advice will be appreciated
Yes you can use a class D amplifier .
So you would read the file into an array and send it out the D/A converter. You would
have to send your audio at the same rate that it was sampled at.
Please stop cross-posting. Keep your related questions in one topic. You did ask in post #9 so there was no reason to ask again in a new topic.
Next time it will be reported.