delay between speaker and microphone

Arun Raghavan arun at accosted.net
Fri Jan 29 02:52:37 PST 2016


On 29 January 2016 at 13:05, siddarthmamidanna
<msiddarth at neotechindia.com> wrote:
> Hi Julien,
>
> we have applied buffer-time along with alsasrc the delay between start of
> microphone recording and speaker recording reduced to 135ms. We have changed
> different buffer-time and also latency time but no acquired result of less
> then or equal to 100ms. Then pipeline which we are using is as below:
> gst-launch-1.0 -v filesrc location=/home/pi/record.wav ! audio/x-raw,
> layout=interleaved, rate=8000, format=S16LE, channels=2, endianness=4321,
> width=16, depth=16, signed=true ! tee name=waveaudio ! queue ! audioconvert
> ! autoaudiosink waveaudio. ! filesink location=record_speaker_8000.wav &
> gst-launch-1.0 -v alsasrc buffer-time=1000000 latency-time=10000 !
> audioresample ! audioconvert ! tee name=near_audio ! queue ! audio/x-raw,
> format=S16LE, layout=interleaved, rate=8000, channels=2, endianness=4321,
> width=16, depth=16, signed=true ! appsink name=soundSink drop=true
> near_audio. ! filesink location=record_microphone_8000.wav
>
> kindly let us give us the solution to reduce the delay equal to less then
> 100 ms

You might want to replace autoaudiosink with alsasink (assuming you're
using ALSA for playback), and set the buffer-time and latency-time on
that.

-- Arun


More information about the gstreamer-devel mailing list