Comments (9)
There is an issue with the current recording example and ESP32. On Arduino boards like Uno, Nano, Due etc, the SD library behaviour is to append to file, where ESP32 will truncate the file. Essentially, it is probably recording correctly, but the data is being deleted by ESP32 SD library when the file is opened for finalization. Either that behaviour needs to be modified or the example sketch needs to be modified to fix this issue. ( the file needs to be left open for finalization after recording )
from autoanalogaudio.
I took a quick look at the recording example, and it looks like a few more modifications are needed to work with ESP32, so I'll see about that...
from autoanalogaudio.
Ok, I fixed it. The examples can be updated from https://github.com/TMRh20/AutoAnalogAudio/tree/master/examples/SDAudio/SdAudioRecording or if you reinstall the library manually it will work as well.
from autoanalogaudio.
Thank you very much Mr. TMRh20 for this great favor
from autoanalogaudio.
Thank you very much for your answers
Now it records the wav file on the sdcard, but my only problem is the sound is recorded because the sound inside the wav file is very fast, which means that we have doubled the playback speed of the wav file while playing it!
This is the case. Do you think there is a problem with my esp32?
If you want, I can upload a sample of the recorded file for you, of course, if needed, sir!
from autoanalogaudio.
Hmm, I'm not sure why it would be speeding up on playback like that. It could have something to do with the SD write speed. What if you try a lower sample rate. ( Call startRecording(newWavFile, 11000);
and stopRecording(newWavFile, 11000);
)
It should also show the Samples per Second:
while recording so you can see if there are buffer underruns.
from autoanalogaudio.
thank you very much (Great Sir)
from autoanalogaudio.
Excuse me, Mr. TMRh, for my many questions from you
I wanted to use this library and your library to send the recorded audio to the mqtt server through the mqtt server I set up on my computer, and then save it using node-red, but a small problem I have about how to configure node-red; To store audio sent from esp32.
I wanted you to give me a reference or guidance on this if possible. (Ie for example the node-red side, should a buffer be created to receive it?)
Thanks for your great answers
from autoanalogaudio.
Sorry about the late reply, but looks like you're on your own on this one anyway as I don't know the answer. I can't really help much more with this issue.
from autoanalogaudio.
Related Issues (20)
- Can we get support esp8266 board? HOT 3
- Record sound from esp-cam HOT 1
- How Pin use to record audio on esp32 in AAAudio library? HOT 1
- Use on new Nano33BLE format boards HOT 1
- Low / Distorted Input and Output HOT 1
- Does it supports esp8266? HOT 1
- I can't make it stream over radio nrf24l01. HOT 3
- Which code Example can i use to record sound with the Arduino Due HOT 2
- Does the library Support Audio recording on an STM32 Board/Architecture HOT 1
- Example Confusion of hardware definition HOT 2
- SD compability HOT 4
- AutoAnalogAudio.h conflicts with Audio.h library HOT 4
- Problem with ADC read HOT 4
- Compile error for ESP32-S3 HOT 1
- max 9814 record HOT 2
- Recording speed HOT 9
- Microphone problem HOT 1
- Undetected type when using Arduino IDE HOT 3
- problems with esp32 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autoanalogaudio.