Closed MohsinaliEMed closed 3 years ago
That's been asked before and it's not possible since the library relies on the Android bundled in voice search engine which controls the beep autonomously.
@MohsinaliEMed @gotev Actually, there is a way mute it, not beautiful but works.
@yuripourre workarounds like that may work for the specific use case but can have many different unwanted consequences when considering your app running together with other apps, because the audio channels are muted and you have to be very careful to restore them. There are also situations when you simply could not do anything to restore proper audio channels status properly, causing unwanted behaviors, for example receiving a call while running the speech recognition.
I personally strongly discourage practices like that, which may be dangerous to the entire ecosystem of apps. To have voice recognition without the beep I advice to use a different speech recognition engine, like Google Cloud Speech or just be fine with the tone, which is however the same across all the Google products and very familiar to final users.
@gotev Fair enough. I just linked here in case people desperately need a (dirty) workaround.
@yuripourre usually that kind of despair comes 99% out of poor management, which has to be stopped from thinking the wrong way. We devs all love good and clean code and to deliver quality products. Pushing devs to do dirty stuff is not right and we should all stand against workarounds which can be avoided in the name of the good product quality we deliver as professionals.
How can silence the start sound and end sound (tone or beep) ?