Audio file error

#10
by Prudhvi6e - opened

Running Mistral
Running LLM Zephyr
Traceback (most recent call last):
File "/opt/dlami/nvme/voice-chat-with-mistral/app.py", line 732, in
latent_map["AI Assistant"] = get_latents("examples/female.wav")
File "/opt/dlami/nvme/voice-chat-with-mistral/app.py", line 354, in get_latents
) = model.get_conditioning_latents(audio_path=speaker_wav)
File "/root/miniconda3/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "/root/miniconda3/lib/python3.10/site-packages/TTS/tts/models/xtts.py", line 351, in get_conditioning_latents
audio = load_audio(file_path, load_sr)
File "/root/miniconda3/lib/python3.10/site-packages/TTS/tts/models/xtts.py", line 72, in load_audio
audio, lsr = torchaudio.load(audiopath)
File "/root/miniconda3/lib/python3.10/site-packages/torchaudio/_backend/utils.py", line 204, in load
return backend.load(uri, frame_offset, num_frames, normalize, channels_first, format, buffer_size)
File "/root/miniconda3/lib/python3.10/site-packages/torchaudio/_backend/soundfile.py", line 27, in load
return soundfile_backend.load(uri, frame_offset, num_frames, normalize, channels_first, format)
File "/root/miniconda3/lib/python3.10/site-packages/torchaudio/backend/soundfile_backend.py", line 221, in load
with soundfile.SoundFile(filepath, "r") as file
:
File "/root/miniconda3/lib/python3.10/site-packages/soundfile.py", line 658, in init
self._file = self._open(file, mode_int, closefd)
File "/root/miniconda3/lib/python3.10/site-packages/soundfile.py", line 1216, in _open
raise LibsndfileError(err, prefix="Error opening {0!r}: ".format(self.name))
soundfile.LibsndfileError: Error opening 'examples/female.wav': Format not recognised.

Sign up or log in to comment