🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

Change ChatGPT Image And Text To Speech Function

ChatGPT

Você precisará instalar uma extensão como Tampermonkey, Greasemonkey ou Violentmonkey para instalar este script.

You will need to install an extension such as Tampermonkey to install this script.

Você precisará instalar uma extensão como Tampermonkey ou Violentmonkey para instalar este script.

Você precisará instalar uma extensão como Tampermonkey ou Userscripts para instalar este script.

Você precisará instalar uma extensão como o Tampermonkey para instalar este script.

Você precisará instalar um gerenciador de scripts de usuário para instalar este script.

(Eu já tenho um gerenciador de scripts de usuário, me deixe instalá-lo!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

Você precisará instalar uma extensão como o Stylus para instalar este estilo.

Você precisará instalar uma extensão como o Stylus para instalar este estilo.

Você precisará instalar uma extensão como o Stylus para instalar este estilo.

Você precisará instalar um gerenciador de estilos de usuário para instalar este estilo.

Você precisará instalar um gerenciador de estilos de usuário para instalar este estilo.

Você precisará instalar um gerenciador de estilos de usuário para instalar este estilo.

(Eu já possuo um gerenciador de estilos de usuário, me deixar fazer a instalação!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

Autor
kaes-u-paya
Instalações hoje
0
Total de instalações
216
Avaliações
0 0 1
Versão
0.2
Criado
17/01/2023
Atualizado
21/01/2023
Tamanho
9,58 KB
Licença
MIT
Aplicável a

This script will read the answer of ChatGPT (text-to-speech). I used it on Firefox with the dark theme of ChatGPT. I also include the Icon change script from another user.

How the script for the text-to-speech works:

Since the answer of ChatGPT is not provided at once but more like an on the fly, typewriter kind answer, we don't want to wait until ChatGPT finished the answer before read it. We would like to start reading the answer while ChatGPT is still answering. This script reads the answer within a loop (timeout) again and again and checks if the answer each cycle has been changed. It starts/continues reading out the answer where it has stopped the cycle before. The problem is where to cut the text for the start of the next cycle. I tried to focus on signs like: ".,!:?" and if there is no sign at all or too far away it should be cut between two words. Answers are often very different. Sometimes there is no punctuation at all or after each line, like within a poem. The script replaces all tags like

etc. with '' in order not to read out tags.

Enjoy the script and feel free to improve it. I'm sure it can be done better than my approach ;)