How to pause audio.connecttospeech() .. and how to stop (clear buffer) ? #723
kaloprojects
started this conversation in
General
Replies: 1 comment
-
found it, each new audio.connecttospeech clears buffer itself, which is perfect (for STOP), and pause can be realized with pausing audio.loop() in main loop. All fine, thread can be closed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Maybe a dummy question (sorry), just want to understand 'how to 'stop' the I2C Audio (with keeping audio-loop() in main loop).
2 use cases (just edited to make it more clear)
Usecase 1 (stop): Background: I want to use audio.connecttospeech( text1 ) .. and being able to stop text1 audio via a button (stop and erase, not pause) because i want force silence, would allow me to send a 2nd text immidiatly next. Do i understand correctly that i could call audio.resetBuffer() to stop before I am calling a new audio.connecttospeech( with text2 ) ?
And use case 2 (pause): Want to hold audio on pause via another button (pause button of spoken text) and proceed on release.
Thx !
Beta Was this translation helpful? Give feedback.
All reactions