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

Greasy fork 爱吃馍镜像

Greasy Fork is available in English.

Change ChatGPT Image And Text To Speech Function

ChatGPT

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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

公众号二维码

扫码关注【爱吃馍】

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

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

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

公众号二维码

扫码关注【爱吃馍】

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

Autor
kaes-u-paya
Denně instalací
0
Celkem instalací
216
Hodnocení
0 0 1
Verze
0.2
Vytvořeno
17. 01. 2023
Aktualizováno
21. 01. 2023
Size
9,6 KB
Licence
MIT
Spustit na

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 ;)