cogentapps / chat-with-gpt

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

can't input with my voice #150

Open cocomany opened 1 year ago

cocomany commented 1 year ago

I am trying to speak by clicking the microphone icon, but get error message:

Sorry, an error occured trying to record audio.

WeCom Screenshot_20230523141518

lee-b commented 1 year ago

It's because you're running it without TLS (HTTPS) and modern browsers won't allow microphone input on insecure connections. Chrome has a setting (chrome://flags/#unsafely-treat-insecure-origin-as-secure) that lets you enter the URL of a local/lan website to trust regardless of this. Don't know about a similar setting for firefox, sadly.