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

Greasy fork 爱吃馍镜像

ChatGPT TTS Grabber

Automatically downloads ChatGPT's TTS audio with filename based on chat title.

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

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

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

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

公众号二维码

扫码关注【爱吃馍】

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

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

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

公众号二维码

扫码关注【爱吃馍】

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

Autore
dudebot
Installazioni giornaliere
2
Installazioni totali
23
Valutazione
0 0 0
Versione
1.2.0
Creato il
22/05/2025
Aggiornato il
01/12/2025
Dimensione
2,98 KB
Licenza
MIT
Applica a

ChatGPT TTS Grabber

A Tampermonkey/Greasemonkey userscript that automatically captures and downloads the text-to-speech (TTS) audio generated by ChatGPT whenever you click the voice playback button.

✨ Features

  • 🔊 Automatically detects and downloads audio streamed via ChatGPT’s voice feature (including Glimmer and other voices)
  • 📥 Captures streamed audio via Media Source Extensions (MSE), even if traditional fetch hooks fail
  • 🐒 Works with Tampermonkey or any UserScript-compatible extension
  • 💡 Compatible with both chat.openai.com and chatgpt.com

📦 Installation

  1. Install Tampermonkey (or similar userscript manager)
  2. Install the script via GreasyFork (link coming soon) or from this GitHub repo
  3. Visit ChatGPT and use the voice playback feature as usual
  4. Watch your browser download the audio automatically as .webm, .mp3, or .aac files

⚙️ How It Works

ChatGPT uses Media Source Extensions (MSE) to stream TTS audio to its player. This script monkey-patches the browser’s MediaSource API to capture and reconstruct all audio chunks, packaging them into a downloadable Blob.

This approach works even if the audio is streamed directly and not returned as a traditional file from the server.

🧪 Known Limitations

  • May not work if ChatGPT changes its audio streaming pipeline to an AudioWorklet or encrypted transport
  • Audio is auto-downloaded for every playback (no opt-out UI yet)

🛠 Contributing

Feel free to fork or submit issues and improvements on GitHub.

📄 License

MIT