alexa-pi / AlexaPiDEPRECATED

DEPRECATED - Use https://github.com/alexa-pi/AlexaPi instead ...Turn a Raspberry Pi into an Alexa Client
https://github.com/alexa-pi/AlexaPi
MIT License
587 stars 442 forks source link

got problem with alsaaudio... please help me dude... stuck here #135

Closed balajitk7 closed 7 years ago

balajitk7 commented 7 years ago

for https://github.com/maso27/AlexaPi/tree/version1.2 please help me guys,strucked here since 4 days,your time will be precious to me

"""""Traceback (most recent call last): File "main.py", line 592, in start() File "main.py", line 515, in start inp = alsaaudio.PCM(alsaaudio.PCM_CAPTURE, alsaaudio.PCM_NORMAL, device) alsaaudio.ALSAAudioError: Device or resource busy [plughw:1]"""" -------got this error while am running my file main.py-----

----- got the below for arecord -L--------- """"root@raspberrypi:/home/pi/AlexaPi# arecord -L null Discard all samples (playback) or generate zero samples (capture) pulse PulseAudio Sound Server default:CARD=Device USB Audio Device, USB Audio Default Audio Device sysdefault:CARD=Device USB Audio Device, USB Audio Default Audio Device front:CARD=Device,DEV=0 USB Audio Device, USB Audio Front speakers surround21:CARD=Device,DEV=0 USB Audio Device, USB Audio 2.1 Surround output to Front and Subwoofer speakers surround40:CARD=Device,DEV=0 USB Audio Device, USB Audio 4.0 Surround output to Front and Rear speakers surround41:CARD=Device,DEV=0 USB Audio Device, USB Audio 4.1 Surround output to Front, Rear and Subwoofer speakers surround50:CARD=Device,DEV=0 USB Audio Device, USB Audio 5.0 Surround output to Front, Center and Rear speakers surround51:CARD=Device,DEV=0 USB Audio Device, USB Audio 5.1 Surround output to Front, Center, Rear and Subwoofer speakers surround71:CARD=Device,DEV=0 USB Audio Device, USB Audio 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers iec958:CARD=Device,DEV=0 USB Audio Device, USB Audio IEC958 (S/PDIF) Digital Audio Output dmix:CARD=Device,DEV=0 USB Audio Device, USB Audio Direct sample mixing device dsnoop:CARD=Device,DEV=0 USB Audio Device, USB Audio Direct sample snooping device hw:CARD=Device,DEV=0 USB Audio Device, USB Audio Direct hardware device without any conversions plughw:CARD=Device,DEV=0 USB Audio Device, USB Audio Hardware device with all software conversions"""" --- what I want to do in main.py > settings ----

please help me guys, am very passionate about this, and am new to this project, i want to complete this ... am a lecturer i want to give demo to my students pls reply me --- areplay -l-- """"" root@raspberrypi:/home/pi/AlexaPi# arecord -l \ List of CAPTURE Hardware Devices ** card 1: Device [USB Audio Device], device 0: USB Audio [USB Audio] Subdevices: 0/1 Subdevice #0: subdevice #0 """""

factulas commented 7 years ago

In main.py change plughw:1 to plughw:CARD=Device,DEV=0

balajitk7 commented 7 years ago

thank you so much it works... thanks a lot thank you so much

souto93 commented 7 years ago

Hi , I still have the same problem even after chaging that. Don't know what more to do , already spent so many hours trying to fix this....

balajitk7 commented 7 years ago

Type arecord - L Then go for "plughw" line Copy entire first line, mine is "plughw:CARD=Device,DEV=0". Copy ur line in main. Py settings

renekliment commented 7 years ago

This project is now deprecated in favor of the new AlexaPi (https://github.com/alexa-pi/AlexaPi) which has all the features of this project and much more, such as:

Please switch over to the new project and if your issue persists there, file an issue in the new repo's issue tracker. Thank you.