-
Notifications
You must be signed in to change notification settings - Fork 158
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
Empty audio clips #43
Comments
Can you provide your original srt file? |
Sure, here they are |
I solved the "files outside the workfolder" issue, by changing line 332 in TTS.py like this I should also add: that the "empty files" issue seems to be hit or miss: your script works perfectly 20% of the time |
Change some path directories to use the os.path.join() function instead of just writing the path using \\. This should make it more compatible with non-windows OS's. Addresses part of #43
Ok I updated some lines so that it doesn't hardcode the paths, but rather uses the os.path.join() function, so that should fix at least the one issue you just mentioned. Try using the latest versions of TTS.py, audio_builder.py, and main.py I'm not sure if this will fix the issue with the blank audio clips, so let me know. |
The audio clips appear inside "workingFolder", but it still has a high failure rate: I need to run the script a few times before it creates usable MP3 files for ffmpeg to work with. The empty files are always different, sometimes is the majority and some other times are just two or three. Here a few screenshots. |
Are you able to use batch synthesis or did you just disable it as something to try? Also try using debug mode. Download the latest version of the code here: https://github.com/ThioJoe/Auto-Synced-Translated-Dubs/archive/refs/heads/main.zip Then in If you aren't using batch mode, debug mode should still work, but the files will be named different. So x_p1.mp3 will be the file downloaded, x_t.mp3 is the first downloaded file trimmed, x_p2.mp3 will be the second pass downloaded, and x_p2_t.mp3 will be the second pass trimmed. This should let you see if they truly are coming from Azure empty, or if something else is going on. |
I was able to use batch mode, but only upgrading from the free F0 tier to the paid S0 tier of Azure. I also tried Google voice synthesis, but it displays a different error and I couldn't go forward. |
The biggest issue, Azure creates empty audio clips, but not all of them. I updated the code according to #17, disabled
batch_tts_synthesize
and setadd_line_buffer_milliseconds
to 0.On the side, all the clips are downloaded outside the workingFolder and then never deleted.
Here is a screenshot of the terminal:
![Schermata 2023-01-12 alle 13 54 27](https://user-images.githubusercontent.com/99875702/212071662-94d18812-bc5b-42d3-a368-c512facf4333.png)
And the app folder looks like this afterwards
![Schermata 2023-01-12 alle 13 55 06](https://user-images.githubusercontent.com/99875702/212071800-d6fe302f-522c-4a2d-a465-64c8ea3c4c89.png)
The text was updated successfully, but these errors were encountered: