[Freeswitch-dev] Audio formats without transcoding

Mikael A. Bjerkeland mikael at bjerkeland.com
Fri Jan 2 03:38:06 PST 2009


Michael,

let's say G722 isn't found, but .wav is, will FS revert to using
the .wav file and transcode if the file extension is not specified in
playback?

I will be creating a script to convert any file using sox to every
specified format so we can avoid transcoding as much as possible.
The script will appear at
http://wiki.freeswitch.org/wiki/Mod_native_file anytime soon.


El mar, 09-12-2008 a las 08:34 -0800, Michael Collins escribió:
> Unfortunately mod_native_file hasn't been documented on the wiki yet.
> I'm going to work on that. However, the gist of it is this: if you
> have a file in the proper format, such as g711, then you can specify
> the file name w/o the extension and FreeSWITCH will pick the right one
> for the codec being used. You'll need to make sure that your file
> names have the proper extensions, like .pcmu for mu-law. A complete
> list is available here:
> http://www.iana.org/assignments/media-types/audio/
> 
> so if you have these files:
> /tmp/hello.wav
> /tmp/hello.pcmu
> /tmp/hello.gsm
> /tmp/hello.g729
> 
> you can specify the exact file name, in which case FS will play the
> file and do whatever transcoding is needed. Or you can specify the
> filename without the extension and FS will pick the appropriate one:
> 
> <action application="playback" data="/tmp/hello"/>
> 
> Look for an update on the wiki in the next day or two. In the meantime
> please report back if you have any issues.
> 
> -MC
> 
> On Tue, Dec 9, 2008 at 7:24 AM, Michael Jerris <mike at jerris.com> wrote:
> > yes, you can use mod_native_file.
> >
> > Mike
> >
> > On Dec 9, 2008, at 9:10 AM, Juan Jose Comellas wrote:
> >
> >> I need to support calls using G.711, G.729 and G.722 and I want to
> >> avoid transcoding as much as possible. Does FreeSWITCH support playing
> >> audios in a raw format that does not require transcoding for any of
> >> these codecs? It looks like FS provides WAV audio files with the
> >> frequencies of the supported codecs and relies on transcoding all the
> >> time. Is my analysis correct? How does everybody else handle this
> >> problem?
> >
> >
> > _______________________________________________
> > Freeswitch-dev mailing list
> > Freeswitch-dev at lists.freeswitch.org
> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> > http://www.freeswitch.org
> >
> 
> _______________________________________________
> Freeswitch-dev mailing list
> Freeswitch-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org




More information about the Freeswitch-dev mailing list