Skip to content

SD card recording #285

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
paralogicdr opened this issue Aug 2, 2022 · 25 comments
Closed

SD card recording #285

paralogicdr opened this issue Aug 2, 2022 · 25 comments

Comments

@paralogicdr
Copy link

Hi everyone,
I searched the codes and examples but could not find how to record audio to SD card, would you help me

@pschatzmann
Copy link
Owner

Just create a file and use it as copy destination

@paralogicdr
Copy link
Author

Can a StreamCopy class be used for this? Can I use filename as destination?

@pschatzmann
Copy link
Owner

pschatzmann commented Aug 2, 2022

StreamCopy should work: The destination should be a File object or an EncodedAudioStream where you pass the file object and an Encoder...

@paralogicdr
Copy link
Author

Thank you Phil

@pschatzmann
Copy link
Owner

pschatzmann commented Sep 1, 2022

I finally added some file based recording example

@paralogicdr
Copy link
Author

paralogicdr commented Sep 2, 2022 via email

@paralogicdr
Copy link
Author

paralogicdr commented Sep 12, 2022 via email

@paralogicdr
Copy link
Author

paralogicdr commented Sep 12, 2022 via email

@pschatzmann
Copy link
Owner

pschatzmann commented Sep 12, 2022

I have never tried, but somebody has the same issue: #346

@paralogicdr
Copy link
Author

paralogicdr commented Sep 12, 2022 via email

@pschatzmann
Copy link
Owner

pschatzmann commented Sep 12, 2022

If you read espressif/arduino-esp32#4782. They pretend that it is resolved with release 2.0.3.
Upgrade if you are on an older release and maybe try other ADC pins...

The latest release is 2.0.4 now...

@paralogicdr
Copy link
Author

paralogicdr commented Oct 4, 2022 via email

@pschatzmann
Copy link
Owner

pschatzmann commented Oct 5, 2022

To keep things consistent, I would suggest that you try to create a second webserver (on a differerent port) and publish the Ecg and pulse oxymetry data (e.g. as csv or html values).

Here is a html example with my TinyHttp library:
https://github.com/pschatzmann/TinyHttp/blob/main/examples/serverStream/serverStream.ino

If this is working you could use this library for the sound as well, so that all works on the same port, just with different urls...

@paralogicdr
Copy link
Author

paralogicdr commented Oct 5, 2022 via email

@pschatzmann
Copy link
Owner

Did you install the TinyHttp library ?

@paralogicdr
Copy link
Author

paralogicdr commented Oct 5, 2022 via email

@pschatzmann
Copy link
Owner

Oh, I see: Log has been renamed to HttpLogger

@paralogicdr
Copy link
Author

paralogicdr commented Oct 5, 2022 via email

@paralogicdr
Copy link
Author

paralogicdr commented Oct 5, 2022 via email

@pschatzmann
Copy link
Owner

Your right: I have updated all example and tested the log server example agin...

@paralogicdr
Copy link
Author

paralogicdr commented Oct 5, 2022 via email

@pschatzmann
Copy link
Owner

I think you need to upgrade the AudioTools as well...

@paralogicdr
Copy link
Author

paralogicdr commented Oct 5, 2022 via email

@pschatzmann
Copy link
Owner

Oh, I see. GET is defined twice, so you need to specify which GET you mean: In this case if would be tinyhttp::GET

@paralogicdr
Copy link
Author

paralogicdr commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants