Connecting to mod_portaudio

Status
Not open for further replies.

dryauquaman

New Member
Mar 31, 2021
9
0
1
63
The next part of my project is to be able to dial into FS and connect to a microphone on a Raspberry Pi USB Audio Adapter.
I've modified the portaudio.conf.xml file, reloaded the module from the CLI but haven't been to get the mod to recognize the audio adapter.
When I reload the mod I get this error:

2021-04-05 10:52:18.954707 [DEBUG] mod_portaudio.c:1773 global indev [-1]
2021-04-05 10:52:18.954707 [ERR] mod_portaudio.c:1777 Cannot find an input device
2021-04-05 10:52:18.954707 [DEBUG] mod_portaudio.c:1786 global outdev [-1]
2021-04-05 10:52:18.954707 [ERR] mod_portaudio.c:1790 Cannot find an output device

Reading the notes in the xml file, it says this:
<!-- indev, outdev, ringdev:
partial case sensitive string match on something in the name
or the device number prefixed with # eg "#1" (or blank for default) -->
I bolded the text that suggest that I should be able to put in "USB" if the actual device name is "USB Audio." It doesn't matter what I put in there, it never seems to find it when I reload the logs.
To verify what devices I have, I used the command arecord -l. I get this for output:
pi@raspberrypi-freeswitch:/etc/freeswitch $ arecord -l
**** List of CAPTURE Hardware Devices ****
card 2: Device [USB Audio Device], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
Similar output for the lsusb command.
pi@raspberrypi-freeswitch:/etc/freeswitch $ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 0d8c:0014 C-Media Electronics, Inc. Audio Adapter (Unitek Y-247A)
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
the fs_cli command pa devlist gives me this result:
freeswitch@raspberrypi-freeswitch> pa devlist
-ERR no reply

Does anyone have any further tips?
Note: I've also restarted FS but it doesn't make a difference.
 

ad5ou

Active Member
Jun 12, 2018
887
197
43
have you tried leaving it blank? "(or blank for default)"

I've never tried using port audio so it is mostly guesses, but your fs_cli command pa devlist isn't working because the module didn't load.
If the module won't load with setting devices to use "default" then you might be missing a required package etc possibly pulseaudio?

Also have you looked at https://freeswitch.org/confluence/display/FREESWITCH/FSComm ?
FSComm seems to be the essence of what you are building.
 

dryauquaman

New Member
Mar 31, 2021
9
0
1
63
No, I haven't checked out FSComm. This is the first time I've heard of it.
I'll check it out and get back with you.

I'm getting a bit nervous that I may have to compile mod_portaudio. That would be the first time I've done that - a whole new learning curve.
 
Status
Not open for further replies.