Automation Interfaces and Objects (SAPI 5.4)

Microsoft Speech API 5.4

Automation Interfaces and Objects

The Automation Interfaces provide object-oriented access to the speech recognition and text-to-speech capabilities of SAPI.

Please note that all automation interface names begin with "ISpeech" and that all automation object names begin with "Sp." Applications can explicitly create object variables which instantiate automation objects, using the "CreateObject" statement or the "New" keyword in a "Dim" or "Set" statement. Object variables which instantiate automation interfaces, on the other hand, are only created by the methods, properties and events of automation objects.

Additionally, some automation interfaces are implemented by automation objects, and the properties and methods of those interfaces are inherited by the objects. For example, the ISpeechBaseStream interface defines a set of properties and methods for storing and manipulating audio data in memory. The SpFileStream, SpMemoryStream and SpCustomStream objects implement the ISpeechBaseStream interface; as a result, the methods and properties of the ISpeechBaseStream interface are available in all three objects.

Automation Interfaces and Objects

SAPI 5.1 Automation consists of the following interfaces and objects:

Interfaces
ISpeechAudio
ISpeechAudioBufferInfo
ISpeechAudioStatus
ISpeechBaseStream
ISpeechDataKey
ISpeechGrammarRule
ISpeechGrammarRules
ISpeechGrammarRuleState
ISpeechGrammarRuleStateTransition
ISpeechGrammarRuleStateTransitions
ISpeechLexiconPronunciation
ISpeechLexiconPronunciations
ISpeechLexiconWord
ISpeechLexiconWords
ISpeechObjectTokens
ISpeechPhraseAlternate
ISpeechPhraseAlternates
ISpeechPhraseElement
ISpeechPhraseElements
ISpeechPhraseInfo
ISpeechPhraseProperties
ISpeechPhraseProperty
ISpeechPhraseReplacement
ISpeechPhraseReplacements
ISpeechPhraseRule
ISpeechPhraseRules
ISpeechRecognizerStatus
ISpeechRecoGrammar
ISpeechRecoResult
ISpeechRecoResultDispatch
ISpeechRecoResultTimes
ISpeechVoiceStatus
ISpeechXMLRecoResult
Objects
SpAudioFormat
SpCustomStream
SpFileStream
SpInProcRecoContext
SpInProcRecoContext (Events)
SpInProcRecognizer
SpLexicon
SpMemoryStream
SpMMAudioIn
SpMMAudioOut
SpObjectToken
SpObjectTokenCategory
SpPhoneConverter
SpPhraseInfoBuilder
SpSharedRecoContext
SpSharedRecoContext (Events)
SpSharedRecognizer
SpTextSelectionInformation
SpUnCompressedLexicon
SpVoice
SpVoice (Events)
SpWaveFormatEx