C-Nedelcu / talk-to-chatgpt

Talk to ChatGPT AI using your voice and listen to its answers through a voice
GNU Affero General Public License v3.0
1.96k stars 334 forks source link

AI voice and language preference #144

Open manfromcott opened 1 year ago

manfromcott commented 1 year ago

The setting for AI voice and language works fine, but reverts to the default in a new session. All the other preferences work fine

C-Nedelcu commented 1 year ago

hello, could you offer more details about this ? the settings are saved in a cookie - image

if you could maybe paste the contents of the cookie I could perhaps help ?

I haven't had issues personally. How about maybe clearing your cookies altogether? Does it help if you change some specific values ? try using a language you wouldn't normally use, or a voice you wouldn't normally use, something like that, and see if it sticks?

manfromcott commented 1 year ago

Thank you for your very quick response to my query. Your suggestions were most helpful. I'm pleased to say that I have got to the root of the problem, after a bit of rummaging.

The problem was that that I had installed two browser extensions: first, 'voice control for ChatGPT', and second 'Talk-to-ChatGPT', not realizing that the functionality of the first was already included in the second. I removed 'voice control for ChatGPT', and everything now works exactly as it should. Several other strange anomalies have also disappeared.

Once again, many thanks for your help.

John G Griffiths


From: C-Nedelcu @.***> Sent: 25 June 2023 04:42 To: C-Nedelcu/talk-to-chatgpt Cc: manfromcott; Author Subject: Re: [C-Nedelcu/talk-to-chatgpt] AI voice and language preference (Issue #144)

hello, could you offer more details about this ? the settings are saved in a cookie - [image]https://user-images.githubusercontent.com/4685072/248526962-71146647-5733-4354-b55e-6b780746d3e7.png

if you could maybe paste the contents of the cookie I could perhaps help ?

I haven't had issues personally. How about maybe clearing your cookies altogether? Does it help if you change some specific values ? try using a language you wouldn't normally use, or a voice you wouldn't normally use, something like that, and see if it sticks?

— Reply to this email directly, view it on GitHubhttps://github.com/C-Nedelcu/talk-to-chatgpt/issues/144#issuecomment-1605850923, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BA2GUNB2B3HB2ADXXW656DDXM6XQTANCNFSM6AAAAAAZSWU3TY. You are receiving this because you authored the thread.Message ID: @.***>

spiki12345 commented 1 year ago

@C-Nedelcu I solved it by directly checking the variable "CN_WANTED_VOICE_NAME" outside the "onvoiceschanged" event, removing the following lines: 944 - window.speechSynthesis.onvoiceschanged = function () { and 964 - } So, the cookie is read, but it was never reaching the verification of the variable "CN_WANTED_VOICE_NAME."