Automatically downloads ChatGPT's TTS audio whenever playback is triggered.
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.
chat.openai.com and chatgpt.com.webm, .mp3, or .aac filesChatGPT 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.
Feel free to fork or submit issues and improvements on GitHub.
MIT