muhaos / react-native-speech-to-text-ios

React Native speech recognition component for iOS 10+
MIT License
40 stars 9 forks source link

Speech to text and recording in the same time. #3

Open e-rasvet opened 7 years ago

e-rasvet commented 7 years ago

Hello!

Is it possible to use speech to text and record user voice in the same time? I tried to do it with react-native-audio but no record was made.

Maybe the problem in my code.

      async _record() {

        SpeechToText.startRecognition("en-US");

        try {
          const filePath = await AudioRecorder.startRecording();
        } catch (error) {
          console.error(error);
        }
      }
muhaos commented 7 years ago

Hi, I don't think that it will work in this way. I believe that you need your custom modified text to speech lib. You can modify mine or create yourself. But little objc/swift coding needed.

On Apr 11, 2017 08:51, "e-rasvet" notifications@github.com wrote:

Hello!

Is it possible to use speech to text and record user voice in the same time? I tried to do it with react-native-audio but no record was made.

Maybe the problem in my code.

  async _record() {

    SpeechToText.startRecognition("en-US");

    try {
      const filePath = await AudioRecorder.startRecording();
    } catch (error) {
      console.error(error);
    }
  }

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/muhaos/react-native-speech-to-text-ios/issues/3, or mute the thread https://github.com/notifications/unsubscribe-auth/ABbuD9K7xPUyjGpKxlIE6z0rMt2o7xj3ks5ruxTrgaJpZM4M5pf5 .

e-rasvet commented 7 years ago

Hello! Thanks for your reply. Can you let me know how difficult it is to make changes in the script and your price? So that it will be possible to make recording of the sound and speech to text at same time. Do you need to look at my code first?