react-native-voice / voice

:microphone: React Native Voice Recognition library for iOS and Android (Online and Offline Support)
MIT License
1.81k stars 488 forks source link

Is there any way to ignore speaker output? #469

Open sleep9 opened 10 months ago

sleep9 commented 10 months ago

Speech recognition is working fine but output from the speaker is being captured and I would really like to have a speaker mode for my application. Is there any way to ignore speaker output?

adorum commented 7 months ago

any updates on this?

CharlesAbetz commented 7 months ago

following.

spyshower commented 7 months ago

I dont think you can do that

VenuChoudhary001 commented 1 month ago

Any updates on this issue?

Update : In order to ignore speaker output you can use IncallManager. You can route the audio to earpiece and force the speaker to be off. But if there is any way for you to recognize speech from some 3rd party api you can use react-native-webrtc. It will take the audio stream and has options for echo cancellation from same device. But no speech recognition. It will take the complete audio stream.