rany2 / edge-tts

Use Microsoft Edge's online text-to-speech service from Python WITHOUT needing Microsoft Edge or Windows or an API key
https://pypi.org/project/edge-tts/
GNU General Public License v3.0
6.23k stars 616 forks source link

example_err #172

Closed rffanlab closed 10 months ago

rffanlab commented 10 months ago

https://github.com/rany2/edge-tts/blob/master/examples/streaming_with_subtitles.py

line 32

file.write(submaker.generate_subs(TEXT)) should be

file.write(submaker.generate_subs(len(TEXT)))

rany2 commented 10 months ago

It's actually not an error, this is for the newer development version of edge_tts. See https://github.com/rany2/edge-tts/blob/5b7add93b9f64c27b5ed7138c30a1a4f25ba6a9d/examples/streaming_with_subtitles.py for how it should be currently done.