📄 adisapi.pas
字号:
property DragMode;
property ParentShowHint;
property PopupMenu;
property ShowHint;
property TabOrder;
property Visible;
property OnDragDrop;
property OnDragOver;
property OnEndDrag;
property OnEnter;
property OnExit;
property OnStartDrag;
property debug : Smallint index 1
read GetSmallintProp write SetSmallintProp stored False;
property Initialized : Smallint index 2
read GetSmallintProp write SetSmallintProp stored False;
property LastHeard : WideString index 6
read GetWideStringProp write SetWideStringProp stored False;
property AutoGain : Integer index 11
read GetIntegerProp write SetIntegerProp stored False;
property Echo : Smallint index 14
read GetSmallintProp write SetSmallintProp stored False;
property EnergyFloor : Integer index 15
read GetIntegerProp write SetIntegerProp stored False;
property Microphone : WideString index 18
read GetWideStringProp write SetWideStringProp stored False;
property Speaker : WideString index 19
read GetWideStringProp write SetWideStringProp stored False;
property RealTime : Integer index 20
read GetIntegerProp write SetIntegerProp stored False;
property Threshold : Integer index 23
read GetIntegerProp write SetIntegerProp stored False;
property CompleteTimeOut : Integer index 26
read GetIntegerProp write SetIntegerProp stored False;
property IncompleteTimeOut : Integer index 27
read GetIntegerProp write SetIntegerProp stored False;
property FileName : WideString index 65
read GetWideStringProp write SetWideStringProp stored False;
property LastError : Integer index 79
read GetIntegerProp write SetIntegerProp stored False;
property SuppressExceptions : Integer index 80
read GetIntegerProp write SetIntegerProp stored False;
property SRMode : Integer index 83
read GetIntegerProp write SetIntegerProp stored False;
property OnClickIn : TDirectSRClickIn
read FOnClickIn write FOnClickIn;
property OnClickOut : TDirectSRClickOut
read FOnClickOut write FOnClickOut;
property OnPhraseFinish : TDirectSRPhraseFinish
read FOnPhraseFinish write FOnPhraseFinish;
property OnPhraseStart : TDirectSRPhraseStart
read FOnPhraseStart write FOnPhraseStart;
property OnBookMark : TDirectSRBookMark
read FOnBookMark write FOnBookMark;
property OnPaused : TNotifyEvent
read FOnPaused write FOnPaused;
property OnPhraseHypothesis : TDirectSRPhraseHypothesis
read FOnPhraseHypothesis write FOnPhraseHypothesis;
property OnReEvaluate : TDirectSRReEvaluate
read FOnReEvaluate write FOnReEvaluate;
property OnTraining : TDirectSRTraining
read FOnTraining write FOnTraining;
property OnUnArchive : TDirectSRUnArchive
read FOnUnArchive write FOnUnArchive;
property OnAttribChanged : TDirectSRAttribChanged
read FOnAttribChanged write FOnAttribChanged;
property OnInterference : TDirectSRInterference
read FOnInterference write FOnInterference;
property OnSound : TDirectSRSound read FOnSound write FOnSound;
property OnUtteranceBegin : TDirectSRUtteranceBegin
read FOnUtteranceBegin write FOnUtteranceBegin;
property OnUtteranceEnd : TDirectSRUtteranceEnd
read FOnUtteranceEnd write FOnUtteranceEnd;
property OnVUMeter : TDirectSRVUMeter read FOnVUMeter write FOnVUMeter;
property OnError : TDirectSRError read FOnError write FOnError;
property Onwarning : TDirectSRwarning read FOnwarning write FOnwarning;
end;
{ _DirectSSEvents }
_DirectSSEvents = dispinterface
['{EEE78597-FE22-11D0-8BEF-0060081841DE}']
procedure ClickIn (x : Integer; y : Integer); dispid 1;
procedure ClickOut (x : Integer; y : Integer); dispid 2;
procedure AudioStart (hi : Integer; lo : Integer); dispid 3;
procedure AudioStop (hi : Integer; lo : Integer); dispid 4;
procedure AttribChanged (which_attribute : Integer); dispid 5;
procedure Visual (timehi : Integer; timelo : Integer; Phoneme : Smallint;
EnginePhoneme : Smallint; hints : Integer;
MouthHeight : Smallint; bMouthWidth : Smallint;
bMouthUpturn : Smallint; bJawOpen : Smallint;
TeethUpperVisible : Smallint; TeethLowerVisible : Smallint;
TonguePosn : Smallint; LipTension : Smallint); dispid 6;
procedure WordPosition (hi : Integer; lo : Integer;
byteoffset : Integer); dispid 7;
procedure BookMark (hi : Integer; lo : Integer; MarkNum : Integer);
dispid 8;
procedure TextDataStarted (hi : Integer; lo : Integer); dispid 9;
procedure TextDataDone (hi : Integer; lo : Integer; Flags : Integer);
dispid 10;
procedure ActiveVoiceStartup (init : Integer; init2 : Integer); dispid 11;
procedure Debugging; dispid 12;
procedure Error (warning : LongWord; const Details:
WideString; const Message : WideString); dispid 13;
procedure warning (warning : LongWord; const Details : WideString;
const Message : WideString); dispid 14;
procedure VisualFuture (milliseconds : Integer; timehi : Integer;
timelo : Integer; Phoneme : Smallint;
EnginePhoneme : Smallint; hints : Integer;
MouthHeight : Smallint; bMouthWidth : Smallint;
bMouthUpturn : Smallint; bJawOpen : Smallint;
TeethUpperVisible : Smallint;
TeethLowerVisible : Smallint;
TonguePosn : Smallint;
LipTension : Smallint); dispid 15;
end;
{ IDirectSS }
IDirectSS = interface (IDispatch)
['{EEE78590-FE22-11D0-8BEF-0060081841DE}']
function Get_debug : Smallint; safecall;
procedure Set_debug (pVal : Smallint); safecall;
function Get_Initialized : Smallint; safecall;
procedure Set_Initialized (pVal : Smallint); safecall;
procedure Speak (const text : WideString); safecall;
function Get_Pitch : Integer; safecall;
procedure Set_Pitch (pVal : Integer); safecall;
function Get_MaxPitch : Integer; safecall;
procedure Set_MaxPitch (pVal : Integer); safecall;
function Get_MinPitch : Integer; safecall;
procedure Set_MinPitch (pVal : Integer); safecall;
function Get_Speed : Integer; safecall;
procedure Set_Speed (pVal : Integer); safecall;
function Get_MaxSpeed : Integer; safecall;
procedure Set_MaxSpeed (pVal : Integer); safecall;
function Get_MinSpeed : Integer; safecall;
procedure Set_MinSpeed (pVal : Integer); safecall;
function Get_VolumeRight : Integer; safecall;
procedure Set_VolumeRight (pVal : Integer); safecall;
function Get_MinVolumeRight : Integer; safecall;
procedure Set_MinVolumeRight (pVal : Integer); safecall;
function Get_MaxVolumeRight : Integer; safecall;
procedure Set_MaxVolumeRight (pVal : Integer); safecall;
procedure Select (index : SYSINT); safecall;
function EngineID (index : SYSINT) : WideString; safecall;
function Get_CountEngines : Integer; safecall;
function ModeName (index : SYSINT) : WideString; safecall;
function MfgName (index : SYSINT) : WideString; safecall;
function ProductName (index : SYSINT) : WideString; safecall;
function ModeID (index : SYSINT) : WideString; safecall;
function Speaker (index : SYSINT) : WideString; safecall;
function Style (index : SYSINT) : WideString; safecall;
function Gender (index : SYSINT) : Integer; safecall;
function Age (index : SYSINT) : Integer; safecall;
function Features (index : SYSINT) : Integer; safecall;
function Interfaces (index : SYSINT) : Integer; safecall;
function EngineFeatures (index : SYSINT) : Integer; safecall;
function LanguageID (index : SYSINT) : Integer; safecall;
function Dialect (index : SYSINT) : WideString; safecall;
function Get_RealTime : Integer; safecall;
procedure Set_RealTime (pVal : Integer); safecall;
function Get_MaxRealTime : Integer; safecall;
function Get_MinRealTime : Integer; safecall;
procedure Set_MinRealTime (pVal : Integer); safecall;
procedure AudioPause; safecall;
procedure AudioReset; safecall;
procedure AudioResume; safecall;
procedure Inject (const value : WideString); safecall;
function Get_Tagged : Integer; safecall;
procedure Set_Tagged (pVal : Integer); safecall;
function Phonemes (charset : Integer; Flags : Integer;
const input : WideString) : WideString; safecall;
procedure PosnGet (var hi : Integer; var lo : Integer); safecall;
procedure TextData (characterset : Integer; Flags : Integer;
const text : WideString); safecall;
procedure InitAudioDestMM (deviceid : Integer); safecall;
procedure AboutDlg (hWnd : Integer; const title : WideString); safecall;
procedure GeneralDlg (hWnd : Integer; const title : WideString); safecall;
procedure LexiconDlg (hWnd : Integer; const title : WideString); safecall;
procedure TranslateDlg (hWnd : Integer; const title : WideString); safecall;
function FindEngine (const EngineID : WideString;
const MfgName : WideString;
const ProductName : WideString;
const ModeID : WideString;
const ModeName : WideString;
LanguageID : Integer; const Dialect : WideString;
const Speaker : WideString; const Style : WideString;
Gender : Integer; Age : Integer; Features : Integer;
Interfaces : Integer; EngineFeatures : Integer;
RankEngineID : Integer; RankMfgName : Integer;
RankProductName : Integer; RankModeID : Integer;
RankModeName : Integer; RankLanguage : Integer;
RankDialect : Integer; RankSpeaker : Integer;
RankStyle : Integer; RankGender : Integer;
RankAge : Integer; RankFeatures : Integer;
RankInterfaces : Integer;
RankEngineFeatures : Integer) : Integer; safecall;
function Get_MouthHeight : Smallint; safecall;
procedure Set_MouthHeight (pVal : Smallint); safecall;
function Get_MouthWidth : Smallint; safecall;
procedure Set_MouthWidth (pVal : Smallint); safecall;
function Get_MouthUpturn : Smallint; safecall;
procedure Set_MouthUpturn (pVal : Smallint); safecall;
function Get_JawOpen : Smallint; safecall;
procedure Set_JawOpen (pVal : Smallint); safecall;
function Get_TeethUpperVisible : Smallint; safecall;
procedure Set_TeethUpperVisible (pVal : Smallint); safecall;
function Get_TeethLowerVisible : Smallint; safecall;
procedure Set_TeethLowerVisible (pVal : Smallint); safecall;
function Get_TonguePosn : Smallint; safecall;
procedure Set_TonguePosn (pVal : Smallint); safecall;
function Get_LipTension : Smallint; safecall;
procedure Set_LipTension (pVal : Smallint); safecall;
function Get_CallBacksEnabled : Smallint; safecall;
procedure Set_CallBacksEnabled (pVal : Smallint); safecall;
function Get_MouthEnabled : Smallint; safecall;
procedure Set_MouthEnabled (pVal : Smallint); safecall;
function Get_LastError : Integer; safecall;
procedure Set_LastError (pVal : Integer); safecall;
function Get_SuppressExceptions : Smallint; safecall;
procedure Set_SuppressExceptions (pVal : Smallint); safecall;
function Get_Speaking : Smallint; safecall;
procedure Set_Speaking (pVal : Smallint); safecall;
function Get_LastWordPosition : Integer; safecall;
procedure Set_LastWordPosition (pVal : Integer); safecall;
function Get_LipType : Smallint; safecall;
procedure Set_LipType (pVal : Smallint); safecall;
procedure GetPronunciation (charset : Integer; const text : WideString;
Sense : Integer; var Pronounce : WideString;
var PartOfSpeech : Integer;
var EngineInfo : WideString); safecall;
procedure InitAudioDestDirect (direct : Integer); safecall;
function Get_Sayit : WideString; safecall;
procedure Set_Sayit (const newVal : WideString); safecall;
procedure InitAudioDestObject (object_ : Integer); safecall;
function Get_FileName : WideString; safecall;
procedure Set_FileName (const pVal : WideString); safecall;
function Get_CurrentMode : Integer; safecall;
procedure Set_CurrentMode (pVal : Integer); safecall;
function Get_hWnd : Integer; safecall;
function Find (const RankList : WideString) : Integer; safecall;
function Get_VolumeLeft : Integer; safecall;
procedure Set_VolumeLeft (pVal : Integer); safecall;
function Get_MinVolumeLeft : Integer; safeca
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -