Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make edge-playback more instantaneous for large text #103

Open
rany2 opened this issue Jun 18, 2023 · 8 comments
Open

Make edge-playback more instantaneous for large text #103

rany2 opened this issue Jun 18, 2023 · 8 comments
Labels
help wanted Extra attention is needed

Comments

@rany2
Copy link
Owner

rany2 commented Jun 18, 2023

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.

@rany2 rany2 added help wanted Extra attention is needed good first issue Good for newcomers labels Jun 18, 2023
@rany2
Copy link
Owner Author

rany2 commented Jun 18, 2023

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.

@rany2 rany2 removed the good first issue Good for newcomers label Jul 9, 2023
@KonerDev
Copy link

KonerDev commented Aug 3, 2023

Yes absolutely. Couldn't you have it read everything live so that you don't need any temporary files at all?

@rany2
Copy link
Owner Author

rany2 commented Aug 3, 2023

I've done that before but had to stop doing that so the subtitle generation works.

@KonerDev
Copy link

KonerDev commented Aug 4, 2023

Can you maybe make it optional?

@CheerfulPianissimo
Copy link

FWIW edge-tts -t "text here" | mpv - starts playing audio instantaneously independent of text size.

@rany2
Copy link
Owner Author

rany2 commented Nov 9, 2023

@CheerfulPianissimo that's how the edge-playback command used to work before adding subtitles support :)

@nazdridoy
Copy link

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)

@rany2
Copy link
Owner Author

rany2 commented May 9, 2024

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: #190

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants