-
Hi! I'm trying to encapsulate a behaviour that includes playing sound in a class, and I'm not able to get audio_eof_speech to work. I've implemented the method as
but it's (apparently) not being triggered. TTS audio is coming out, this is the only thing that I've not been able to make work. I want to use the flag to stop reading sensors, etc. while audio is being played back to avoid the choppy sound I'm sometimes getting. Any other ideas? I've also thought moving it to a different core, but would like to try this simple approach of using a flag to stop other tasks. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Ah, actually it works by defining |
Beta Was this translation helpful? Give feedback.
-
There is a difference to the usual CallBacks. With CBs, the user usually specifies the name and must ensure that the function exists, otherwise the compiler will complain. |
Beta Was this translation helpful? Give feedback.
Ah, actually it works by defining
audio_eof_speech
outside the class, in the main.cpp... I don't fully understand why it works, I'll do a bit of research.