Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Configuring mod_portaudio for Debian built-in (JACK?) audio


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
schoch+freeswitch.org ...
Guest





PostPosted: Thu May 13, 2021 6:08 pm    Post subject: [Freeswitch-users] Configuring mod_portaudio for Debian buil Reply with quote

I had it working at home, but when I installed the switch at the bookstore, there is nothing to be heard on the audio ports. Now I'm trying to debug it remotely, which is difficult because I can't hear the speaker.

The system is an HP ProDesk 400. It has a "Audio-out/Audio-in combo jack" on the front panel. It has an "audio-in" jack, and an "audio-out jack for powered devices" on the back. When it was working at home, I plugged powered speakers into the audio-out jack on the back.


pa devlist shows this:
freeswitch@pbx> pa devlist
0;HDA Intel PCH: CX20632 Analog (hw:0,0)(ALSA);2;2;r,i,o
1;HDA Intel PCH: CX20632 Alt Analog (hw:0,2)(ALSA);2;0;
2;HDA Intel PCH: HDMI 0 (hw:0,3)(ALSA);0;8;
3;HDA Intel PCH: HDMI 1 (hw:0,7)(ALSA);0;8;
4;HDA Intel PCH: HDMI 2 (hw:0,Cool(ALSA);0;8;
5;HDA Intel PCH: HDMI 3 (hw:0,9)(ALSA);0;8;
6;HDA Intel PCH: HDMI 4 (hw:0,10)(ALSA);0;8;
7;sysdefault(ALSA);128;128;
8;front(ALSA);0;2;
9;surround40(ALSA);0;2;
10;surround51(ALSA);0;2;
11;surround71(ALSA);0;2;
12;hdmi(ALSA);0;8;
13;lavrate(ALSA);128;128;
14;samplerate(ALSA);128;128;
15;speexrate(ALSA);128;128;
16;upmix(ALSA);8;8;
17;vdownmix(ALSA);6;6;
18;default(ALSA);128;128;
19;dmix(ALSA);0;2;


I have no idea what most of his is, and the HDMI in the list is confusing, because the system has a DisplayPort connector, but no HDMI.


I assume device #0 is the connectors on the back. I also assume that when it bridge to "portaudio/auto_answer" that it will use the only device that is configured with a "o", which is device #0.


One difference between home and the current location is the addition of a 10' audio cable between the computer and the speaker, but I can't see how this would make a difference.


An advanced question is how to use a portaudio microphone. I plugged a microphone into the "audio-in" on the back, but this isn't working either. Is this because that port needs line-level audio? The HP manual says the front audio panel connector can be used for a microphone. Is that portaudio device #1? How to I configure that device for input?


-- 
Steve


On Sun, Mar 28, 2021 at 1:41 PM Bote Man <botelist@gmail.com (botelist@gmail.com)> wrote:

Quote:

I have never tried any of the linux audio drivers, but I have never heard a good word about any of them. YMMV.
 
In ${conf_dir}/autoload_configs/portaudio.conf.xml I see:
 
  <settings>
    <!-- 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) -->
 
    <!-- device to use for input -->
    <param name="indev" value=""/>
    <!-- device to use for output -->
    <param name="outdev" value=""/>
 
The wiki has some good ideas on how to list the available devices from fs_cli in:
https://freeswitch.org/confluence/display/FREESWITCH/mod_portaudio
 
One suggestion to aid you in testing would be to use the “playback” dialplan app to generate test tones with tone_stream or play a .wav file.
 
 
---
Bote Man
Bote Communications
 
 
 
From: FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)> On Behalf Of Steven Schoch
Sent: Sunday, 28 March, 2021 00:18
To: freeswitch-users <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)>
Subject: [Freeswitch-users] Configuring mod_portaudio for Debian built-in (JACK?) audio

 
I have an HP Prodesk tower with Debian and FreeSWITCH installed. It has an audio jack that is plugged into a speaker. I configured the system so that the devices in /dev/snd are group "freeswitch". Now I want to transfer a call to the speaker with <action application="bridge" data="portaudio/auto_answer"/>.
 

However, I am getting errors when I load mod_portaudio that look like this:

2021-03-27 21:15:30.747447 [ERR] mod_portaudio.c:1617 Invalid outstream specified for endpoint 'default'

 

It looks like a config file issue, but I have no clue where to start because I couldn't find a good example. Any suggestions?

 

-- 

Steve



_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com
Back to top
schoch+freeswitch.org ...
Guest





PostPosted: Fri May 21, 2021 1:22 pm    Post subject: [Freeswitch-users] Configuring mod_portaudio for Debian buil Reply with quote

