VS1003B record voice in OGG format with ESP32 arduino

Writing software that controls the system and peripherals such as displays, SD cards, Buttons, LEDs, Serial Ports etc.
Post Reply
arduinoVSDSP
User
Posts: 5
Joined: Wed 2023-11-01 12:53

VS1003B record voice in OGG format with ESP32 arduino

Post by arduinoVSDSP »

Hello everybody.

I bought a VS1003 board and I have a separate SD CARD module and ESP32 arduino board.

I made a connection suggested on a website and I can listen to radio stations using headphones.

I use the Arduino IDE.

What I would like is to speak into the microphone and record my voice in OGG(or MP3) format on the SD card. I press a button, speak, release the button and the file with my voice is recorded on the SD card.

Does anyone have a link to a code so I can test this functionality ? I search, I look, but I can't find it.

Grateful
User avatar
pasi
VLSI Staff
Posts: 2123
Joined: Thu 2010-07-15 16:04

Re: VS1003B record voice in OGG format with ESP32 arduino

Post by pasi »

Thread viewtopic.php?t=840 has a link to various microcontroller examples, including recording examples.

Unfortunate there are generic, not for Arduino, but hopefully still helpful.

Recording is not much different to playing, but saving to storage may become an issue if you don't have large enough FIFO buffers. Writes to SD cards regularly pause for quite a long period, which becomes an issue with small FIFO and high bitrate.
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook
arduinoVSDSP
User
Posts: 5
Joined: Wed 2023-11-01 12:53

Re: VS1003B record voice in OGG format with ESP32 arduino

Post by arduinoVSDSP »

Thank you PASI friend,

I will research and if I have more questions I will post them here again.

Peace
arduinoVSDSP
User
Posts: 5
Joined: Wed 2023-11-01 12:53

Re: VS1003B record voice in OGG format with ESP32 arduino

Post by arduinoVSDSP »

pasi wrote: Fri 2023-11-03 13:02 Thread viewtopic.php?t=840 has a link to various microcontroller examples, including recording examples.
Dear PASI, I think I'll give up and try to buy another player module.

I'm still looking for information now, my eyes burn from searching so much on the internet.

With code that is just a player, I can listen to an mp3 song recorded on my memory card on my headphones and I can also listen to web radio. This indicates that my connection is correct. But with codes that record I can't record my voice by creating .OGG files on the memory card.

I've already tested dozens of codes. With some I can't even compile: Error compiling for ESP32 Dev Module board.
With others I get this error: VS1053 not found.

I'm using the Arduino IDE version 1.8.16 and core ESP32 version 1.0.6. My connection diagram is in post #1
User avatar
pasi
VLSI Staff
Posts: 2123
Joined: Thu 2010-07-15 16:04

Re: VS1003B record voice in OGG format with ESP32 arduino

Post by pasi »

If you have vs1003b, code that expects vs1053 won't work.

vs1003b cannot encode in Ogg Vorbis or mp3. Its ROM code only supports IMA ADPCM. The Ogg Vorbis encoding application is only available for vs1053.
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook
arduinoVSDSP
User
Posts: 5
Joined: Wed 2023-11-01 12:53

Re: VS1003B record voice in OGG format with ESP32 arduino

Post by arduinoVSDSP »

pasi wrote: Mon 2023-11-06 10:35 If you have vs1003b, code that expects vs1053 won't work.

vs1003b cannot encode in Ogg Vorbis or mp3. Its ROM code only supports IMA ADPCM. The Ogg Vorbis encoding application is only available for vs1053.
The board I'm using is the one in the photo in post#2, of the connection diagram.

Note that on the edge of it there is the white silkscreen VS1003/VS1053 Mp3 decoder.

I took a photo now trying to focus the chip better, it's a VS1003b. Look, please.

https://frequencia.infinityfreeapp.com/VS1003b.jpg


EDIT: OK. I went back to the announcement of the winner of this card and actually, reading it now looking for details, it says that recording format: IMA ADPCM (mono). Thank you for the warning. I did not pay attention. Good week.
Post Reply