AddLexicon Method

Microsoft Speech Platform SDK 11

Collapse image Expand Image Copy image CopyHover image

Adds a lexicon to the SpeechSynthesizer object.

Namespace:  Microsoft.Speech.Synthesis
Assembly:  Microsoft.Speech (in Microsoft.Speech.dll)

Syntax

Visual Basic (Declaration)
Public Sub AddLexicon ( _
	uri As Uri, _
	mediaType As String _
)
Visual Basic (Usage)
Dim instance As SpeechSynthesizer
Dim uri As Uri
Dim mediaType As String

instance.AddLexicon(uri, mediaType)
C#
public void AddLexicon(
	Uri uri,
	string mediaType
)

Parameters

uri
Type: System..::..Uri

The location of the lexicon information.

mediaType
Type: System..::..String

The media type of the lexicon. Media type values are not case sensitive.

Remarks

A pronunciation lexicon is a collection of words or phrases together with their pronunciations, which consist of letters and characters from a supported phonetic alphabet. You can add multiple lexicons to a SpeechSynthesizer.

Two values are currently supported for mediaType:

See Also