rany2 / edge-srt-to-speech

Convert SubRip to speech using Microsoft Edge's TTS service
https://pypi.org/project/edge-srt-to-speech/
GNU General Public License v3.0
43 stars 10 forks source link

ailed to read frame size: Could not seek to 1026 #24

Open gersooonn opened 1 month ago

gersooonn commented 1 month ago

It stopped working for me, now I'm displaying this error in all the .srt files I use [mp3 @ 0x57ff4b431c80] Failed to read frame size: Could not seek to 1026. /tmp/tmplxc7l66i/15.mp3: Invalid argument Traceback (most recent call last): File "/content/drive/MyDrive/edge-srt-to-speech/src/edge_srt_to_speech/main.py", line 346, in main() File "/content/drive/MyDrive/edge-srt-to-speech/src/edge_srt_to_speech/main.py", line 332, in main asyncio.get_event_loop().run_until_complete( File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete return future.result() File "/content/drive/MyDrive/edge-srt-to-speech/src/edge_srt_to_speech/main.py", line 251, in _main last_end += get_duration(j) File "/content/drive/MyDrive/edge-srt-to-speech/src/edge_srt_to_speech/main.py", line 39, in get_duration duration = subprocess.check_output( File "/usr/lib/python3.10/subprocess.py", line 421, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, File "/usr/lib/python3.10/subprocess.py", line 526, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['ffprobe', '-v', 'error', '-show_entries', 'format=duration', '-of', 'default=noprint_wrappers=1:nokey=1', '/tmp/tmplxc7l66i/15.mp3']' returned non-zero exit status 1.

image

rany2 commented 1 month ago

Even if you install the version from master?

gersooonn commented 1 month ago

I'll try it here and see if it works. One question, sometimes in the generated audio section the voice speeds up very quickly making it impossible to understand, how can I improve this? Could it be due to the .srt subtitle format, having many lines in a short period of time?

gersooonn commented 1 month ago

I can't, I sent you the link to the colab I'm using https://colab.research.google.com/drive/13qbG1X-IyJtb6rAOGXAII7O1jo2rLkiI?usp=sharing

image

rany2 commented 1 month ago

This only happened after the upgrade to edge-tts 6.1.12?

gersooonn commented 1 month ago

It seems so, after edge-tts 6.1.12 was uploaded, I couldn't get it to run. Did you take a look at this Colab I sent you?

rany2 commented 1 month ago

Can you share your legenda.srt? I can't reproduce.

gersooonn commented 1 month ago

legenda.srt.txt I sent it to you, you have to remove the .txt section because here on Github it doesn't accept .srt

rany2 commented 1 month ago

I can't reproduce it still... maybe Colab is the one having its IP blocked?

gersooonn commented 1 month ago

image I don't know, when I open the link it works. Do you have discord so we can talk, see if we find this error? image

rany2 commented 1 month ago

My discord is simply @rany2