[Freeswitch-users] What means by *.SPEEX?
Евгений Золотов
zolotov at altron.ua
Tue Sep 9 04:52:53 PDT 2008
On Tuesday, September 09, 2008 1:35 PM Ivan C Mirvold wrote
>I could play the .SPEEX file directly in my OS (Mac OS X). It sounds exactly like the .wav file.
But with the help of what program/filter? Plaing "directly" - is made by means of any OS's programs too.
We works under CentOS 5.1
From: Ivan C Myrvold
To: freeswitch-users at lists.freeswitch.org
Sent: Tuesday, September 09, 2008 1:35 PM
Subject: Re: [Freeswitch-users] What means by *.SPEEX?
I could play the .SPEEX file directly in my OS (Mac OS X). It sounds exactly like the .wav file.
Ivan
Den 9. sep.. 2008 kl. 12:02 skrev Евгений Золотов:
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" />
<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/
<2008-09-05-14-13-08_20024_1010.wav><2008-09-05-14-13-08_20024_1010.SPEEX>_______________________________________________
Freeswitch-users mailing list
Freeswitch-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
------------------------------------------------------------------------------
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20080909/5b7003d8/attachment-0002.html
More information about the FreeSWITCH-users
mailing list