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

How to release the breathRecognizer #1

Open
caichunjian520 opened this issue Jan 10, 2018 · 0 comments
Open

How to release the breathRecognizer #1

caichunjian520 opened this issue Jan 10, 2018 · 0 comments

Comments

@caichunjian520
Copy link

In my project I use AVSpeechUtterance to get the speech from text, when I use BreathRecognizer in my project, the original AVSpeechUtterance not work anymore. And my project is also work in background mode that when press home button to get back to home screen, there is a red square alert with my app's name in the center. I can trigger breathRecognizer event from home screen.

So I came up with an idea to set breathRecognizer to nil when I want to release it, it seems not work.
Finally I found this works: breathRecognizer?.recorder?.stop()
It can stop the red alert appear at home screen, but I can not get AVSpeechUtterance work, so hope you can add the release function.

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

1 participant