GithubHelp home page GithubHelp logo

Comments (9)

TMRh20 avatar TMRh20 commented on August 15, 2024

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.

TMRh20 avatar TMRh20 commented on August 15, 2024

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.

TMRh20 avatar TMRh20 commented on August 15, 2024

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.

FoxEast2021 avatar FoxEast2021 commented on August 15, 2024

Thank you very much Mr. TMRh20 for this great favor

from autoanalogaudio.

FoxEast2021 avatar FoxEast2021 commented on August 15, 2024

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.

TMRh20 avatar TMRh20 commented on August 15, 2024

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.

FoxEast2021 avatar FoxEast2021 commented on August 15, 2024

thank you very much (Great Sir)

from autoanalogaudio.

FoxEast2021 avatar FoxEast2021 commented on August 15, 2024

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.

TMRh20 avatar TMRh20 commented on August 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.