Setting media (MIME) types

Nuance configurations use MIME types to define media types.

Speech Server supports file extension rules that determine the MIME type of a request if a client application does not supply a type. These rules may be specified via the Management Station using parameters of the form:

server.inet.extensionRule.extension VXIString mime-type

Where the extension varies. You can add rules for additional types, but note that Speech Server does not understand all possible MIME types.

Set the following MIME type associations on your web server.

  • To set associations on Apache, edit the file ApacheRoot/conf/mime.types.
  • To set associations on Tomcat, add each association to the "Default MIME Type Mappings" section of the file TomcatRoot/conf/web.xml.

For Nuance Recognizer, add the following associations:

Extension

MIME type

gram

application/x-swi-grammar

grxml

application/srgs+xml

For Vocalizer, add the following associations:

Extension

MIME type

alaw

audio/x-alaw-basic

bdc

application/edct-bin-dictionary

dcb

application/edct-bin-dictionary

dct

application/edct-text-dictionary

html

text/html

L16

audio/L16;rate=8000

mulaw

audio/basic

sdc

application/sdct-bin-dictionary

ssml

application/synthesis+ssml (preferred by Nuance)

application/ssml+xml (allowed)

tdc

application/edct-text-dictionary

type

Specifies the scope when loading a dictionary for text normalization. The value of scope is any text normalization type or arbitrary string representing. When the application specifies the scope (with the TN escape sequence) in spoken text, Vocalizer activates any dictionaries loaded with that scope. This example defines two scopes for a dictionary:

application/type=sms,biking

ulaw

audio/basic

wav

audio/x-wav

xml

text/srgs+xml