alexylem / jarvis

Jarvis.sh is a simple configurable multi-lang assistant.
http://openjarvis.com
MIT License
810 stars 197 forks source link

Unable to use PS Eye 3 #659

Open Oliv4945 opened 7 years ago

Oliv4945 commented 7 years ago

Hi,

I am trying to use a sony PS Eye 3 in a new setup. The camera worked in another computer. This time it hangs when rec is launched with the following error:

In:0.00% 00:00:00.00 [00:00:00.00] Out:0     [      |      ]        Clip:0    ^Crec WARN alsa: Input/output error
rec FAIL sox: `default' No such device: Operation not permitted
In:0.00% 00:00:00.00 [00:00:00.00] Out:0     [      |      ]        Clip:0

Does anyone have an idea ? Thank you

arecord -l:

**** List of CAPTURE Hardware Devices ****
card 0: Device [USB Sound Device], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: CameraB404271 [USB Camera-B4.04.27.1], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

more .asoundrc:

pcm.!default {
  type asym
   playback.pcm {
     type plug
     slave.pcm "hw:0,0"
   }
   capture.pcm {
     type plug
     slave.pcm "hw:1,0"
   }
}
wikijm commented 7 years ago

Maybe @FrenchFlair could help you? https://github.com/alexylem/jarvis/issues/644

FrenchFlair commented 7 years ago

Hi, Sorry, i can't help you. I have just launched mic install again, and it's ok now.

wikijm commented 7 years ago

@FrenchFlair is it possible to provide your .asoundrc file?

kotbdomo commented 6 years ago

I found !!

Change the ".asoundrc" file by this and reebot the Rpi.

# ps3 eye + 3.5mm speaker Raspberry Pi

pcm.array {
  type hw
  card CameraB409241
}

pcm.cap {
  type plug
  slave.pcm "array"
  slave.channels 4
  ttable {
    0.0 30.0
    1.1 30.0
  }
}
pcm.!default {
    type asym
     playback.pcm {
      type plug
      slave.pcm "hw:0,0"
     }
     capture.pcm {
      type plug
      slave.pcm "cap"
    }
}
ctl.!default {
  type hw
  card 0
}