First off, thanks for your work. I find this very useful. The base application is working fine. I can use all my buttons and I can get the transcript ok.
But where I am facing issues is when I want to chain the actions. For example, I want to:
Press Start to record and then press Stop.
Then I want the voiced prompt to be transcribed into text and fed into my google speech library to get a response.
I want that response Audio to be played
My functions:
startRecording -> stopRecording will generate the transcript.
sendMessage(): Takes the transcript and prompts chatGPT, then returns the text response.
listenAudio: Takes the text response and uses google TTS to voice the response.
My issue is getting an undefined transrcribe.text after stopRecording ends, so I can't feed it into sendMessage. I've tried a few different approaches and got close, but not quite there yet.
So, now It's all a manual task. Start, Stop, Send Message, Listen to response.
Any clues to make better use of the API and get transrcribe on demand?
First off, thanks for your work. I find this very useful. The base application is working fine. I can use all my buttons and I can get the transcript ok.
But where I am facing issues is when I want to chain the actions. For example, I want to:
My functions:
My issue is getting an undefined transrcribe.text after stopRecording ends, so I can't feed it into sendMessage. I've tried a few different approaches and got close, but not quite there yet.
So, now It's all a manual task. Start, Stop, Send Message, Listen to response.
Any clues to make better use of the API and get transrcribe on demand?