Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] What means by *.SPEEX?


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
zolotov at altron.ua
Guest





PostPosted: Tue Sep 09, 2008 5:06 am    Post subject: [Freeswitch-users] What means by *.SPEEX? Reply with quote

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/
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services