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 while using transcribe-stream #18

Closed
arnamoy10 opened this issue Jun 25, 2020 · 5 comments
Closed

Error while using transcribe-stream #18

arnamoy10 opened this issue Jun 25, 2020 · 5 comments

Comments

@arnamoy10
Copy link

Hello All, after training the profile following the getting started guide, I am trying to run transcribe-stream, but I am getting the following error:

ALSA lib pcm_hw.c:1822:(_snd_pcm_hw_open) Invalid value for card arecord: main:828: audio open error: No such file or directory

What can be the issue? I have the correct hardware card stored in a .asoundrc file. Is there any other option I can give to voice2json to use the proper audio device?

Thanks

@johanneskropf
Copy link
Contributor

Do you use the docker install or the deb package?

@synesthesiam
Copy link
Owner

Make sure to pass --device /dev/snd:/dev/snd if using the Docker image.

@xinkez
Copy link

xinkez commented Sep 26, 2020

@synesthesiam Hi, when I tried to run transcribe-stream, I got the following error. What can be this issue? Thank you in advance.

Ready
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/usr/lib/python3.7/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/home/xxx/voice2json/voice2json/transcribe.py", line 184, in transcribe_proc
audio_stream(), sample_rate, sample_width, channels
File "/home/xxx/voice2json/.venv/lib/python3.7/site-packages/rhasspyasr_pocketsphinx/transcribe.py", line 93, in transcribe_stream
self.decoder = self.get_decoder()
File "/home/xxx/voice2json/.venv/lib/python3.7/site-packages/rhasspyasr_pocketsphinx/transcribe.py", line 147, in get_decoder
decoder = pocketsphinx.Decoder(decoder_config)
File "/home/xxx/voice2json/.venv/lib/python3.7/site-packages/pocketsphinx/pocketsphinx.py", line 273, in init
this = _pocketsphinx.new_Decoder(*args)
RuntimeError: new_Decoder returned -1

@synesthesiam
Copy link
Owner

I'd expect that kind of error if you haven't downloaded the appropriate profile files, or if they're corrupted.

@synesthesiam
Copy link
Owner

Closing issue due to inactivity. Please re-open if the problem persists.

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

4 participants