2

I'm using React Native Camera to record video. I would also like to transcribe the voice at the same time (speech-to-text). I'm looking at React Native Voice but I don't think I can use both libraries at once (sharing the Mic input).

Wondering if anyone has ideas besides uploading the final video file somewhere to get transcribed.

Ellery Familia
  • 530
  • 5
  • 20
  • 1
    https://www.npmjs.com/package/@react-native-voice/voice maybe this can help @Ellery – Rizwan Atta Sep 19 '21 at 01:00
  • scratch the above one! i guess we can use https://www.npmjs.com/package/@aws-sdk/client-transcribe-streaming – Rizwan Atta Sep 19 '21 at 01:02
  • @RizwanAtta Does the mic input get shared ? This is what i'm really unclear about. Or would I need to modify React Native Camera to integrate AWS lib you referenced? – Ellery Familia Sep 22 '21 at 17:13
  • @RizwanAtta Turns out the first one works! Finally got it working today – Ellery Familia Sep 29 '21 at 20:45
  • @Ellery Familia, please can you help me out how to done this? – Ravina Vaishnav Jun 08 '22 at 12:06
  • @RavinaVaishnav the libraries worked as expected by just following their implementation guide. I ended up not using this because it’s not reliable, the user can always reject permissions to transcribe on iOS. I’m sure there are better approaches and the easiest is transcribing after the video is uploaded, but that will cost money. – Ellery Familia Jun 08 '22 at 12:11

1 Answers1

2

Yes, you can. You can record video with React Native Camera, and using speech-to-text in Voice Library.

For voice library you can see this or this guides.

ExDoors
  • 119
  • 1
  • 5
  • Apologies, didn't realize the bounty expired and I couldn't then assign it. I am indeed able to record and transcribe at the same time with React-Native-Voice. I'll accept this as the answer. – Ellery Familia Sep 29 '21 at 20:44
  • Hello, can you please share your solution how you were able to listen and record at the same time? thank you. @ElleryFamilia – AlkanV Jun 16 '22 at 08:18