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 Running On Raspberry Pi Runnig Ubuntu MATE #594

Closed
efraimnewman opened this issue Apr 22, 2020 · 4 comments
Closed

Error Running On Raspberry Pi Runnig Ubuntu MATE #594

efraimnewman opened this issue Apr 22, 2020 · 4 comments

Comments

@efraimnewman
Copy link

efraimnewman commented Apr 22, 2020

Describe the bug
I am trying to use intent recognition on raspberry pi running ubuntu mate (32 bit), using c# and .net core.
when I run the app I get this error:

Unhandled exception. System.ApplicationException: Exception with an error code: 0x8 (SPXERR_FILE_OPEN_FAILED)
   at Microsoft.CognitiveServices.Speech.Internal.SpxExceptionThrower.ThrowIfFail(IntPtr hr)
   at Microsoft.CognitiveServices.Speech.KeywordRecognitionModel.FromFile(String fileName)
   at SmartHomeVoice.Services.ListeningService.StartAsync(CancellationToken cancellationToken) in E:\Efraim's stuff\SmartHomeVoice\SmartHomeVoice\Services\ListeningService.cs:line 142
   at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost host)
   at SmartHomeVoice.Program.Main() in E:\Efraim's stuff\SmartHomeVoice\SmartHomeVoice\Program.cs:line 19
Aborted

other apps that use the microphone are working fine

To Reproduce
I used a fresh installation of ubuntu MATE for RPi. I am using a webCam as a microphone.

Version of the Cognitive Services Speech SDK
I am using version 1.11 which is supposed to support linux-arm.

Platform, Operating System, and Programming Language

  • OS:Ubuntu MATE for Raspberri Pi 32 bit
  • Hardware - ARM (Raspberry Pi 3B)
  • Programming language: C#, .NET Core 3.0

the output of lsb_release -a is:

Distributor ID: Ubuntu
Description:    Ubuntu 18.04.2 LTS
Release:        18.04
Codename:       bionic
@efraimnewman
Copy link
Author

I already opened this issue over here, but I was asked to reopen on this repo

@jhakulin
Copy link

@efraimnewman Seems that the keyword model file you give to Microsoft.CognitiveServices.Speech.KeywordRecognitionModel.FromFile(String fileName) is failing as file is not found. Do you provide absolute path to file ?

@efraimnewman
Copy link
Author

efraimnewman commented Apr 24, 2020

Thank you that worked. I also needed to use the fix mentioned here but now I have different error:

mmap() failed: Cannot allocate memory
Failed to create permanent mapping for memfd region with ID = 3597799991
Failed to regester memfd mempool. Reason: could not attach memfd SHM ID to pipe
mmap() failed: Cannot allocate memory
Failed to create permanent mapping for memfd region with ID = 710812132
mmap() failed: Cannot allocate memory
Failed to create permanent mapping for memfd region with ID = 269852665
Ignoring received block reference with non-registered memfd ID = 269852665
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Protocol error

can this be caused by the Text To Speech that I am using or is it something else?
although the app is still working fine after this error.

@efraimnewman
Copy link
Author

I see that I am only getting this error sometimes but the app works normally. I can say this issue is solved. Thank you so much

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