Automatically translates the text of a video based on a subtitle file, and then uses AI voice services to create a new dubbed & translated audio track where the speech is synced using the subtitle's timings.
GNU General Public License v3.0
1.56k
stars
156
forks
source link
Error after setting batch_tts_synthesize = True #56
Failed to submit batch synthesis job: {
"code": "Forbidden",
"message": "Only \"Standard\" subscriptions for the region of the called service are valid."
}
Traceback (most recent call last):
File "E:\01project\12youtube\02program\Auto-Synced-Translated-Dubs\main.py", line 262, in
process_language(langData)
File "E:\01project\12youtube\02program\Auto-Synced-Translated-Dubs\main.py", line 253, in process_language
individualLanguageSubsDict = audio_builder.build_audio(individualLanguageSubsDict, langDict, totalAudioLength, twoPassVoiceSynth)
File "E:\01project\12youtube\02program\Auto-Synced-Translated-Dubs\audio_builder.py", line 100, in build_audio
rawClip = AudioSegment.from_file(value['TTS_FilePath'], format="mp3", frame_rate=nativeSampleRate)
KeyError: 'TTS_FilePath'
I use the latest code. The project can work well when batch_tts_synthesize is set False.
Please check it.
Thank you.
Failed to submit batch synthesis job: { "code": "Forbidden", "message": "Only \"Standard\" subscriptions for the region of the called service are valid." } Traceback (most recent call last): File "E:\01project\12youtube\02program\Auto-Synced-Translated-Dubs\main.py", line 262, in
process_language(langData)
File "E:\01project\12youtube\02program\Auto-Synced-Translated-Dubs\main.py", line 253, in process_language
individualLanguageSubsDict = audio_builder.build_audio(individualLanguageSubsDict, langDict, totalAudioLength, twoPassVoiceSynth)
File "E:\01project\12youtube\02program\Auto-Synced-Translated-Dubs\audio_builder.py", line 100, in build_audio
rawClip = AudioSegment.from_file(value['TTS_FilePath'], format="mp3", frame_rate=nativeSampleRate)
KeyError: 'TTS_FilePath'
I use the latest code. The project can work well when batch_tts_synthesize is set False. Please check it. Thank you.