Skip to content
New issue

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

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

Already on GitHub? # to your account

Can not use startRecording and play() in same compile #217

Open
jlsilicon opened this issue Feb 1, 2025 · 2 comments
Open

Can not use startRecording and play() in same compile #217

jlsilicon opened this issue Feb 1, 2025 · 2 comments
Labels

Comments

@jlsilicon
Copy link

jlsilicon commented Feb 1, 2025

If :
pcmConfig.h needs commented :
#define ENABLE_RECORDING
is enabled.

then TMRpcm.play("file") does not work.

Serial.println(audio.isPlaying());
-- always returns 0

Using Arduino Nano atmega328.

Could this be an Interrupt conflict ?

@TMRh20
Copy link
Owner

TMRh20 commented Feb 1, 2025

I'm quite certain others would have reported this issue previously if there was an issue with the library.

Have you changed anything else while connecting things for recording?

Nothing in the code has changed recently, so I would assume you must be doing something that is preventing it from working.

@TMRh20 TMRh20 added the question label Feb 1, 2025
@jlsilicon
Copy link
Author

Ok, I got it.
2 problems :

1: When you record you use( "filename" ) :
audio.startRecording("sound");

but when you play you use ( "filename.WAV" ) :
audio.play("sound.wav");

2: I do not have an Amp , so sound is only a light whisper.

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

No branches or pull requests

2 participants