Culture Property

Microsoft Speech Platform SDK 11

Collapse image Expand Image Copy image CopyHover image

Gets or sets the culture information for the SrgsDocument instance.

Namespace:  Microsoft.Speech.Recognition.SrgsGrammar
Assembly:  Microsoft.Speech (in Microsoft.Speech.dll)

Syntax

Visual Basic (Declaration)
Public Property Culture As CultureInfo
	Get
	Set
Visual Basic (Usage)
Dim instance As SrgsDocument
Dim value As CultureInfo

value = instance.Culture

instance.Culture = value
C#
public CultureInfo Culture { get; set; }

Property Value

Type: System.Globalization..::..CultureInfo

Returns the current culture information for the SrgsDocument.

Exceptions

ExceptionCondition
ArgumentNullException

The value being assigned to Culture is nullNothingnullptrunita null reference (Nothing in Visual Basic).

ArgumentException

The value being assigned to Culture is InvariantCulture.

Remarks

The Culture property sets the single culture for the grammar defined in the SrgsDocument object.

The Microsoft Speech Platform SDK 11 accepts all valid language-country codes as values for Culture. For a given language code specified in the Culture property, a speech recognition engine that supports that language code must be installed for the grammar to be loaded successfully.

If the Culture property specifies only a language code, (such as "en" for English or "es" for Spanish), and not a country/region code, then any installed recognizer that expresses support for that generic, region-independent language will be able to load the grammar. See Language Identifier Constants and Strings for a comprehensive list of language codes.

The Microsoft Speech Platform Runtime 11 and Speech Platform SDK 11 do not include any engines for speech recognition in a specific language. You must download a language pack (an engine for speech recognition in a specific language) for each language on which you want to perform speech recognition.

The language packs are different for each version of the Speech Platform Runtime. You must download the language pack version that matches the version of the Speech Platform Runtime that you have installed. The language packs for the Speech Platform SDK 11 are for server-based applications and are different than the languages that ship with Windows Vista or Windows 7. Use the following links to download the version of the server language packs that match your Speech Platform Runtime version:

See Language Support for a list of languages for which you can download language packs.

See Also