Can't find audio device on Raspberry Pi

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Matt,

so far you're the only one who replied to my question. I tried it again with an USB audio sound card. PJSIP seems to accept the USB sound card:

08:31:23.916       pa_dev.c  PortAudio sound library initialized, status=0
08:31:23.917       pa_dev.c  PortAudio host api count=2
08:31:23.919       pa_dev.c  Sound device count=1
08:31:23.921   conference.c  Creating conference bridge with 4 ports
08:31:23.923   Master/sound  Using delay buffer with WSOLA.
08:31:23.935       pa_dev.c  Opened device C-Media USB Headphone Set: USB Audio (hw:1,0)(ALSA)/C-Media USB Headphone Set: USB Audio (hw:1,0)(ALSA) for recording and playback, sample rate=44100, ch=1, bits=16, 882 samples per frame, input latency=100 ms, output latency=140 ms
08:31:23.937       pa_dev.c  Starting C-Media USB Headphone Set: USB Audio (hw:1,0) stream..

But I don't hear anything when I'm establishing a conference call via the conference bridge. Apart from that, everything works like it should. RTP packets are exchanged continuously between the
telephones. Did you ran into similar issues?

regards,

Paul

Gesendet:?Donnerstag, 05. September 2013 um 15:32 Uhr
Von:?"Matthew Cordes" <cordes.matthew at gmail.com>
An:?pjsip at lists.pjsip.org
Betreff:?Re: [pjsip] Can't find audio device on Raspberry Pi

Hi Paul,
?
Did anyone ever respond to this?

I ran into the same issue some time ago. The issue is that the raspberry pi only has one way audio (just audio out and no microphone). So the solution is to use a separate usb sound device. There are lots of the on amazon for reasonable prices. There are primers on the net for getting this to work, but if you run into any issues feel free to ping me.
?
-Matt
?

?
Message: 1
Date: Wed, 4 Sep 2013 11:37:48 +0200 (CEST)
From: "Paul Schmidt" <8flm6@xxxxxx>
To: "pjsip list" <pjsip at lists.pjsip.org[pjsip at lists.pjsip.org]>
Subject: Can't find audio device on Raspberry Pi
Message-ID:
? ? ? ? <trinity-facb89e7-acca-495f-a4cb-33becc5e610f-1378287468600 at 3capp-gmx-bs47>

Content-Type: text/plain; charset=UTF-8

Hello,

I have a small and basic VoIP server application written, which I want to run on a Raspberry Pi.
I successfully compiled PJSIP and my application for the Raspberry, though every time I start my application,
and a conference object is initialized, I'm getting the following error:

Error Code: 420006 - Unable to find default audio device (PJMEDIA_EAUD_NODEFDEV)

This is strange, as portaudio seems to have found a couple of sound devices:

11:24:29.076 ? ? ? pa_dev.c ?PortAudio sound library initialized, status=0
11:24:29.077 ? ? ? pa_dev.c ?PortAudio host api count=2
11:24:29.079 ? ? ? pa_dev.c ?Sound device count=4
11:24:29.081 ? conference.c ?Creating conference bridge with 4 ports
11:24:29.083 ? Master/sound ?Using delay buffer with WSOLA.

Also 'aplay -l' lists one audio device:

$ aplay -l

**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
? Subdevices: 8/8
? Subdevice #0: subdevice #0
? Subdevice #1: subdevice #1
? Subdevice #2: subdevice #2
? Subdevice #3: subdevice #3
? Subdevice #4: subdevice #4
? Subdevice #5: subdevice #5
? Subdevice #6: subdevice #6
? Subdevice #7: subdevice #7

To meet all requirements of PJSIP I installed the following libraries before
I compiled PJSIP:

libasound2
libasound2-dev
libasound2-plugins
alsa-utils
libportaudio2
portaudio19-dev

On my development platform my application runs very well. My development platform:

$ uname -a
Linux 3.5.0-34-generic #55~precise1-Ubuntu SMP i686 i686 i386 GNU/Linux

Does anyone might have an idea what could be possibly missing?

Regards



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux