zolotov at altron.ua Guest
|
Posted: Tue Sep 09, 2008 5:06 am Post subject: [Freeswitch-users] What means by *.SPEEX? |
|
|
We have some number of questions in one letter:
We make registration seance's audiostream simultaneously into a 2 different files, which have an extensions "wav" and "SPEEX".
We use for this extension about such sort:
<extension name="20024">
<condition field="destination_number" expression="^20024$">
<action application="set" data="bypass_media=false" />
<action application="set" data="RECORD_ANSWER_REQ="true" />
<action application="set" data="RECORD_TITLE=Recording ${destination_number} ${caller_id_number} ${strftime(%Y-%m-%d %H:%M)}"/>
<action application="set" data="RECORD_COPYRIGHT=(c) 2008, Altron Inc." />
<action application="set" data="RECORD_SOFTWARE=FreeSwitch" />
<action application="set" data="RECORD_ARTIST=Registration" />
<action application="set" data="RECORD_COMMENT=!!!" />
<action application="set" data="RECORD_DATE=${strftime(%Y-%m-%d %H:%M)}"/>
<action application="set" data="RECORD_STEREO=true"/>
<action application="record_session" data="$${base_dir}/recordings/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav"/>
<action application="record_session" data="$${base_dir}/recordings/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.SPEEX"/>
<action application="set" data="ringback=${us-ring}"/>
<action application="bridge" data="sofia/internal/${dialed_ext}@192.168.2.107:5062 ([email]sofia/internal/@192.168.2.107:5062[/email])" />
<action application="answer" />
</condition>
</extension>
As result we receive simultaneously 2 files ( audio files are enclosed to the letter)
$ ls -l 2008*
-rw-r--r-- 1 olej olej 26880 σΕΞ 5 14:13 2008-09-05-14-13-08_20024_1010.SPEEX
-rw-r--r-- 1 olej olej 107752 σΕΞ 5 14:13 2008-09-05-14-13-08_20024_1010.wav
1. File *.wav, as one would expect, contains RIFF header with metadata and can be played back with any matching tool, for example we used "sox"
*.SPEEX file, in that sort as it is written with FreeSWITCH, contains, as we think looking for its size, compressed by speex codec.
Is it really so?
Project SPEEX community develops own tools (speexenc, speexdec) plaining, that their speex stream is located into OGG container
and thus can be converted into *.wav or another ( with speexdec) and played back ( for example, with sox).
2. As it seems, *.SPEEX file can be played back with another extension by using FreeSWITCH playback application.
Is it really so?
If it isn't so, than with which 3-rd part tool we could play back *.SPEEX file for the control?
3. And final question:
<action application="set" data="RECORD_STEREO=true"/> - does it pack 2 channels from A-leg and B-leg of bridge into
one *.wav stream?
Can we register only A-leg or B-leg with record_session application??
Thanks in advance!
Evgeniy/ |
|