MIME Type Mapping

The following are file extension to MIME type mappings if the Content-Type HTTP header is not provided.

MIME Type

Format

File Extension

application/srgs

 

gram

application/srgs+xml

 

grxml

application/ssml+xml

 

ssml

application/voicexml+xml

 

vxml

audio/basic

Headerless 8Khz 8-bit mu-law

mulaw or ulaw

audio/l16

Headerless 8Khz 8-bit L16

 

audio/vox

Vox 8Khz 4-bit OKI_ADPCM

vox

audio/wav

WAV 8Khz 8-bit mono mu-law

wav

audio/x-alaw-basic

Headerless 8Khz 8-bit A-law

alaw

audio/x-fft

WAV 6Khz 8-bit FFT

 

audio/x-g726

Vox 8Khz 4-bit G726

 

audio/x-g729A

Vox 6Khz 8-bit G729A

 

audio/x-gsm610

WAV 8Khz GSM610

 

audio/x-vox

Vox 8Khz 4-bit OKI_ADPCM

vox

audio/x-vox-11khz

Vox 11Khz 8-bit OKI_ADPCM

vox11

audio/x-vox-6khz

Vox 6Khz 8-bit OKI_ADPCM

vox6

audio/x-wav

WAV 8Khz 8-bit mono mu-law

xwav

audio/x-wav-11khz

WAV 11Khz 8-bit mono mu-law

wav11

audio/x-wav-6khz

WAV 6Khz 8-bit mono mu-law

wav6

text/xml

 

xml

Overriding a MIME Type

You can re-define any audio MIME type without having to define a new MIME type. For each MIME type, you can set rate (sampling rate), bitrate, and codec. Valid values are:

u rate = 6000, 8000, 11000, 16000

u bitrate = any number

u codec = alaw, mulaw, pcm

For example, the MIME type audio/x-wav is defined as 8Khz 8-bit mu-law. To change this to 16Khz 8-bit pcm, provide the following MIME type in your application:

 

audio/x-wav;codec=pcm;rate=16000