voice
voice copied to clipboard
Use with react-audio-toolkit
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?
Hi did you find a solution on this, we had it working until a recent update and it doesnt work any more.
@n1ru4l Did you solved your problem?
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.
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 Something like this
https://github.com/jamsch/react-native-voice/blob/78e7aabf3b6d27168d33d288bb03ae10b6a777ff/ios/Voice/Voice.m#L199
@jamsch Would you like to do a Pull Request to add this?
@jamsch do you have this implementation for Android? Or do you know any fork that has this?
This would be great to have in the library could you make a PR @jamsch
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 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
@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 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
@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 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?
@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.