voice icon indicating copy to clipboard operation
voice copied to clipboard

Use with react-audio-toolkit

Open nuqli opened this issue 5 years ago • 15 comments

I would like to use this package while recording an audio with @react-native-community/audio-toolkit

I got an error from the second library.

I think that two packages can't use the microphone concurrently.

Is it true?

nuqli avatar Jul 03 '19 08:07 nuqli

Hi did you find a solution on this, we had it working until a recent update and it doesnt work any more.

PvanHengel avatar Dec 04 '19 21:12 PvanHengel

@n1ru4l Did you solved your problem?

lfoliveir4 avatar Dec 16 '19 12:12 lfoliveir4

We ended up making a few tweaks to this package to record to file, it’s a couple of lines of code. We did it iOS only for now, but was much easier than trying to debug the flakiness with using both packages as the same time. In the source code here you will even see a todo item with the line where to write the buffer to the local file. Ping me if you need more details.

PvanHengel avatar Dec 16 '19 12:12 PvanHengel

For anyone interested the lines are here: https://github.com/react-native-community/react-native-voice/blob/38b5ac45578eda6e5b944e4742388ea2925b5867/ios/Voice/Voice.m#L221

@PvanHengel any advice or a couple lines of sample on how you might do the recording and voice to text together?

Thanks!

markwk avatar Jan 23 '20 21:01 markwk

@markwk Something like this

https://github.com/jamsch/react-native-voice/blob/78e7aabf3b6d27168d33d288bb03ae10b6a777ff/ios/Voice/Voice.m#L199

jamsch avatar Jan 23 '20 22:01 jamsch

@jamsch Would you like to do a Pull Request to add this?

dplewis avatar Jan 30 '20 15:01 dplewis

@jamsch do you have this implementation for Android? Or do you know any fork that has this?

avnergoncalves avatar Mar 05 '20 15:03 avnergoncalves

This would be great to have in the library could you make a PR @jamsch

safaiyeh avatar Mar 06 '20 02:03 safaiyeh

I'm trying to use audio toolkit and voice together, it works in ios well but it doesn't work together in android. Only one of them works when I try to start record+recognition. Do you guys also have this problem? I have seen a certain app(millions downloaded) which is made by React Native and it provides a feature of voice recording and recognition simultaneously in both platforms. I'm really curious about how they have made recording&recognition. Or did they use any back-end server communication? idk...the funny thing is a developer who made that app has contributed to this library before.

stellarsailor avatar Mar 17 '20 22:03 stellarsailor

@stellarsailor I use this this with react-native-audio-record, and it's works well on all iOS devices and most of android. But Samsung(Galaxy S8 and Samsung A70) have issue with that and works only one, '6/No speech input' error appeared

Hirurgo avatar Apr 29 '21 22:04 Hirurgo

@stellarsailor I use this this with react-native-audio-record, and it's works well on all iOS devices and most of android. But Samsung(Galaxy S8 and Samsung A70) have issue with that and works only one, '6/No speech input' error appeared

How were you able to do that? I've been stuck on it for the past couple days using react-native-audio-recorder-player

6ichem avatar May 02 '21 17:05 6ichem

@6ichem I don't, but thats result of our little research:

ISSUE Google Pixel 3 (11) Samsung A70. Sony Xperia 10 Xiaomi Redmi Note 8 Pro

WORKS iPhone 8 iPhone 11 Xiaomi Mi A2 Huawei P20 pro Huawei P30 Lite Honor 20

Hirurgo avatar May 06 '21 07:05 Hirurgo

@6ichem I don't, but thats result of our little research:

ISSUE Google Pixel 3 (11) Samsung A70. Sony Xperia 10 Xiaomi Redmi Note 8 Pro

WORKS iPhone 8 iPhone 11 Xiaomi Mi A2 Huawei P20 pro Huawei P30 Lite Honor 20

Well I'll help you on your research and tell you that it does not work. Voice recognition will keep showing "no speech input" as long as you are trying to record even when using the same package you mentioned.

6ichem avatar May 06 '21 18:05 6ichem

@6ichem I don't, but thats result of our little research: ISSUE Google Pixel 3 (11) Samsung A70. Sony Xperia 10 Xiaomi Redmi Note 8 Pro WORKS iPhone 8 iPhone 11 Xiaomi Mi A2 Huawei P20 pro Huawei P30 Lite Honor 20

Well I'll help you on your research and tell you that it does not work. Voice recognition will keep showing "no speech input" as long as you are trying to record even when using the same package you mentioned.

Some luck searching how to implement with react-native-audio-recorder-player?

PepeValenzuela98 avatar May 24 '21 23:05 PepeValenzuela98

@6ichem I don't, but thats result of our little research: ISSUE Google Pixel 3 (11) Samsung A70. Sony Xperia 10 Xiaomi Redmi Note 8 Pro WORKS iPhone 8 iPhone 11 Xiaomi Mi A2 Huawei P20 pro Huawei P30 Lite Honor 20

Well I'll help you on your research and tell you that it does not work. Voice recognition will keep showing "no speech input" as long as you are trying to record even when using the same package you mentioned.

Some luck searching how to implement with react-native-audio-recorder-player?

I tried for like an entire week before giving up, don’t think you can record and to speech to text with React Native on Android.

6ichem avatar May 25 '21 00:05 6ichem