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.97k stars 333 forks source link

Switch language voice command #82

Open guit4eva opened 1 year ago

guit4eva commented 1 year ago

Another suggestion - which would be incredible for language learners. Have the ability to select two languages, and then a voice command to switch between them. This will allow users to quickly switch to their native language to discuss a language problem, and then switch back to the language they are learning.

C-Nedelcu commented 1 year ago

Yeah, I was thinking about that. Sounds good, I'll mark this as work in progress.

I also had an idea about how we could have some sort of "interpreter mode", to use ChatGPT as a real time voice translator. What I want to achieve: you speak in language X, chatGPT translates to language Y and the response is spoken out loud in language Y. I suppose all it would take is to be able to append something to the prompt, such as "you must reply in [language Y]". So basically I need to add an "add to the beginning/end of prompt" option, which allows you to add whatever you want to the prompt.

I'm excited by my own idea and I can't wait to record a youtube video of me "speaking" japanese ! Damn, ChatGPT is so good. So many possibilities.

guit4eva commented 1 year ago

That sounds like a cool idea :) Man, I'm so impressed by your extension - it is by far the best thing I have ever used in a browser!! Well done on developing it, seriously good!

C-Nedelcu commented 1 year ago

An additional idea to complete the "interpreter mode"

When you speak to someone in a foreign language and want ChatGPT to translate something, my initial idea works. But what if you want a reply from the person who only speaks in a foreign language? Then you need to switch the input/output languages back and forth, at every sentence.

I think I need to work on a full-fledged "interpreter mode" where you pick two languages, and everything is fully automated. Something like this:

It would be as if you had an actual interpreter standing between you and your friend.

A couple of weeks from now, my mother in law will be visiting, and she only speaks mandarin, so this could be really helpful! I should develop this new feature before she visits.

guit4eva commented 1 year ago

That's a seriously good idea. This will have a double benefit - if you are learning a language, you could say a sentence in English, listen to the translation, and then repeat the translation and see if you were correct :) Amazing!!

Ha ha I'm sure your mother-in-law is going to be really impressed when she sees this !!! :)

MikesMoneyMachine commented 1 year ago

Eleven labs does this guys, it does may languages very well

MikesMoneyMachine commented 1 year ago

English Spanish French Hindi Italian German Polish Portuguese

^^to be exact.

bartman081523 commented 1 year ago

@C-Nedelcu could I ask whether this idea was successful, and whether it depends wholly on Eleven Labs TTS, or whether it applies also for f.e. Chrome TTS/STT? I also would like to suggest, if you add more Settings/Parameters, that it would be good if the Settings had Registers, like in Ublock Origin, f.e. But its just a suggestion, you make your own decisions for your own code, of course.

Also whishing you all good for your conversation in Mandarin in Interpreter-Mode. Hoping also to see this feature in a future version. Thank you for this handyful extension. Keep up the good work!