Auto-Synced-Translated-Dubs icon indicating copy to clipboard operation
Auto-Synced-Translated-Dubs copied to clipboard

Failed to submit batch synthesis job

Open lvance18 opened this issue 1 year ago • 1 comments

[04/28/2023 11:05:10 PM Central Daylight Time] Failed to submit batch synthesis job: { "statusCode": 401, "value": { "code": "Unauthorized", "message": "Authentication is required to access the resource." } } Traceback (most recent call last): File "c:\Laurence\main.py", line 282, in process_language(langData, processedCount, totalLanguages) File "c:\Laurence\main.py", line 268, in process_language individualLanguageSubsDict = audio_builder.build_audio(individualLanguageSubsDict, langDict, totalAudioLength, config['two_pass_voice_synth']) File "c:\Laurence\Scripts\audio_builder.py", line 76, in build_audio rawClip = AudioSegment.from_file(value['TTS_FilePath'], format="mp3", frame_rate=int(config['synth_sample_rate'])) KeyError: 'TTS_FilePath'

lvance18 avatar Apr 28 '23 21:04 lvance18

Good morning, I'll assume that you're trying to use Azure. If you want to do a batch job in Azure, you need a standard subscription and not a free one. Also, make sure that the "azure_speech_key" and "azure_speech_region" are correct for your Azure project.

image

image

AdnielSsj avatar Jul 30 '23 22:07 AdnielSsj