Change ChatGPT Image And Text To Speech Function

ChatGPT

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
kaes-u-paya
日安装量
0
总安装量
216
评分
0 0 1
版本
0.2
创建于
2023-01-17
更新于
2023-01-21
大小
9.6 KB
许可证
MIT
适用于

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

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址