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

Issue with Azure tts on certain chapters #72

Open
sZale2 opened this issue Jun 28, 2024 · 2 comments
Open

Issue with Azure tts on certain chapters #72

sZale2 opened this issue Jun 28, 2024 · 2 comments

Comments

@sZale2
Copy link

sZale2 commented Jun 28, 2024

Getting this error while using azure tts, but only for certain chapters, as in if I add --chapter_start(next chapter) it'll work fine from there.
It keeps occurring on the same chapter even after rebooting the whole thing many times.

2024-06-28 15:03:13 [INFO] Sending request to Azure TTS, data length: 3986
2024-06-28 15:03:17 [WARNING] Error while converting text to speech (attempt 9): Response ended prematurely

The command I'm using is
python main.py <file.epub> <output folder> --tts azure --language ja-JP --voice_name "ja-JP-NanamiNeural"

image

It doesn't seem to be an issue of size, it works on larger chapters, maybe an unusual string it can't process?

Using Windows 10 Pro x64.

Any Ideas what this might be?

@sZale2
Copy link
Author

sZale2 commented Jun 28, 2024

If I run it in debug this is where it stops, not sure how to use this information though, can't tell what it's dying on.
image

@p0n1
Copy link
Owner

p0n1 commented Jun 28, 2024

Hi @sZale2. Thanks for reporting. Never saw errors like this on my side. Looks like it was caused by some special characters. It would be best if I can get a sample file then I can fix this. Besides, you could update the code to the latest https://github.com/p0n1/epub_to_audiobook/releases/tag/v0.6.0 and try with --tts edge feature. I guess it could be working in that. Let me know if you have any results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants