Yate Community Forum

General Category => Yate users hangout place => Topic started by: xyswitchz on March 30, 2018, 05:29:40 PM

Title: internal audio type encoding
Post by: xyswitchz on March 30, 2018, 05:29:40 PM

In the file echo.sh example file included with yate; raw audio data is redirected back with the cat command.
I want to pipe this to sox to do some processing.

What is the type, encoding, sample of this internal audio format?
Title: Re: internal audio type encoding
Post by: Monica Tepelus on April 02, 2018, 02:47:18 AM
Hi,

Please see below:
http://docs.yate.ro/wiki/Wavefile
http://docs.yate.ro/wiki/ConvertingAudio
Title: Re: internal audio type encoding
Post by: xyswitchz on April 02, 2018, 04:02:39 AM
Hi Monica

I want to do like this

cat <&3 | sox ...

is it possible. What are the parameters for the raw audio
Title: Re: internal audio type encoding
Post by: Monica Tepelus on April 02, 2018, 06:56:05 AM
Hi,

We used to record files in one of the supported formats and then when call ended we used sox / other programs to convert audio/merge multiple files. When call ended we triggered an external script that triggered processing.

The format should be signed linear, rate 8000, but i'm not 100% sure. You should try to verify this.