I figured it out.
The 1st problem was the volume was set to 0. In order to fix that, logged into the server and brought up a Gnome desktop, then used the audio tool to raise the volume.


The 2nd problem was that when I plug something into the front audio port (which is supposed to be able to be used for both a microphone and a headset), the audio stopped being sent to the speaker, which was plugged into the audio out jack on the back. Unplugging from the front audio jack solved that problem.


-- 
Steve



On Thu, May 13, 2021 at 3:52 PM Steven Schoch <schoch+freeswitch.org@xwin32.com ([email]schoch%2Bfreeswitch.org@xwin32.com[/email])> wrote:

Quote:
I had it working at home, but when I installed the switch at the bookstore, there is nothing to be heard on the audio ports. Now I'm trying to debug it remotely, which is difficult because I can't hear the speaker.

The system is an HP ProDesk 400. It has a "Audio-out/Audio-in combo jack" on the front panel. It has an "audio-in" jack, and an "audio-out jack for powered devices" on the back. When it was working at home, I plugged powered speakers into the audio-out jack on the back.


pa devlist shows this:
freeswitch@pbx> pa devlist
0;HDA Intel PCH: CX20632 Analog (hw:0,0)(ALSA);2;2;r,i,o
1;HDA Intel PCH: CX20632 Alt Analog (hw:0,2)(ALSA);2;0;
2;HDA Intel PCH: HDMI 0 (hw:0,3)(ALSA);0;8;
3;HDA Intel PCH: HDMI 1 (hw:0,7)(ALSA);0;8;
4;HDA Intel PCH: HDMI 2 (hw:0,Cool(ALSA);0;8;
5;HDA Intel PCH: HDMI 3 (hw:0,9)(ALSA);0;8;
6;HDA Intel PCH: HDMI 4 (hw:0,10)(ALSA);0;8;
7;sysdefault(ALSA);128;128;
8;front(ALSA);0;2;
9;surround40(ALSA);0;2;
10;surround51(ALSA);0;2;
11;surround71(ALSA);0;2;
12;hdmi(ALSA);0;8;
13;lavrate(ALSA);128;128;
14;samplerate(ALSA);128;128;
15;speexrate(ALSA);128;128;
16;upmix(ALSA);8;8;
17;vdownmix(ALSA);6;6;
18;default(ALSA);128;128;
19;dmix(ALSA);0;2;


I have no idea what most of his is, and the HDMI in the list is confusing, because the system has a DisplayPort connector, but no HDMI.


I assume device #0 is the connectors on the back. I also assume that when it bridge to "portaudio/auto_answer" that it will use the only device that is configured with a "o", which is device #0.


One difference between home and the current location is the addition of a 10' audio cable between the computer and the speaker, but I can't see how this would make a difference.


An advanced question is how to use a portaudio microphone. I plugged a microphone into the "audio-in" on the back, but this isn't working either. Is this because that port needs line-level audio? The HP manual says the front audio panel connector can be used for a microphone. Is that portaudio device #1? How to I configure that device for input?


-- 
Steve


On Sun, Mar 28, 2021 at 1:41 PM Bote Man <botelist@gmail.com (botelist@gmail.com)> wrote:

Quote:

I have never tried any of the linux audio drivers, but I have never heard a good word about any of them. YMMV.
 
In ${conf_dir}/autoload_configs/portaudio.conf.xml I see:
 
  <settings>
    <!-- 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) -->
 
    <!-- device to use for input -->
    <param name="indev" value=""/>
    <!-- device to use for output -->
    <param name="outdev" value=""/>
 
The wiki has some good ideas on how to list the available devices from fs_cli in:
https://freeswitch.org/confluence/display/FREESWITCH/mod_portaudio
 
One suggestion to aid you in testing would be to use the “playback” dialplan app to generate test tones with tone_stream or play a .wav file.
 
 
---
Bote Man
Bote Communications
 
 
 
From: FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)> On Behalf Of Steven Schoch
Sent: Sunday, 28 March, 2021 00:18
To: freeswitch-users <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)>
Subject: [Freeswitch-users] Configuring mod_portaudio for Debian built-in (JACK?) audio

 
I have an HP Prodesk tower with Debian and FreeSWITCH installed. It has an audio jack that is plugged into a speaker. I configured the system so that the devices in /dev/snd are group "freeswitch". Now I want to transfer a call to the speaker with <action application="bridge" data="portaudio/auto_answer"/>.
 

However, I am getting errors when I load mod_portaudio that look like this:

2021-03-27 21:15:30.747447 [ERR] mod_portaudio.c:1617 Invalid outstream specified for endpoint 'default'

 

It looks like a config file issue, but I have no clue where to start because I couldn't find a good example. Any suggestions?

 

-- 

Steve



_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com

Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services