cogentapps / chat-with-gpt

An open-source ChatGPT app with a voice
https://www.chatwithgpt.ai
MIT License
2.32k stars 500 forks source link

Audio Input not working. Error: "Sorry, an error occured trying to record audio." #99

Closed jlar0che closed 2 weeks ago

jlar0che commented 1 year ago

Issue Unable to use audio input. Receiving the following error message: "Sorry, an error occured trying to record audio."

Here is a screenshot: image

What I tried / Looked at / What I Made sure:

  1. Made sure my audio input device was properly detected in my OS.
  2. Tested Audio Input Device
  3. Made sure my ChatGPT and ElevenLabs APIs were properly input and were correct
  4. Tried restarting the Docker container

Environment Details:

kamil-malinski commented 1 year ago

you need to use https for the voice recognition to work

jlar0che commented 1 year ago

Thanks. I setup a reverse proxy for internal use and the error goes away. Still have a question though. I hope I'm not overlooking something obvious, but the mic turns red when I click it (activated?) and I am prompted to give access to my microphone device. I click in the affermative and there is no prompt so I assume I just start talking and the conversion should happen. It does not. I click on the mic icon again to stop the recording and again, no text is entered into the textbox.

kamil-malinski commented 1 year ago

it should work like that (it does for me with an iPhone)... what device/browser are you using?

jlar0che commented 1 year ago

Windows 10 64bit (Version 10.0.19045 Build 19045) Firefox 111.0.1 (64bit)

NOTE: I just tested it in Google Chrome Version 111.0.5563.147 (32-bit) and it worked...

cogentapps commented 1 year ago

Thanks. I setup a reverse proxy for internal use and the error goes away. Still have a question though. I hope I'm not overlooking something obvious, but the mic turns red when I click it (activated?) and I am prompted to give access to my microphone device. I click in the affermative and there is no prompt so I assume I just start talking and the conversion should happen. It does not. I click on the mic icon again to stop the recording and again, no text is entered into the textbox.

Thanks for reporting, sounds like a browser compatibility issue!