neonbjb / tortoise-tts

A multi-voice TTS system trained with an emphasis on quality
Apache License 2.0
13.24k stars 1.83k forks source link

'NotImplementedType' object is not callable #404

Open prolemasses opened 1 year ago

prolemasses commented 1 year ago

I am new to this, and trying to run the program based on the instructions given in this video: https://www.youtube.com/watch?v=uQ9PYhAsd6w. I made sure the files were of the proper format, and downloaded everything, but when I try to actually generate the voices I get the following error:

TypeError Traceback (most recent call last) in <cell line: 2>() 1 # Generate speech with the custom voice. ----> 2 voice_samples, conditioning_latents = load_voice(CUSTOM_VOICE_NAME) 3 gen = tts.tts_with_preset(text, voice_samples=voice_samples, conditioning_latents=conditioning_latents, 4 preset=preset) 5 torchaudio.save(f'generated-{CUSTOM_VOICE_NAME}.wav', gen.squeeze(0).cpu(), 24000)

2 frames /content/tortoise-tts/tortoise/utils/audio.py in load_wav_to_torch(full_path) 20 norm_fix = 1. 21 else: ---> 22 raise NotImplemented(f"Provided data dtype not supported: {data.dtype}") 23 return (torch.FloatTensor(data.astype(np.float32)) / norm_fix, sampling_rate) 24

image

Can someone help me figure out what my issue is?

agronholm commented 1 year ago

This is a programming error. The author mixed up NotImplemented with NotImplementedError. The latter was supposed to be used here.