react-native-voice / voice

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

Is it possible to record the audio with speech recognition enabled? #399

Open mchriss opened 2 years ago

mchriss commented 2 years ago

Hello!

I'm working on a project in which I need to be able to recognize speech and then listen to the heard input. Is there any way I can achieve this? I know using separate packages for both purposes isn't possible because android only allows one access to the mic at a time, but is it possible to save the audio stream into a file before being processed by the speech recognizer?

Thanks in advance!

mschouhan123 commented 2 years ago

I also need this type of functionality.

rusakovic commented 2 years ago

The same question is about recording the video at the same time. https://mrousavy.com/react-native-vision-camera/docs/guides

mchriss commented 2 years ago

The same question is about recording the video at the same time. https://mrousavy.com/react-native-vision-camera/docs

Page not found...

rusakovic commented 2 years ago

The same question is about recording the video at the same time. https://mrousavy.com/react-native-vision-camera/docs

Page not found...

Fixed. the issue is only on Android.

AlkanV commented 2 years ago

any news on this feature? it would be amazing if we could get audio stream and speech 2 text results at the same time on android.

mchriss commented 2 years ago

Nothing new, sadly

KULTI1995 commented 2 years ago

Also needs

nescroft commented 1 year ago

It works for me using react-native-audio-recorder-player at the same time. Works fine on iOS. Seems to work on android although i'm having some trouble getting android to continue to transcribe without stopping constantly.

nipunravisara commented 1 year ago

It works for me using react-native-audio-recorder-player at the same time. Works fine on iOS. Seems to work on android although i'm having some trouble getting android to continue to transcribe without stopping constantly.

How did you achieve this functionality. It seems when react-native-audio-recorder-player is using the mic, react-native-voice/voice can't access the mic. Which give error: {code: '7', message: '7/No match'}