Open lvance18 opened 1 year ago
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.
[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'