Hiện tại mình chạy demo khi tới bước TTS thì bị lỗi 400 như hình .
`
Your client has issued a malformed or illegal request. That’s all we know.
[SUCCESS] Translation complete
[INFO] Generating text-to-speech (en-AU-NatashaNeural)
System Error: Connection timeout to host wss://speech.platform.bing.com/consumer/speech/synthesize/readaloud/edge/v1?TrustedClientToken=6A5AA1D4EAFF4E9FB37E23D68491D6F4&ConnectionId=38e424cfc2834706bb008a2abecd9c21&Sec-MS-GEC=EC423AD0BA7687E1E2F673A83814AC401FC3F3DCAC8BD5F0701A2B0C06A13F1D&Sec-MS-GEC-Version=1-143.0.3650.75
os@MacBook-Pro-cua-mac youtube-auto-dub % open .
os@MacBook-Pro-cua-mac youtube-auto-dub % python main.py "https://youtube.com/watch?v=ofPPsEXbEKM"
YouTube Auto Dub
──────────────
Configuration
──────────────
Video URL https://youtube.com/watch?v=ofPPsEXbEKM
Mode BOTH
Subtitles Language EN
Dubbing Language EN
Gender Female
Whisper Model BASE (CPU)
[INFO] Downloading media
- Downloaded source (ofPPsEXbEKM)
[INFO] Transcribing speech (base)
[SUCCESS] Transcription complete
[INFO] Analyzing silence gaps
- Grouped into 181 segments
[INFO] Connecting to translation engine
- Translating 181 subtitle segments -> EN
[ERROR] All translation methods failed: Scrape HTTP Error:
<title>Error 400 (Bad Request)!!1</title>
<style>
*{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}
@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}
@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 0}}
@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}
</style>
400. That’s an error.
Your client has issued a malformed or illegal request. That’s all we know.
[SUCCESS] Translation complete
`

Hiện tại mình chạy demo khi tới bước TTS thì bị lỗi 400 như hình .
`
Your client has issued a malformed or illegal request. That’s all we know.
[SUCCESS] Translation complete
[INFO] Generating text-to-speech (en-AU-NatashaNeural)
System Error: Connection timeout to host wss://speech.platform.bing.com/consumer/speech/synthesize/readaloud/edge/v1?TrustedClientToken=6A5AA1D4EAFF4E9FB37E23D68491D6F4&ConnectionId=38e424cfc2834706bb008a2abecd9c21&Sec-MS-GEC=EC423AD0BA7687E1E2F673A83814AC401FC3F3DCAC8BD5F0701A2B0C06A13F1D&Sec-MS-GEC-Version=1-143.0.3650.75
os@MacBook-Pro-cua-mac youtube-auto-dub % open .
os@MacBook-Pro-cua-mac youtube-auto-dub % python main.py "https://youtube.com/watch?v=ofPPsEXbEKM"
YouTube Auto Dub
──────────────
Configuration
──────────────
Video URL https://youtube.com/watch?v=ofPPsEXbEKM
Mode BOTH
Subtitles Language EN
Dubbing Language EN
Gender Female
Whisper Model BASE (CPU)
[INFO] Downloading media
- Downloaded source (ofPPsEXbEKM)
- Grouped into 181 segments
- Translating 181 subtitle segments -> EN
<title>Error 400 (Bad Request)!!1</title> <style> *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px} </style>[INFO] Transcribing speech (base)
[SUCCESS] Transcription complete
[INFO] Analyzing silence gaps
[INFO] Connecting to translation engine
[ERROR] All translation methods failed: Scrape HTTP Error:
400. That’s an error.
Your client has issued a malformed or illegal request. That’s all we know.
[SUCCESS] Translation complete

`