edge-tts
edge-tts copied to clipboard
Make edge-playback more instantaneous for large text
This was done in the past however when subtitles were added this stopped being possible as easily.
Split text into chunks for subtitles to work properly for edge-playback and to provide instantaneous playback.
Why? Because I want to integrate it with https://github.com/wustho/epy but I don't want to wait for ages for the playback.
Yes absolutely. Couldn't you have it read everything live so that you don't need any temporary files at all?
I've done that before but had to stop doing that so the subtitle generation works.
Can you maybe make it optional?
FWIW edge-tts -t "text here" | mpv -
starts playing audio instantaneously independent of text size.
@CheerfulPianissimo that's how the edge-playback command used to work before adding subtitles support :)
Why? Because I want to integrate it with https://github.com/wustho/epy but I don't want to wait for ages for the playback.
any progress? i get "TimeoutError" and partial audio (1-9 min at random)
Why? Because I want to integrate it with https://github.com/wustho/epy but I don't want to wait for ages for the playback.
any progress? i get "TimeoutError" and partial audio (1-9 min at random)
If you're on Linux/Mac, you could do edge-tts --text "$@" 2>/dev/null | mpv -
(or Windows equivalent); it will do it immediately. Unfortunately, the partial audio is this issue: https://github.com/rany2/edge-tts/issues/190