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
Issues connecting to microphone using systemd #1594
Comments
Hi @michaelshorter The error does look to indicate a failure to get microphone access. Since you mentioned this fails when trying to run at startup, I'm wondering if your hardware is active and/or if any sort of microphone access needs to be granted. |
Hi @michaelshorter, was your issue resolved, or were you able to capture logs as @brandom-msft suggested? |
Hi @brandom-msft @glecaros https://askubuntu.com/questions/150851/how-do-i-select-a-default-sound-card-with-alsa |
great! glad to you were able to solve it, I'll go ahead and close the issue then |
Hello,
I have created a script using speech to text that when run in terminal works perfectly, but when run during startup using systemd gives me an error that I think means it's not finding the microphone.
Here is the error it throws up:
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
(String[] args)JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: Connection refused
Unhandled exception. System.ApplicationException: Exception with an error code: 0xe (SPXERR_MIC_NOT_AVAILABLE)
at Microsoft.CognitiveServices.Speech.Internal.SpxExceptionThrower.ThrowIfFail(IntPtr hr)
at Microsoft.CognitiveServices.Speech.Recognizer.FromConfig(GetRecognizerFromConfigDelegate fromConfig, SpeechConfig speechConfig, AudioConfig audioConfig)
at Microsoft.CognitiveServices.Speech.SpeechRecognizer..ctor(SpeechConfig speechConfig, AudioConfig audioConfig)
at Program.Main(String[] args) in /home/wordcloud/WordCloud/AzureSpeechCC/Program.cs:line 35
at Program.
You can find my code here if that's useful - https://github.com/michaelshorter/WordCloud
I've also tried auto starting my script using cron and rc.local but still no joy. I presume the same issue is happening here but I'm not able to debug it so easily.
Has anyone had this issue before? If so I'd massively appreciate some pointers on how to fix it!
Cheers,
M
The text was updated successfully, but these errors were encountered: