speechutils icon indicating copy to clipboard operation
speechutils copied to clipboard

Speechutils documentation on pausing background audio

Open viju2008 opened this issue 5 years ago • 1 comments

Hello ,

This is a very useful repo.

In the speechutils github repo there is a para that mentions pausing background audio. I have built the app and am using it with kaldi gstreamer.

However, the background notification audio is spoiing the accuracy of recognition.

Can you please provide sample code on how to pause background audio or some hints pointing out where i have to look to implement pausing of background audio like whatsapp notifications when i have tapped microphone to start listening.

Regards ,

viju2008 avatar May 17 '20 10:05 viju2008

See the usage in https://github.com/Kaljurand/speechutils/blob/master/app/src/main/java/ee/ioc/phon/android/speechutils/service/AbstractRecognitionService.java#L186

Kaljurand avatar May 19 '20 20:05 Kaljurand