Re: [pulseaudio-discuss] Pulseaudio recording device re-direct from local machine over cable broadband to remote server / latency problem

2011-04-18 Thread Nick Holloway
Thanks Sean and Marten, this has answered my question, very much
appreciated.

I had hoped to send my local machine's microphone (for voice) over the
Internet to the remote machine, but through all the various configuration
I've done the delay/latency problem persists. Ah well, I had fun trying!

Many thanks again,

Cheers,

Nick



-Original Message-
From: pulseaudio-discuss-boun...@mail.0pointer.de
[mailto:pulseaudio-discuss-boun...@mail.0pointer.de] On Behalf Of Maarten
Bosmans
Sent: Sunday, April 17, 2011 9:24 PM
To: General PulseAudio Discussion
Subject: Re: [pulseaudio-discuss] Pulseaudio recording device re-direct from
local machine over cable broadband to remote server / latency problem

2011/4/17 Sean McNamara smc...@gmail.com:
 I don't know if pulseaudio supports any kind of protocol compression 
 these days, but traditionally it does not. And due to that, it is 
 generally unsuitable for use over the public internet. Lossy 
 compression such as mp3, and protocols such as RTP and Icecast, exist 
 for this purpose. Even if both nodes are dedicated servers with 
 symmetric 100mbps, your transport latency over the internet is too high
for most uses of PA.

Indeed, it is still the case that only raw PCM audio streaming is supported.
For CD quality audio this means a 44100Hz x 16bit x 2ch =
1.4 Mbit/s bandwidth requirement.

 I've heard about lots of interest in extending the PA protocol to 
 support lossy, non-PCM formats, but I don't *think* that has been added
quite yet.

The CELT codec would be the best candidate for that, as it is specifically
designed for low-latency requirements.

Maarten
___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss

___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] Pulseaudio recording device re-direct from local machine over cable broadband to remote server / latency problem

2011-04-18 Thread Maarten Bosmans
2011/4/18 Nick Holloway ourm...@hotmail.com:
 Thanks Sean and Marten, this has answered my question, very much
 appreciated.

 I had hoped to send my local machine's microphone (for voice) over the
 Internet to the remote machine, but through all the various configuration
 I've done the delay/latency problem persists. Ah well, I had fun trying!

Then either use some VOIP application or setup a icecast server.

 Many thanks again,

 Cheers,

 Nick
___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] Pulseaudio recording device re-direct from local machine over cable broadband to remote server / latency problem

2011-04-18 Thread Nick Holloway

Thanks again Marteen, I'll follow your advice.

My goal has been to take the microphone output from the local machine and relay 
it to voice recognition software on the remote server...  the voice recognition 
software (Dragon Naturally Speaking) insists on sampling the speech from the 
mic-in on that machine (the remote machine)... so I'll certainly investigate 
options around Icecast and VOIP options, to see whether they can relay sound 
from the local mic so that it appears to be coming from the sound card on the 
remote machine (ie that it looks like the local mic to the voice recognition 
software). 

Thanks for casting your mind across this, many thanks. cheers,

Nick

 Date: Mon, 18 Apr 2011 14:10:37 +0200
 From: mkbosm...@gmail.com
 To: pulseaudio-discuss@mail.0pointer.de
 Subject: Re: [pulseaudio-discuss] Pulseaudio recording device re-direct from 
 local machine over cable broadband to remote server / latency problem
 
 2011/4/18 Nick Holloway ourm...@hotmail.com:
  Thanks Sean and Marten, this has answered my question, very much
  appreciated.
 
  I had hoped to send my local machine's microphone (for voice) over the
  Internet to the remote machine, but through all the various configuration
  I've done the delay/latency problem persists. Ah well, I had fun trying!
 
 Then either use some VOIP application or setup a icecast server.
 
  Many thanks again,
 
  Cheers,
 
  Nick
 ___
 pulseaudio-discuss mailing list
 pulseaudio-discuss@mail.0pointer.de
 https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss
  ___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


[pulseaudio-discuss] Pulseaudio recording device re-direct from local machine over cable broadband to remote server / latency problem

2011-04-17 Thread Nick Holloway


Hi,

I'm very new to Pulseaudio (and linux generally), so apologies if my query is a 
bit muddled .

I have spent the past few days successfully setting up Pulseaudio to relay 
bi-directional sound from my Debian machine with sound hardware to a virtual 
machine without sound hardware (Virtualbox), all on my LAN. 

I did this by installing Pulseaudio on both machines, then running padevchooser 
on the virtual machine and configuring the server, sink and source to point 
towards my Debian machine with sound hardware. All works perfectly, both 
playing and recording sound.

