Skip to content
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

RTTTL on ESP32 : play the last note forever,er,er,er,er,er... #471

Closed
schmurtzm opened this issue Dec 24, 2021 · 3 comments
Closed

RTTTL on ESP32 : play the last note forever,er,er,er,er,er... #471

schmurtzm opened this issue Dec 24, 2021 · 3 comments

Comments

@schmurtzm
Copy link

schmurtzm commented Dec 24, 2021

Hi, I try to play with ESP32, now that I've understood and tested the differences between no DAC, internal DAC and external DAC, I encounter some problems.
The first one is about RTTTL. This problem is proper to ESP32 (I don't have the problem on ESP8266).

I take the example "PlayRTTTLToI2SDAC.ino" included in the library, I flash my ESP32 and it works but the last note is repeated for ever.
The esp32 is not crashed, it is possible to restart the complete play of the tone without problem but at the end it never stop. "rtttl->stop()" has no effect. I have tested on arduino IDE, platformio , with Wemos ESP32, ESP32 dev kit V4 , with older ESP32 framework, with older ESP8266Audio library : always the same result.

I've recorded the result sound from my ESP32 here.

Any idea what might be causing this problem?


PS : I have a second issue which has been opened 7 months ago by other guys here. If some people at ease with this library can have a look 😉 ...

Thanks again for this awesome library !

@Martin-Laclaustra
Copy link
Contributor

This problem was previously reported (by me) and it requires further investigation.
#327
As your report is very valuable and thorough, you may consider re-posting it in the former thread (to keep all information in one place) and to keep posting there future advances.
All help is welcome.
One information that could help in deciding where to look is testing whether the problem happens also with "no DAC" and with "external DAC" if you have the hardware to do so.

@schmurtzm
Copy link
Author

#327 updated !
When I saw that I was thinking that I had a solution but it has been already commited 😢
There are some similarities with #395 in the behavior but not sure that it is the same problem (looks more like a crash for the #395).

@schmurtzm
Copy link
Author

To make more tests quicky, you can try the code I am currently working on :
https://github.com/schmurtzm/MrDiy-Audio-Notifier

This is a project initially from MrDIY, which is a great compilation of all the ESP8266 audio capacity : a player controlled by MQTT able to play mp3, tone, TTS sam voice and TTS from google translate.
It has been ported to platformio and is compatible with ESP32 (excepted the bugs mentioned here).
This code also allows to switch easily between no DAC (version initally used by mr DIY) , external DAC or internal DAC.
You’ll also find some useful comments for wiring your DAC quickly or to improve the code.

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