Reference required to implement the feature speech to text

Hello FlutterFlow Expert

I am new to FlutterFlow and JavaScript. I am doing one POC for my organization using FlutterFlow and over there one feature needs to implement Speech_To_Text. For that, earlier I have used speech_to_text: ^6.3.0 package with the help of one reference from YouTube. But the package is not accurate. 

I have two options now:

  1. Use WhisperAPI provided by OpenAI, For that I have created the api in FlutterFlow. But I unable to send the speech as Audio (Note : Do not want to send recorded audio). Can you please provide some reference how can I send the audio as a request to the API? 

    Whisper API link : API Reference - OpenAI API

   2. Use google_speech: ^2.2.0, But I have no idea how to use it for small demo      purpose. Can you please provide some reference?

My FlutterFlow app link : https://app.flutterflow.io/run/csr8StKYFfvgUJbwCawV

Thanks

Avijit

4
6 replies