Having achieved that I then replicated exactly the same setup, but this time 
from my local Debian machine to a hosted server on the Internet, over my cable 
broadband connection (10 Mb downstream, 512K upstream). The sound plays fine 
FROM the remote hosted server on my local Debian machine's speakers (via that 
fast 10 Mb connection) , but when I try to record TO the server (using my local 
machine's recording device relayed by Pulseaudio) then I hit a latency 
problem (via that much slower 512K upstream). In this scenario, if I open the 
recording device volume monitor on the remote server, it picks up a very small 
amount of audio initially, then the volume bursts after a short period, then 
slowly fails to zero, and then I receive an error message detailing the latency 
problem, and it crashes.

Presumably this is related to bandwidth.

My question is: Is there a way to configure Pulseaudio so that it perhaps 
compresses the stream from the local recording device *before* sending it over 
the Internet to the remote server? Might this get around the bandwidth/latency 
problem? Or perhaps there is another way of resolving this kind of problem?

The default for the sampling rate on my local machine's recording device is 2 
channel, 16 bit, 44100Hz...  (I looked for a way to reduce that sample rate 
down as a possible solution in the first instance, but haven't yet worked out 
how to do that).

I'll provide any other information of the machines, configuration etc... if 
that will assist.

Thanks for any help offered.

Cheers,

Nick






  ___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] Pulseaudio recording device re-direct from local machine over cable broadband to remote server / latency problem

2011-04-17 Thread Sean McNamara
Hi,

On Apr 17, 2011 8:10 AM, Nick Holloway ourm...@hotmail.com wrote:


 Hi,

 I'm very new to Pulseaudio (and linux generally), so apologies if my query
is a bit muddled .

 I have spent the past few days successfully setting up Pulseaudio to relay
bi-directional sound from my Debian machine with sound hardware to a
virtual machine without sound hardware (Virtualbox), all on my LAN.

 I did this by installing Pulseaudio on both machines, then running
padevchooser on the virtual machine and configuring the server, sink and
source to point towards my Debian machine with sound hardware. All works
perfectly, both playing and recording sound.

 Having achieved that I then replicated exactly the same setup, but this
time from my local Debian machine to a hosted server on the Internet, over
my cable broadband connection (10 Mb downstream, 512K upstream). The sound
plays fine FROM the remote hosted server on my local Debian machine's
speakers (via that fast 10 Mb connection) , but when I try to record TO the
server (using my local machine's recording device relayed by Pulseaudio)
then I hit a latency problem (via that much slower 512K upstream). In this
scenario, if I open the recording device volume monitor on the remote
server, it picks up a very small amount of audio initially, then the volume
bursts after a short period, then slowly fails to zero, and then I receive
an error message detailing the latency problem, and it crashes.

 Presumably this is related to bandwidth.

 My question is: Is there a way to configure Pulseaudio so that it perhaps
compresses the stream from the local recording device *before* sending it
over the Internet to the remote server? Might this get around the
bandwidth/latency problem? Or perhaps there is another way of resolving this
kind of problem?

 The default for the sampling rate on my local machine's recording device
is 2 channel, 16 bit, 44100Hz...  (I looked for a way to reduce that sample
rate down as a possible solution in the first instance, but haven't yet
worked out how to do that).

I don't know if pulseaudio supports any kind of protocol compression these
days, but traditionally it does not. And due to that, it is generally
unsuitable for use over the public internet. Lossy compression such as mp3,
and protocols such as RTP and Icecast, exist for this purpose. Even if both
nodes are dedicated servers with symmetric 100mbps, your transport latency
over the internet is too high for most uses of PA.

I've heard about lots of interest in extending the PA protocol to support
lossy, non-PCM formats, but I don't *think* that has been added quite yet.

PA shouldn't have crashed for you though, so if you can get a backtrace from
gdb with debugging symbols and provide steps to reproduce, I'm sure someone
could triage why it happened.


 I'll provide any other information of the machines, configuration etc...
if that will assist.

 Thanks for any help offered.

 Cheers,

 Nick







 ___
 pulseaudio-discuss mailing list
 pulseaudio-discuss@mail.0pointer.de
 https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss

___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] Pulseaudio recording device re-direct from local machine over cable broadband to remote server / latency problem

2011-04-17 Thread Maarten Bosmans
2011/4/17 Sean McNamara smc...@gmail.com:
 I don't know if pulseaudio supports any kind of protocol compression these
 days, but traditionally it does not. And due to that, it is generally
 unsuitable for use over the public internet. Lossy compression such as mp3,
 and protocols such as RTP and Icecast, exist for this purpose. Even if both
 nodes are dedicated servers with symmetric 100mbps, your transport latency
 over the internet is too high for most uses of PA.

Indeed, it is still the case that only raw PCM audio streaming is
supported. For CD quality audio this means a 44100Hz x 16bit x 2ch =
1.4 Mbit/s bandwidth requirement.

 I've heard about lots of interest in extending the PA protocol to support
 lossy, non-PCM formats, but I don't *think* that has been added quite yet.

The CELT codec would be the best candidate for that, as it is
specifically designed for low-latency requirements.

Maarten
___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss