python-soundfile icon indicating copy to clipboard operation
python-soundfile copied to clipboard

error on nvidia jeston orin nano

Open TigerHH6866 opened this issue 1 year ago • 1 comments

NVIDIA Jetson Orin NX Engineering Reference Developer Kit Package: nvidia-l4t-core Version: 36.4.0-20240912212859 cuda 12.6

py 3.10.9 soundfile=0.12.1

using edgetts

Exception in thread Thread-2 (process_tts): Traceback (most recent call last): File "/home/aiyo/avatarhuman/avatarhuman/venv/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/home/aiyo/avatarhuman/avatarhuman/venv/lib/python3.10/threading.py", line 953, in run self._target(self._args, **self._kwargs) File "/home/aiyo/avatarhuman/avatarhuman/ttsreal.py", line 71, in process_tts self.txt_to_audio(msg) File "/home/aiyo/avatarhuman/avatarhuman/ttsreal.py", line 91, in txt_to_audio stream = self.__create_bytes_stream(self.input_stream) File "/home/aiyo/avatarhuman/avatarhuman/ttsreal.py", line 105, in __create_bytes_stream stream, sample_rate = sf.read(byte_stream) # [Tsample_rate,] float64 File "/home/aiyo/avatarhuman/avatarhuman/venv/lib/python3.10/site-packages/soundfile.py", line 285, in read with SoundFile(file, 'r', samplerate, channels, File "/home/aiyo/avatarhuman/avatarhuman/venv/lib/python3.10/site-packages/soundfile.py", line 658, in init self._file = self._open(file, mode_int, closefd) File "/home/aiyo/avatarhuman/avatarhuman/venv/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 <_io.BytesIO object at 0xffff12dd4590>: Format not recognised.

TigerHH6866 avatar Jan 01 '25 08:01 TigerHH6866