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

ple add function google tts thans #74

Closed wavelet2008 closed 1 year ago

wavelet2008 commented 1 year ago

function CN_SayOutLoudvv(text) { const baseUrl = "https://translate.google.com/translate_tts?ie=UTF-8&client=tw-ob"; const language = "en-US"; gender = "male", speed = 1.1 const encodedText = encodeURIComponent(text); const url = ${baseUrl}&tl=${language}&q=${encodedText}&gender=${gender}&ttsspeed=${speed};

const audio = new Audio(url); audio.play(); }

C-Nedelcu commented 1 year ago

Why would you want this? Aren't the current Chrome/Edge text-to-speech voices not good enough?

PS: you can reply in your own language if you want. I will translate with ChatGPT.

wavelet2008 commented 1 year ago

Why would you want this? Aren't the current Chrome/Edge text-to-speech voices not good enough?

PS: you can reply in your own language if you want. I will translate with ChatGPT.

yes Google's text-to-speech (TTS) technology offers a wide range of voice choices and produces high-quality voices with natural sounding speech, which could be some reasons why someone may prefer it over other TTS solutions.

C-Nedelcu commented 1 year ago

Google's text to speech is already integrated in the Chrome extension. I'm afraid I simply do not understand your request... but you might be interested to hear that I am looking into integration with ElevenLabs which will give apparently the best possible TTS there is. Almost everyone is asking for this.

C-Nedelcu commented 1 year ago

Hello there,

I have added ElevenLabs API support in v2.6.0.

This version has not been submitted to the Chrome/edge stores yet, I think it would need some beta testing first. Would anyone please give it a try?

You have to install the new version manually, instructions are given on the project's home page.

C-Nedelcu commented 1 year ago

closed due to inactivity. Feel free to reopen later if necessary