Microsoft.CognitiveServices.Speech Namespace

Classes

AudioDataStream

Represents audio data stream used for operating audio data as a stream. Added in version 1.4.0

CancellationDetails

Contains detailed information about why a result was canceled.

Connection

Connection is a proxy class for managing connection to the speech service of the specified Recognizer. By default, a Recognizer autonomously manages connection to service when needed. The Connection class provides additional methods for users to explicitly open or close a connection and to subscribe to connection status changes. The use of Connection is optional, and mainly for scenarios where fine tuning of application behavior based on connection status is needed. Users can optionally call Open() to manually set up a connection in advance before starting recognition on the Recognizer associated with this Connection. After starting recognition, calling Open() or Close() might fail, depending on the process state of the Recognizer. But this does not affect the state of the associated Recognizer. And if the Recognizer needs to connect or disconnect to service, it will setup or shutdown the connection independently. In this case the Connection will be notified by change of connection status via Connected/Disconnected events. Added in version 1.2.0.

ConnectionEventArgs

Defines payload for Connected/Disconnected events Added in version 1.2.0.

DetailedSpeechRecognitionResult

Detailed recognition result.

Grammar

Represents base class grammar for customizing speech recognition. Added in version 1.5.0.

GrammarPhrase

Represents a phrase that may be spoken by the user. Added in version 1.5.0.

KeywordRecognitionModel

Represents keyword recognition model used with StartKeywordRecognitionAsync.

NoMatchDetails

Contains detailed information for NoMatch recognition results.

PhraseListGrammar

Represents a phrase list grammar for dynamic grammar scenarios. Added in version 1.5.0.

PropertyCollection

Class to retrieve or set a property value from a property collection.

RecognitionEventArgs

Defines payload for recognition events like Speech Start/End Detected

RecognitionResult

Contains detailed information about result of a recognition operation.

Recognizer

Defines the base class Recognizer which mainly contains common event handlers.

SessionEventArgs

Defines payload for SessionStarted/Stopped events.

SpeechConfig

Speech configuration.

SpeechRecognitionCanceledEventArgs

Define payload of speech recognition canceled result events.

SpeechRecognitionEventArgs

Define payload of speech recognizing/recognized events.

SpeechRecognitionResult

Defines result of speech recognition.

SpeechRecognitionResultExtensions

Extension methods for speech recognition result

SpeechRecognizer

Performs speech recognition from microphone, file, or other audio input streams, and gets transcribed text as result.

SpeechSynthesisCancellationDetails

Contains detailed information about why a speech synthesis result was canceled. Added in version 1.4.0

SpeechSynthesisEventArgs

Define payload of speech synthesis events. Added in version 1.4.0

SpeechSynthesisResult

Contains detailed information about result of a speech synthesis operation. Added in version 1.4.0

SpeechSynthesizer

Performs speech synthesis to speaker, file, or other audio output streams, and gets synthesized audio as result. Added in version 1.4.0

SpeechTranslationConfig

Speech translation configuration.

Enums

CancellationErrorCode

Defines error code in case that CancellationReason is Error. Added in version 1.1.0.

CancellationReason

Defines the possible reasons a recognition result might be canceled.

NoMatchReason

Defines the possible reasons a recognition result might not be recognized.

OutputFormat

Output format.

ProfanityOption

Profanity option. Added in version 1.5.0.

PropertyId

Defines speech property ids. Changed in version 1.4.0.

ResultReason

Defines the possible reasons a recognition result might be generated.

ServicePropertyChannel

Defines channels used to pass property settings to service. Added in version 1.5.0.

SpeechSynthesisOutputFormat

Defines the possible speech synthesis output audio format. Added in version 1.4.0

StreamStatus

Defines the possible status of audio data stream. Added in version 1.4.0