OpenVoice icon indicating copy to clipboard operation
OpenVoice copied to clipboard

[284] KeyError when trying with custom voices

Open ravigithubshankar opened this issue 1 year ago • 0 comments

if voice.value == 'choose_manually': upload_orig_voice = widgets.FileUpload(accept=audio_types, multiple=True, description='audo whose tone will be replaced') display(upload_orig_voice) if voice.value == 'choose_manually': orig_voice_path = f'{output_dir}/{upload_orig_voice.value[0].name}' save_audio(upload_orig_voice, orig_voice_path) source_se, _ = se_extractor.get_se(orig_voice_path, tone_color_converter, target_dir=OUTPUT_DIR, vad=True) else: text = """ OpenVINO toolkit is a comprehensive toolkit for quickly developing applications and solutions that solve a variety of tasks including emulation of human vision, automatic speech recognition, natural language processing for quickly developing applications and solutions that solve , recommendation systems, and many others. """ source_se = en_source_default_se orig_voice_path = f'{output_dir}/tmp.wav' basespeakertts.tts(text, orig_voice_path, speaker='default', language='English')

error ------------>>>>>>>>>>>>>>>>>> 1 if voice.value == 'choose_manually': ----> 2 orig_voice_path = f'{output_dir}/{upload_orig_voice.value[0].name}' 3 save_audio(upload_orig_voice, orig_voice_path) 4 source_se, _ = se_extractor.get_se(orig_voice_path, tone_color_converter, target_dir=OUTPUT_DIR, vad=True)

KeyError: 0

ravigithubshankar avatar Mar 21 '24 09:03 ravigithubshankar