JBramauer / pepperspeechrecognition

Google Speech Recognition Module for Naoqi and the Pepper Robot by Aldebaran
MIT License
34 stars 16 forks source link

RuntimeError: ALAudioDevice::setClientPreferences ALProxy::ALProxy can't find service: SpeechRecognition #2

Open soumenms2015 opened 6 years ago

soumenms2015 commented 6 years ago

Hello,

I am running the below command and I am getting the below error .

python module_speechrecognition.py --pip (robot IP)

INF:SpeecRecognitionModule: starting! Traceback (most recent call last) File "module_speechrecognition.py", line 485, in main SpeechRecognition.start() File "module_speechrecognition.py", line 127, in start audio.setClientPreferences(self.getName(), SAMPLE_RATE, nNbrChannelFlag, nDeinterleave) ' setting same as default generate a bus !?! File "C:Python27\Lib\site-packages\lib\naoqi.py", line 264, in method_missing

raise e

RuntimeError: ALAudioDevice::setClientPreferences ALProxy::AlProxy can't find service: SpeechRecognition INF: SpeechRecognitionModule.del: cleaning everything INF: SpeechRecognitionModule.pause: stopping Exception AttributeError: "NoneType' object has no attribute 'ALProxy'" in <bound method SpeechRecognitionModule.del of <main.SpeechRecognitionModule; proxy of <Swig Object of type 'AL::module *' at 0x06870278> >> ignored

any idea behind this error?

Thank you !!!!

N.B: I have also installed pip install speechrecogintion package but that doesnt fiy the issue.

JBramauer commented 6 years ago

Just to make sure - you did replace (robot IP) with the actual IP address of the robot? I don't have access to a robot atm so i cannot test the script against the latest robot software version and sdk version, but maybe we can fix this together.

"setting same as default generate a bus !?!" did you write this or is this from the console output?

soumenms2015 commented 6 years ago

Hello Johannes,

I have replaced the robot IP in module_receiver.py and also pass the robot IP via command line argument. "setting same as default generate a bus ! what do you mean by this?

The issue I have posted, I had to write it as I am using windows cmd. Of cours this is complete error which I have found while running this. I am going to write via gmail id. Let's catch via hangout call. That would be great!!

YifengMa9 commented 5 years ago

I encounter the same problem, so is there any solution?

JBramauer commented 5 years ago

I'm sorry, but I don't have access to a pepper robot any more. I will accept pull requests. Maybe someone who forked the project already implemented a fix?

YifengMa9 commented 5 years ago

Thank you all the same

On Sep 6, 2019, at 7:47 PM, JBramauer notifications@github.com wrote:

I'm sorry, but I don't have access to a pepper robot any more. I will accept pull requests. Maybe someone who forked the project already implemented a fix?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/JBramauer/pepperspeechrecognition/issues/2?email_source=notifications&email_token=ACI6KYWNSE6OEVNY4NWXCADQII7N7A5CNFSM4GAJELZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6CTGXI#issuecomment-528823133, or mute the thread https://github.com/notifications/unsubscribe-auth/ACI6KYTVF5P5F4WPUPTRTF3QII7N7ANCNFSM4GAJELZQ.

Showwwwwwwww commented 7 months ago

I encounter the same problem, so is there any solution?

Hi Yifeng, Can I know have you solved it? I am encountering the same as well.

BirkHintzeThisted commented 4 months ago

I have the same issue from a forked project (that apparently once worked).

The code fails at: audio.setClientPreferences(self.getName(), SAMPLE_RATE, nNbrChannelFlag, nDeinterleave)