Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error on nvidia jeston orin nano #453

Open
TigerHH6866 opened this issue Jan 1, 2025 · 1 comment
Open

error on nvidia jeston orin nano #453

TigerHH6866 opened this issue Jan 1, 2025 · 1 comment

Comments

@TigerHH6866
Copy link

TigerHH6866 commented Jan 1, 2025

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) # [T
sample_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.

@bastibe
Copy link
Owner

bastibe commented Jan 2, 2025

It says "format not recognized", and you are using a BytesIO object. Since there is no file name to discern the format from, you need to pass the format manually to the constructor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants