⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sapi.h

📁 盲人输入法
💻 H
📖 第 1 页 / 共 3 页
字号:
	VARIANT SaveToMemory();
	CString GetText(long StartElement, long Elements, BOOL UseReplacements);
	long GetDisplayAttributes(long StartElement, long Elements, BOOL UseReplacements);
};
/////////////////////////////////////////////////////////////////////////////
// ISpeechPhraseRule wrapper class

class ISpeechPhraseRule : public COleDispatchDriver
{
public:
	ISpeechPhraseRule() {}		// Calls COleDispatchDriver default constructor
	ISpeechPhraseRule(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
	ISpeechPhraseRule(const ISpeechPhraseRule& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}

// Attributes
public:

// Operations
public:
	CString GetName();
	long GetId();
	long GetFirstElement();
	long GetNumberOfElements();
	LPDISPATCH GetParent();
	LPDISPATCH GetChildren();
	long GetConfidence();
	float GetEngineConfidence();
};
/////////////////////////////////////////////////////////////////////////////
// ISpeechPhraseRules wrapper class

class ISpeechPhraseRules : public COleDispatchDriver
{
public:
	ISpeechPhraseRules() {}		// Calls COleDispatchDriver default constructor
	ISpeechPhraseRules(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
	ISpeechPhraseRules(const ISpeechPhraseRules& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}

// Attributes
public:

// Operations
public:
	long GetCount();
	LPDISPATCH Item(long Index);
};
/////////////////////////////////////////////////////////////////////////////
// ISpeechPhraseProperties wrapper class

class ISpeechPhraseProperties : public COleDispatchDriver
{
public:
	ISpeechPhraseProperties() {}		// Calls COleDispatchDriver default constructor
	ISpeechPhraseProperties(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
	ISpeechPhraseProperties(const ISpeechPhraseProperties& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}

// Attributes
public:

// Operations
public:
	long GetCount();
	LPDISPATCH Item(long Index);
};
/////////////////////////////////////////////////////////////////////////////
// ISpeechPhraseProperty wrapper class

class ISpeechPhraseProperty : public COleDispatchDriver
{
public:
	ISpeechPhraseProperty() {}		// Calls COleDispatchDriver default constructor
	ISpeechPhraseProperty(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
	ISpeechPhraseProperty(const ISpeechPhraseProperty& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}

// Attributes
public:

// Operations
public:
	CString GetName();
	long GetId();
	VARIANT GetValue();
	long GetFirstElement();
	long GetNumberOfElements();
	float GetEngineConfidence();
	long GetConfidence();
	LPDISPATCH GetParent();
	LPDISPATCH GetChildren();
};
/////////////////////////////////////////////////////////////////////////////
// ISpeechPhraseElements wrapper class

class ISpeechPhraseElements : public COleDispatchDriver
{
public:
	ISpeechPhraseElements() {}		// Calls COleDispatchDriver default constructor
	ISpeechPhraseElements(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
	ISpeechPhraseElements(const ISpeechPhraseElements& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}

// Attributes
public:

// Operations
public:
	long GetCount();
	LPDISPATCH Item(long Index);
};
/////////////////////////////////////////////////////////////////////////////
// ISpeechPhraseElement wrapper class

class ISpeechPhraseElement : public COleDispatchDriver
{
public:
	ISpeechPhraseElement() {}		// Calls COleDispatchDriver default constructor
	ISpeechPhraseElement(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
	ISpeechPhraseElement(const ISpeechPhraseElement& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}

// Attributes
public:

// Operations
public:
	long GetAudioTimeOffset();
	long GetAudioSizeTime();
	long GetAudioStreamOffset();
	long GetAudioSizeBytes();
	long GetRetainedStreamOffset();
	long GetRetainedSizeBytes();
	CString GetDisplayText();
	CString GetLexicalForm();
	VARIANT GetPronunciation();
	long GetDisplayAttributes();
	long GetRequiredConfidence();
	long GetActualConfidence();
	float GetEngineConfidence();
};
/////////////////////////////////////////////////////////////////////////////
// ISpeechPhraseReplacements wrapper class

class ISpeechPhraseReplacements : public COleDispatchDriver
{
public:
	ISpeechPhraseReplacements() {}		// Calls COleDispatchDriver default constructor
	ISpeechPhraseReplacements(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
	ISpeechPhraseReplacements(const ISpeechPhraseReplacements& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}

// Attributes
public:

// Operations
public:
	long GetCount();
	LPDISPATCH Item(long Index);
};
/////////////////////////////////////////////////////////////////////////////
// ISpeechPhraseReplacement wrapper class

class ISpeechPhraseReplacement : public COleDispatchDriver
{
public:
	ISpeechPhraseReplacement() {}		// Calls COleDispatchDriver default constructor
	ISpeechPhraseReplacement(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
	ISpeechPhraseReplacement(const ISpeechPhraseReplacement& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}

// Attributes
public:

// Operations
public:
	long GetDisplayAttributes();
	CString GetText();
	long GetFirstElement();
	long GetNumberOfElements();
};
/////////////////////////////////////////////////////////////////////////////
// ISpeechPhraseAlternates wrapper class

class ISpeechPhraseAlternates : public COleDispatchDriver
{
public:
	ISpeechPhraseAlternates() {}		// Calls COleDispatchDriver default constructor
	ISpeechPhraseAlternates(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
	ISpeechPhraseAlternates(const ISpeechPhraseAlternates& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}

// Attributes
public:

// Operations
public:
	long GetCount();
	LPDISPATCH Item(long Index);
};
/////////////////////////////////////////////////////////////////////////////
// ISpeechPhraseAlternate wrapper class

class ISpeechPhraseAlternate : public COleDispatchDriver
{
public:
	ISpeechPhraseAlternate() {}		// Calls COleDispatchDriver default constructor
	ISpeechPhraseAlternate(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
	ISpeechPhraseAlternate(const ISpeechPhraseAlternate& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}

// Attributes
public:

// Operations
public:
	LPDISPATCH GetRecoResult();
	long GetStartElementInResult();
	long GetNumberOfElementsInResult();
	LPDISPATCH GetPhraseInfo();
	void Commit();
};
/////////////////////////////////////////////////////////////////////////////
// _ISpeechRecoContextEvents wrapper class

class _ISpeechRecoContextEvents : public COleDispatchDriver
{
public:
	_ISpeechRecoContextEvents() {}		// Calls COleDispatchDriver default constructor
	_ISpeechRecoContextEvents(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
	_ISpeechRecoContextEvents(const _ISpeechRecoContextEvents& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}

// Attributes
public:

// Operations
public:
	void StartStream(long StreamNumber, const VARIANT& StreamPosition);
	void EndStream(long StreamNumber, const VARIANT& StreamPosition, BOOL StreamReleased);
	void Bookmark(long StreamNumber, const VARIANT& StreamPosition, const VARIANT& BookmarkId, long Options);
	void SoundStart(long StreamNumber, const VARIANT& StreamPosition);
	void SoundEnd(long StreamNumber, const VARIANT& StreamPosition);
	void PhraseStart(long StreamNumber, const VARIANT& StreamPosition);
	void Recognition(long StreamNumber, const VARIANT& StreamPosition, long RecognitionType, LPDISPATCH Result);
	void Hypothesis(long StreamNumber, const VARIANT& StreamPosition, LPDISPATCH Result);
	void PropertyNumberChange(long StreamNumber, const VARIANT& StreamPosition, LPCTSTR PropertyName, long NewNumberValue);
	void PropertyStringChange(long StreamNumber, const VARIANT& StreamPosition, LPCTSTR PropertyName, LPCTSTR NewStringValue);
	void FalseRecognition(long StreamNumber, const VARIANT& StreamPosition, LPDISPATCH Result);
	void Interference(long StreamNumber, const VARIANT& StreamPosition, long Interference);
	void RequestUI(long StreamNumber, const VARIANT& StreamPosition, LPCTSTR UIType);
	void RecognizerStateChange(long StreamNumber, const VARIANT& StreamPosition, long NewState);
	void Adaptation(long StreamNumber, const VARIANT& StreamPosition);
	void RecognitionForOtherContext(long StreamNumber, const VARIANT& StreamPosition);
	void AudioLevel(long StreamNumber, const VARIANT& StreamPosition, long AudioLevel);
	void EnginePrivate(long StreamNumber, const VARIANT& StreamPosition, const VARIANT& EngineData);
};
/////////////////////////////////////////////////////////////////////////////
// ISpeechLexicon wrapper class

class ISpeechLexicon : public COleDispatchDriver
{
public:
	ISpeechLexicon() {}		// Calls COleDispatchDriver default constructor
	ISpeechLexicon(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
	ISpeechLexicon(const ISpeechLexicon& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}

// Attributes
public:

// Operations
public:
	LPDISPATCH GetWords(long Flags, long* GenerationId);
	void AddPronunciation(LPCTSTR bstrWord, long LangId, long PartOfSpeech, LPCTSTR bstrPronunciation);
	void RemovePronunciation(LPCTSTR bstrWord, long LangId, long PartOfSpeech, LPCTSTR bstrPronunciation);
	LPDISPATCH GetPronunciations(LPCTSTR bstrWord, long LangId, long TypeFlags);
};
/////////////////////////////////////////////////////////////////////////////
// ISpeechLexiconWords wrapper class

class ISpeechLexiconWords : public COleDispatchDriver
{
public:
	ISpeechLexiconWords() {}		// Calls COleDispatchDriver default constructor
	ISpeechLexiconWords(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
	ISpeechLexiconWords(const ISpeechLexiconWords& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}

// Attributes
public:

// Operations
public:
	long GetCount();
	LPDISPATCH Item(long Index);
};
/////////////////////////////////////////////////////////////////////////////
// ISpeechLexiconWord wrapper class

class ISpeechLexiconWord : public COleDispatchDriver
{
public:
	ISpeechLexiconWord() {}		// Calls COleDispatchDriver default constructor
	ISpeechLexiconWord(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
	ISpeechLexiconWord(const ISpeechLexiconWord& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}

// Attributes
public:

// Operations
public:
	long GetLangId();
	long GetType();
	CString GetWord();
	LPDISPATCH GetPronunciations();
};
/////////////////////////////////////////////////////////////////////////////
// ISpeechLexiconPronunciations wrapper class

class ISpeechLexiconPronunciations : public COleDispatchDriver
{
public:
	ISpeechLexiconPronunciations() {}		// Calls COleDispatchDriver default constructor
	ISpeechLexiconPronunciations(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
	ISpeechLexiconPronunciations(const ISpeechLexiconPronunciations& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}

// Attributes
public:

// Operations
public:
	long GetCount();
	LPDISPATCH Item(long Index);
};
/////////////////////////////////////////////////////////////////////////////
// ISpeechLexiconPronunciation wrapper class

class ISpeechLexiconPronunciation : public COleDispatchDriver
{
public:
	ISpeechLexiconPronunciation() {}		// Calls COleDispatchDriver default constructor
	ISpeechLexiconPronunciation(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
	ISpeechLexiconPronunciation(const ISpeechLexiconPronunciation& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}

// Attributes
public:

// Operations
public:
	long GetType();
	long GetLangId();
	long GetPartOfSpeech();
	VARIANT GetPhoneIds();
	CString GetSymbolic();
};
/////////////////////////////////////////////////////////////////////////////
// ISpeechPhraseInfoBuilder wrapper class

class ISpeechPhraseInfoBuilder : public COleDispatchDriver
{
public:
	ISpeechPhraseInfoBuilder() {}		// Calls COleDispatchDriver default constructor
	ISpeechPhraseInfoBuilder(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
	ISpeechPhraseInfoBuilder(const ISpeechPhraseInfoBuilder& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}

// Attributes
public:

// Operations
public:
	LPDISPATCH RestorePhraseFromMemory(VARIANT* PhraseInMemory);
};
/////////////////////////////////////////////////////////////////////////////
// ISpeechPhoneConverter wrapper class

class ISpeechPhoneConverter : public COleDispatchDriver
{
public:
	ISpeechPhoneConverter() {}		// Calls COleDispatchDriver default constructor
	ISpeechPhoneConverter(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
	ISpeechPhoneConverter(const ISpeechPhoneConverter& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}

// Attributes
public:

// Operations
public:
	long GetLanguageId();
	void SetLanguageId(long nNewValue);
	VARIANT PhoneToId(LPCTSTR Phonemes);
	CString IdToPhone(const VARIANT& IdArray);
};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -