Misc. Dialplan Tools playback
From FreeSWITCH Wiki
Plays a sound file on the current channel.
Contents |
[edit]
Example
<!--default terminator is *. Keyword 'none' disables on-key termination /--> <action application="set" data="playback_terminators=#"/> <action application="playback" data="sounds/soundfile.wav"/>
[edit]
Supported File Types
FreeSWITCH has an abstraction layer for file formats. Anyone can write a format module which allows file formats to be utilized from any of the places that would deal with them.
Most formats support both reading and writing, the ones that do not are identified below.
[edit]
mod_sndfile
mod_sndfile libsndfile and therefore supports any format usable by libsndfile. As of libsndfile-1.0.17, the supported formats are:
- AIFF (Apple/SGI) (extension "aiff")
- AU (Sun/NeXT) (extension "au")
- AVR (Audio Visual Research) (extension "avr")
- CAF (Apple Core Audio File) (extension "caf")
- HTK (HMM Tool Kit) (extension "htk")
- IFF (Amiga IFF/SVX8/SV16) (extension "iff")
- MAT4 (GNU Octave 2.0 / Matlab 4.2) (extension "mat")
- MAT5 (GNU Octave 2.1 / Matlab 5.0) (extension "mat")
- PAF (Ensoniq PARIS) (extension "paf")
- PVF (Portable Voice Format) (extension "pvf")
- RAW (header-less) (extension "raw")
- SD2 (Sound Designer II) (extension "sd2")
- SDS (Midi Sample Dump Standard) (extension "sds")
- SF (Berkeley/IRCAM/CARL) (extension "sf")
- VOC (Creative Labs) (extension "voc")
- W64 (SoundFoundry WAVE 64) (extension "w64")
- WAV (Microsoft) (extension "wav")
- WAV (NIST Sphere) (extension "wav")
- WAVEX (Microsoft) (extension "wav")
- XI (FastTracker 2) (extension "xi")
[edit]
mod_shout
Additionally, mod_shout supplies MP3 support for files and shoutcast streams
[edit]
See Also
The sound_prefix channel variable
mod_sndfile
mod_shout
mod_local_stream
mod_native_file
