-
Notifications
You must be signed in to change notification settings - Fork 2
/
SpeechLib_TLB.pas
1951 lines (1776 loc) · 83.9 KB
/
SpeechLib_TLB.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
unit SpeechLib_TLB;
// ************************************************************************ //
// Type Lib: C:\WINDOWS\System32\Speech\Common\sapi.dll (1)
// LIBID: {C866CA3A-32F7-11D2-9602-00C04F8EE628}
// ************************************************************************ //
// Modified by ichin 2024-05-23 ¸ñ ¿ÀÀü 6:18:32
{ Partial import of sapi.dll type library }
{$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers.
{$WARN SYMBOL_PLATFORM OFF}
{$WRITEABLECONST ON}
{$VARPROPSETTER ON}
{$ALIGN 4}
interface
uses
Winapi.Windows,
System.Classes,
System.Variants,
System.Win.StdVCL,
Vcl.Graphics,
Vcl.OleServer,
Winapi.ActiveX;
// *********************************************************************//
// GUIDS declared in the TypeLibrary. Following prefixes are used:
// Type Libraries : LIBID_xxxx
// CoClasses : CLASS_xxxx
// DISPInterfaces : DIID_xxxx
// Non-DISP interfaces: IID_xxxx
// *********************************************************************//
const
// TypeLibrary Major and minor versions
SpeechLibMajorVersion = 5;
SpeechLibMinorVersion = 4;
LIBID_SpeechLib: TGUID = '{C866CA3A-32F7-11D2-9602-00C04F8EE628}';
IID_ISpeechDataKey: TGUID = '{CE17C09B-4EFA-44D5-A4C9-59D9585AB0CD}';
IID_ISpeechObjectToken: TGUID = '{C74A3ADC-B727-4500-A84A-B526721C8B8C}';
IID_ISpeechObjectTokenCategory: TGUID = '{CA7EAC50-2D01-4145-86D4-5AE7D70F4469}';
IID_ISpeechObjectTokens: TGUID = '{9285B776-2E7B-4BC0-B53E-580EB6FA967F}';
IID_ISpeechWaveFormatEx: TGUID = '{7A1EF0D5-1581-4741-88E4-209A49F11A10}';
IID_ISpeechBaseStream: TGUID = '{6450336F-7D49-4CED-8097-49D6DEE37294}';
IID_ISpeechVoice: TGUID = '{269316D8-57BD-11D2-9EEE-00C04F797396}';
IID_ISpeechVoiceStatus: TGUID = '{8BE47B07-57F6-11D2-9EEE-00C04F797396}';
DIID__ISpeechVoiceEvents: TGUID = '{A372ACD1-3BEF-4BBD-8FFB-CB3E2B416AF8}';
IID_ISpNotifySink: TGUID = '{259684DC-37C3-11D2-9603-00C04F8EE628}';
CLASS_SpNotifyTranslator: TGUID = '{E2AE5372-5D40-11D2-960E-00C04F8EE628}';
IID_ISpDataKey: TGUID = '{14056581-E16C-11D2-BB90-00C04F8EE6C0}';
IID_ISpObjectTokenCategory: TGUID = '{2D3D3845-39AF-4850-BBF9-40B49780011D}';
CLASS_SpObjectTokenCategory: TGUID = '{A910187F-0C7A-45AC-92CC-59EDAFB77B53}';
IID_IEnumSpObjectTokens: TGUID = '{06B64F9E-7FDA-11D2-B4F2-00C04F797396}';
IID_ISpObjectToken: TGUID = '{14056589-E16C-11D2-BB90-00C04F8EE6C0}';
CLASS_SpObjectToken: TGUID = '{EF411752-3736-4CB4-9C8C-8EF4CCB58EFE}';
IID_IStream: TGUID = '{0000000C-0000-0000-C000-000000000046}';
IID_ISpNotifySource: TGUID = '{5EFF4AEF-8487-11D2-961C-00C04F8EE628}';
IID_ISpEventSource: TGUID = '{BE7A9CCE-5F9E-11D2-960F-00C04F8EE628}';
IID_ISpEventSink: TGUID = '{BE7A9CC9-5F9E-11D2-960F-00C04F8EE628}';
IID_ISpObjectWithToken: TGUID = '{5B559F40-E952-11D2-BB91-00C04F8EE6C0}';
CLASS_SpStream: TGUID = '{715D9C59-4442-11D2-9605-00C04F8EE628}';
IID_ISpVoice: TGUID = '{6C44DF74-72B9-4992-A1EC-EF996E0422D4}';
CLASS_SpVoice: TGUID = '{96749377-3391-11D2-9EE3-00C04F797396}';
CLASS_SpAudioFormat: TGUID = '{9EF96870-E160-4792-820D-48CF0649E4EC}';
CLASS_SpWaveFormatEx: TGUID = '{C79A574C-63BE-44B9-801F-283F87F898BE}';
CLASS_SpCustomStream: TGUID = '{8DBEF13F-1948-4AA8-8CF0-048EEBED95D8}';
CLASS_SpFileStream: TGUID = '{947812B3-2AE1-4644-BA86-9E90DED7EC91}';
CLASS_SpMemoryStream: TGUID = '{5FB7EF7D-DFF4-468A-B6B7-2FCBD188F994}';
IID_IEnumString: TGUID = '{00000101-0000-0000-C000-000000000046}';
// *********************************************************************//
// Declaration of Enumerations defined in Type Library
// *********************************************************************//
// Constants for enum SpeechDataKeyLocation
type
SpeechDataKeyLocation = TOleEnum;
const
SDKLDefaultLocation = $00000000;
SDKLCurrentUser = $00000001;
SDKLLocalMachine = $00000002;
SDKLCurrentConfig = $00000005;
// Constants for enum SpeechTokenContext
type
SpeechTokenContext = TOleEnum;
const
STCInprocServer = $00000001;
STCInprocHandler = $00000002;
STCLocalServer = $00000004;
STCRemoteServer = $00000010;
STCAll = $00000017;
// Constants for enum SpeechTokenShellFolder
type
SpeechTokenShellFolder = TOleEnum;
const
STSF_AppData = $0000001A;
STSF_LocalAppData = $0000001C;
STSF_CommonAppData = $00000023;
STSF_FlagCreate = $00008000;
// Constants for enum SpeechAudioState
type
SpeechAudioState = TOleEnum;
const
SASClosed = $00000000;
SASStop = $00000001;
SASPause = $00000002;
SASRun = $00000003;
// Constants for enum SpeechAudioFormatType
type
SpeechAudioFormatType = TOleEnum;
const
SAFTDefault = $FFFFFFFF;
SAFTNoAssignedFormat = $00000000;
SAFTText = $00000001;
SAFTNonStandardFormat = $00000002;
SAFTExtendedAudioFormat = $00000003;
SAFT8kHz8BitMono = $00000004;
SAFT8kHz8BitStereo = $00000005;
SAFT8kHz16BitMono = $00000006;
SAFT8kHz16BitStereo = $00000007;
SAFT11kHz8BitMono = $00000008;
SAFT11kHz8BitStereo = $00000009;
SAFT11kHz16BitMono = $0000000A;
SAFT11kHz16BitStereo = $0000000B;
SAFT12kHz8BitMono = $0000000C;
SAFT12kHz8BitStereo = $0000000D;
SAFT12kHz16BitMono = $0000000E;
SAFT12kHz16BitStereo = $0000000F;
SAFT16kHz8BitMono = $00000010;
SAFT16kHz8BitStereo = $00000011;
SAFT16kHz16BitMono = $00000012;
SAFT16kHz16BitStereo = $00000013;
SAFT22kHz8BitMono = $00000014;
SAFT22kHz8BitStereo = $00000015;
SAFT22kHz16BitMono = $00000016;
SAFT22kHz16BitStereo = $00000017;
SAFT24kHz8BitMono = $00000018;
SAFT24kHz8BitStereo = $00000019;
SAFT24kHz16BitMono = $0000001A;
SAFT24kHz16BitStereo = $0000001B;
SAFT32kHz8BitMono = $0000001C;
SAFT32kHz8BitStereo = $0000001D;
SAFT32kHz16BitMono = $0000001E;
SAFT32kHz16BitStereo = $0000001F;
SAFT44kHz8BitMono = $00000020;
SAFT44kHz8BitStereo = $00000021;
SAFT44kHz16BitMono = $00000022;
SAFT44kHz16BitStereo = $00000023;
SAFT48kHz8BitMono = $00000024;
SAFT48kHz8BitStereo = $00000025;
SAFT48kHz16BitMono = $00000026;
SAFT48kHz16BitStereo = $00000027;
SAFTTrueSpeech_8kHz1BitMono = $00000028;
SAFTCCITT_ALaw_8kHzMono = $00000029;
SAFTCCITT_ALaw_8kHzStereo = $0000002A;
SAFTCCITT_ALaw_11kHzMono = $0000002B;
SAFTCCITT_ALaw_11kHzStereo = $0000002C;
SAFTCCITT_ALaw_22kHzMono = $0000002D;
SAFTCCITT_ALaw_22kHzStereo = $0000002E;
SAFTCCITT_ALaw_44kHzMono = $0000002F;
SAFTCCITT_ALaw_44kHzStereo = $00000030;
SAFTCCITT_uLaw_8kHzMono = $00000031;
SAFTCCITT_uLaw_8kHzStereo = $00000032;
SAFTCCITT_uLaw_11kHzMono = $00000033;
SAFTCCITT_uLaw_11kHzStereo = $00000034;
SAFTCCITT_uLaw_22kHzMono = $00000035;
SAFTCCITT_uLaw_22kHzStereo = $00000036;
SAFTCCITT_uLaw_44kHzMono = $00000037;
SAFTCCITT_uLaw_44kHzStereo = $00000038;
SAFTADPCM_8kHzMono = $00000039;
SAFTADPCM_8kHzStereo = $0000003A;
SAFTADPCM_11kHzMono = $0000003B;
SAFTADPCM_11kHzStereo = $0000003C;
SAFTADPCM_22kHzMono = $0000003D;
SAFTADPCM_22kHzStereo = $0000003E;
SAFTADPCM_44kHzMono = $0000003F;
SAFTADPCM_44kHzStereo = $00000040;
SAFTGSM610_8kHzMono = $00000041;
SAFTGSM610_11kHzMono = $00000042;
SAFTGSM610_22kHzMono = $00000043;
SAFTGSM610_44kHzMono = $00000044;
// Constants for enum SpeechStreamSeekPositionType
type
SpeechStreamSeekPositionType = TOleEnum;
const
SSSPTRelativeToStart = $00000000;
SSSPTRelativeToCurrentPosition = $00000001;
SSSPTRelativeToEnd = $00000002;
// Constants for enum SpeechStreamFileMode
type
SpeechStreamFileMode = TOleEnum;
const
SSFMOpenForRead = $00000000;
SSFMOpenReadWrite = $00000001;
SSFMCreate = $00000002;
SSFMCreateForWrite = $00000003;
// Constants for enum SpeechRunState
type
SpeechRunState = TOleEnum;
const
SRSEDone = $00000001;
SRSEIsSpeaking = $00000002;
// Constants for enum SpeechVoiceEvents
type
SpeechVoiceEvents = TOleEnum;
const
SVEStartInputStream = $00000002;
SVEEndInputStream = $00000004;
SVEVoiceChange = $00000008;
SVEBookmark = $00000010;
SVEWordBoundary = $00000020;
SVEPhoneme = $00000040;
SVESentenceBoundary = $00000080;
SVEViseme = $00000100;
SVEAudioLevel = $00000200;
SVEPrivate = $00008000;
SVEAllEvents = $000083FE;
// Constants for enum SpeechVoicePriority
type
SpeechVoicePriority = TOleEnum;
const
SVPNormal = $00000000;
SVPAlert = $00000001;
SVPOver = $00000002;
// Constants for enum SpeechVoiceSpeakFlags
type
SpeechVoiceSpeakFlags = TOleEnum;
const
SVSFDefault = $00000000;
SVSFlagsAsync = $00000001;
SVSFPurgeBeforeSpeak = $00000002;
SVSFIsFilename = $00000004;
SVSFIsXML = $00000008;
SVSFIsNotXML = $00000010;
SVSFPersistXML = $00000020;
SVSFNLPSpeakPunc = $00000040;
SVSFParseSapi = $00000080;
SVSFParseSsml = $00000100;
SVSFParseAutodetect = $00000000;
SVSFNLPMask = $00000040;
SVSFParseMask = $00000180;
SVSFVoiceMask = $000001FF;
SVSFUnusedFlags = $FFFFFE00;
// Constants for enum SpeechVisemeFeature
type
SpeechVisemeFeature = TOleEnum;
const
SVF_None = $00000000;
SVF_Stressed = $00000001;
SVF_Emphasis = $00000002;
// Constants for enum SpeechVisemeType
type
SpeechVisemeType = TOleEnum;
const
SVP_0 = $00000000;
SVP_1 = $00000001;
SVP_2 = $00000002;
SVP_3 = $00000003;
SVP_4 = $00000004;
SVP_5 = $00000005;
SVP_6 = $00000006;
SVP_7 = $00000007;
SVP_8 = $00000008;
SVP_9 = $00000009;
SVP_10 = $0000000A;
SVP_11 = $0000000B;
SVP_12 = $0000000C;
SVP_13 = $0000000D;
SVP_14 = $0000000E;
SVP_15 = $0000000F;
SVP_16 = $00000010;
SVP_17 = $00000011;
SVP_18 = $00000012;
SVP_19 = $00000013;
SVP_20 = $00000014;
SVP_21 = $00000015;
// Constants for enum DISPID_SpeechDataKey
type
DISPID_SpeechDataKey = TOleEnum;
const
DISPID_SDKSetBinaryValue = $00000001;
DISPID_SDKGetBinaryValue = $00000002;
DISPID_SDKSetStringValue = $00000003;
DISPID_SDKGetStringValue = $00000004;
DISPID_SDKSetLongValue = $00000005;
DISPID_SDKGetlongValue = $00000006;
DISPID_SDKOpenKey = $00000007;
DISPID_SDKCreateKey = $00000008;
DISPID_SDKDeleteKey = $00000009;
DISPID_SDKDeleteValue = $0000000A;
DISPID_SDKEnumKeys = $0000000B;
DISPID_SDKEnumValues = $0000000C;
// Constants for enum DISPID_SpeechObjectToken
type
DISPID_SpeechObjectToken = TOleEnum;
const
DISPID_SOTId = $00000001;
DISPID_SOTDataKey = $00000002;
DISPID_SOTCategory = $00000003;
DISPID_SOTGetDescription = $00000004;
DISPID_SOTSetId = $00000005;
DISPID_SOTGetAttribute = $00000006;
DISPID_SOTCreateInstance = $00000007;
DISPID_SOTRemove = $00000008;
DISPID_SOTGetStorageFileName = $00000009;
DISPID_SOTRemoveStorageFileName = $0000000A;
DISPID_SOTIsUISupported = $0000000B;
DISPID_SOTDisplayUI = $0000000C;
DISPID_SOTMatchesAttributes = $0000000D;
// Constants for enum DISPID_SpeechObjectTokens
type
DISPID_SpeechObjectTokens = TOleEnum;
const
DISPID_SOTsCount = $00000001;
DISPID_SOTsItem = $00000000;
DISPID_SOTs_NewEnum = $FFFFFFFC;
// Constants for enum DISPID_SpeechObjectTokenCategory
type
DISPID_SpeechObjectTokenCategory = TOleEnum;
const
DISPID_SOTCId = $00000001;
DISPID_SOTCDefault = $00000002;
DISPID_SOTCSetId = $00000003;
DISPID_SOTCGetDataKey = $00000004;
DISPID_SOTCEnumerateTokens = $00000005;
// Constants for enum SPDATAKEYLOCATION
type
SPDATAKEYLOCATION = TOleEnum;
const
SPDKL_DefaultLocation = $00000000;
SPDKL_CurrentUser = $00000001;
SPDKL_LocalMachine = $00000002;
SPDKL_CurrentConfig = $00000005;
// Constants for enum SPFILEMODE
type
SPFILEMODE = TOleEnum;
const
SPFM_OPEN_READONLY = $00000000;
SPFM_OPEN_READWRITE = $00000001;
SPFM_CREATE = $00000002;
SPFM_CREATE_ALWAYS = $00000003;
SPFM_NUM_MODES = $00000004;
// Constants for enum SPVISEMES
type
SPVISEMES = TOleEnum;
const
SP_VISEME_0 = $00000000;
SP_VISEME_1 = $00000001;
SP_VISEME_2 = $00000002;
SP_VISEME_3 = $00000003;
SP_VISEME_4 = $00000004;
SP_VISEME_5 = $00000005;
SP_VISEME_6 = $00000006;
SP_VISEME_7 = $00000007;
SP_VISEME_8 = $00000008;
SP_VISEME_9 = $00000009;
SP_VISEME_10 = $0000000A;
SP_VISEME_11 = $0000000B;
SP_VISEME_12 = $0000000C;
SP_VISEME_13 = $0000000D;
SP_VISEME_14 = $0000000E;
SP_VISEME_15 = $0000000F;
SP_VISEME_16 = $00000010;
SP_VISEME_17 = $00000011;
SP_VISEME_18 = $00000012;
SP_VISEME_19 = $00000013;
SP_VISEME_20 = $00000014;
SP_VISEME_21 = $00000015;
// Constants for enum SPVPRIORITY
type
SPVPRIORITY = TOleEnum;
const
SPVPRI_NORMAL = $00000000;
SPVPRI_ALERT = $00000001;
SPVPRI_OVER = $00000002;
// Constants for enum SPEVENTENUM
type
SPEVENTENUM = TOleEnum;
const
SPEI_UNDEFINED = $00000000;
SPEI_START_INPUT_STREAM = $00000001;
SPEI_END_INPUT_STREAM = $00000002;
SPEI_VOICE_CHANGE = $00000003;
SPEI_TTS_BOOKMARK = $00000004;
SPEI_WORD_BOUNDARY = $00000005;
SPEI_PHONEME = $00000006;
SPEI_SENTENCE_BOUNDARY = $00000007;
SPEI_VISEME = $00000008;
SPEI_TTS_AUDIO_LEVEL = $00000009;
SPEI_TTS_PRIVATE = $0000000F;
SPEI_MIN_TTS = $00000001;
SPEI_MAX_TTS = $0000000F;
SPEI_END_SR_STREAM = $00000022;
SPEI_SOUND_START = $00000023;
SPEI_SOUND_END = $00000024;
SPEI_PHRASE_START = $00000025;
SPEI_RECOGNITION = $00000026;
SPEI_HYPOTHESIS = $00000027;
SPEI_SR_BOOKMARK = $00000028;
SPEI_PROPERTY_NUM_CHANGE = $00000029;
SPEI_PROPERTY_STRING_CHANGE = $0000002A;
SPEI_FALSE_RECOGNITION = $0000002B;
SPEI_INTERFERENCE = $0000002C;
SPEI_REQUEST_UI = $0000002D;
SPEI_RECO_STATE_CHANGE = $0000002E;
SPEI_ADAPTATION = $0000002F;
SPEI_START_SR_STREAM = $00000030;
SPEI_RECO_OTHER_CONTEXT = $00000031;
SPEI_SR_AUDIO_LEVEL = $00000032;
SPEI_SR_RETAINEDAUDIO = $00000033;
SPEI_SR_PRIVATE = $00000034;
SPEI_ACTIVE_CATEGORY_CHANGED = $00000035;
SPEI_RESERVED5 = $00000036;
SPEI_RESERVED6 = $00000037;
SPEI_MIN_SR = $00000022;
SPEI_MAX_SR = $00000037;
SPEI_RESERVED1 = $0000001E;
SPEI_RESERVED2 = $00000021;
SPEI_RESERVED3 = $0000003F;
type
// *********************************************************************//
// Forward declaration of types defined in TypeLibrary
// *********************************************************************//
ISpeechDataKey = interface;
ISpeechDataKeyDisp = dispinterface;
ISpeechObjectToken = interface;
ISpeechObjectTokenDisp = dispinterface;
ISpeechObjectTokenCategory = interface;
ISpeechObjectTokenCategoryDisp = dispinterface;
ISpeechObjectTokens = interface;
ISpeechObjectTokensDisp = dispinterface;
ISpeechWaveFormatEx = interface;
ISpeechBaseStream = interface;
ISpeechVoice = interface;
ISpeechVoiceDisp = dispinterface;
ISpeechVoiceStatus = interface;
ISpeechVoiceStatusDisp = dispinterface;
_ISpeechVoiceEvents = dispinterface;
ISpNotifySink = interface;
ISpDataKey = interface;
ISpObjectTokenCategory = interface;
IEnumSpObjectTokens = interface;
ISpObjectToken = interface;
IStream = interface;
ISpStreamFormat = interface;
ISpStreamFormatConverter = interface;
ISpNotifySource = interface;
ISpEventSource = interface;
ISpEventSink = interface;
ISpObjectWithToken = interface;
ISpStream = interface;
ISpVoice = interface;
// *********************************************************************//
// Declaration of CoClasses defined in Type Library
// (NOTE: Here we map each CoClass to its Default Interface)
// *********************************************************************//
SpObjectTokenCategory = ISpeechObjectTokenCategory;
SpObjectToken = ISpeechObjectToken;
SpStream = ISpStream;
SpVoice = ISpeechVoice;
SpWaveFormatEx = ISpeechWaveFormatEx;
// *********************************************************************//
// Declaration of structures, unions and aliases.
// *********************************************************************//
wireHWND = ^_RemotableHandle;
PPPrivateAlias1 = ^Pointer; {*}
PUserType2 = ^WAVEFORMATEX; {*}
__MIDL_IWinTypes_0009 = record
case Integer of
0: (hInproc: Integer);
1: (hRemote: Integer);
end;
_RemotableHandle = record
fContext: Integer;
u: __MIDL_IWinTypes_0009;
end;
UINT_PTR = LongWord;
LONG_PTR = Integer;
{$ALIGN 8}
_LARGE_INTEGER = record
QuadPart: Int64;
end;
_ULARGE_INTEGER = record
QuadPart: Largeuint;
end;
{$ALIGN 4}
_FILETIME = record
dwLowDateTime: LongWord;
dwHighDateTime: LongWord;
end;
{$ALIGN 8}
tagSTATSTG = record
pwcsName: PWideChar;
type_: LongWord;
cbSize: _ULARGE_INTEGER;
mtime: _FILETIME;
ctime: _FILETIME;
atime: _FILETIME;
grfMode: LongWord;
grfLocksSupported: LongWord;
clsid: TGUID;
grfStateBits: LongWord;
reserved: LongWord;
end;
{$ALIGN 4}
WAVEFORMATEX = record
wFormatTag: Word;
nChannels: Word;
nSamplesPerSec: LongWord;
nAvgBytesPerSec: LongWord;
nBlockAlign: Word;
wBitsPerSample: Word;
cbSize: Word;
end;
{$ALIGN 8}
SPEVENT = record
eEventId: Word;
elParamType: Word;
ulStreamNum: LongWord;
ullAudioStreamOffset: Largeuint;
wParam: UINT_PTR;
lParam: LONG_PTR;
end;
SPEVENTSOURCEINFO = record
ullEventInterest: Largeuint;
ullQueuedInterest: Largeuint;
ulCount: LongWord;
end;
{$ALIGN 4}
SPVOICESTATUS = record
ulCurrentStream: LongWord;
ulLastStreamQueued: LongWord;
hrLastResult: HResult;
dwRunningState: LongWord;
ulInputWordPos: LongWord;
ulInputWordLen: LongWord;
ulInputSentPos: LongWord;
ulInputSentLen: LongWord;
lBookmarkId: Integer;
PhonemeId: Word;
VisemeId: SPVISEMES;
dwReserved1: LongWord;
dwReserved2: LongWord;
end;
{$ALIGN 2}
__MIDL___MIDL_itf_sapi_0000_0020_0002 = record
bType: Byte;
bReserved: Byte;
usArrayIndex: Word;
end;
{$ALIGN 4}
__MIDL___MIDL_itf_sapi_0000_0020_0001 = record
case Integer of
0: (ulId: LongWord);
1: (__MIDL____MIDL_itf_sapi_0000_00200000: __MIDL___MIDL_itf_sapi_0000_0020_0002);
end;
// *********************************************************************//
// Interface: ISpeechDataKey
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {CE17C09B-4EFA-44D5-A4C9-59D9585AB0CD}
// *********************************************************************//
ISpeechDataKey = interface(IDispatch)
['{CE17C09B-4EFA-44D5-A4C9-59D9585AB0CD}']
procedure SetBinaryValue(const ValueName: WideString; Value: OleVariant); safecall;
function GetBinaryValue(const ValueName: WideString): OleVariant; safecall;
procedure SetStringValue(const ValueName: WideString; const Value: WideString); safecall;
function GetStringValue(const ValueName: WideString): WideString; safecall;
procedure SetLongValue(const ValueName: WideString; Value: Integer); safecall;
function GetLongValue(const ValueName: WideString): Integer; safecall;
function OpenKey(const SubKeyName: WideString): ISpeechDataKey; safecall;
function CreateKey(const SubKeyName: WideString): ISpeechDataKey; safecall;
procedure DeleteKey(const SubKeyName: WideString); safecall;
procedure DeleteValue(const ValueName: WideString); safecall;
function EnumKeys(Index: Integer): WideString; safecall;
function EnumValues(Index: Integer): WideString; safecall;
end;
// *********************************************************************//
// DispIntf: ISpeechDataKeyDisp
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {CE17C09B-4EFA-44D5-A4C9-59D9585AB0CD}
// *********************************************************************//
ISpeechDataKeyDisp = dispinterface
['{CE17C09B-4EFA-44D5-A4C9-59D9585AB0CD}']
procedure SetBinaryValue(const ValueName: WideString; Value: OleVariant); dispid 1;
function GetBinaryValue(const ValueName: WideString): OleVariant; dispid 2;
procedure SetStringValue(const ValueName: WideString; const Value: WideString); dispid 3;
function GetStringValue(const ValueName: WideString): WideString; dispid 4;
procedure SetLongValue(const ValueName: WideString; Value: Integer); dispid 5;
function GetLongValue(const ValueName: WideString): Integer; dispid 6;
function OpenKey(const SubKeyName: WideString): ISpeechDataKey; dispid 7;
function CreateKey(const SubKeyName: WideString): ISpeechDataKey; dispid 8;
procedure DeleteKey(const SubKeyName: WideString); dispid 9;
procedure DeleteValue(const ValueName: WideString); dispid 10;
function EnumKeys(Index: Integer): WideString; dispid 11;
function EnumValues(Index: Integer): WideString; dispid 12;
end;
// *********************************************************************//
// Interface: ISpeechObjectToken
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {C74A3ADC-B727-4500-A84A-B526721C8B8C}
// *********************************************************************//
ISpeechObjectToken = interface(IDispatch)
['{C74A3ADC-B727-4500-A84A-B526721C8B8C}']
function Get_Id: WideString; safecall;
function Get_DataKey: ISpeechDataKey; safecall;
function Get_Category: ISpeechObjectTokenCategory; safecall;
function GetDescription(Locale: Integer): WideString; safecall;
procedure SetId(const Id: WideString; const CategoryID: WideString; CreateIfNotExist: WordBool); safecall;
function GetAttribute(const AttributeName: WideString): WideString; safecall;
function CreateInstance(const pUnkOuter: IUnknown; ClsContext: SpeechTokenContext): IUnknown; safecall;
procedure Remove(const ObjectStorageCLSID: WideString); safecall;
function GetStorageFileName(const ObjectStorageCLSID: WideString; const KeyName: WideString; const FileName: WideString; Folder: SpeechTokenShellFolder): WideString; safecall;
procedure RemoveStorageFileName(const ObjectStorageCLSID: WideString; const KeyName: WideString; DeleteFile: WordBool); safecall;
function IsUISupported(const TypeOfUI: WideString; const ExtraData: OleVariant; const Object_: IUnknown): WordBool; safecall;
procedure DisplayUI(hWnd: Integer; const Title: WideString; const TypeOfUI: WideString; const ExtraData: OleVariant; const Object_: IUnknown); safecall;
function MatchesAttributes(const Attributes: WideString): WordBool; safecall;
property Id: WideString read Get_Id;
property DataKey: ISpeechDataKey read Get_DataKey;
property Category: ISpeechObjectTokenCategory read Get_Category;
end;
// *********************************************************************//
// DispIntf: ISpeechObjectTokenDisp
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {C74A3ADC-B727-4500-A84A-B526721C8B8C}
// *********************************************************************//
ISpeechObjectTokenDisp = dispinterface
['{C74A3ADC-B727-4500-A84A-B526721C8B8C}']
property Id: WideString readonly dispid 1;
property DataKey: ISpeechDataKey readonly dispid 2;
property Category: ISpeechObjectTokenCategory readonly dispid 3;
function GetDescription(Locale: Integer): WideString; dispid 4;
procedure SetId(const Id: WideString; const CategoryID: WideString; CreateIfNotExist: WordBool); dispid 5;
function GetAttribute(const AttributeName: WideString): WideString; dispid 6;
function CreateInstance(const pUnkOuter: IUnknown; ClsContext: SpeechTokenContext): IUnknown; dispid 7;
procedure Remove(const ObjectStorageCLSID: WideString); dispid 8;
function GetStorageFileName(const ObjectStorageCLSID: WideString; const KeyName: WideString; const FileName: WideString; Folder: SpeechTokenShellFolder): WideString; dispid 9;
procedure RemoveStorageFileName(const ObjectStorageCLSID: WideString; const KeyName: WideString; DeleteFile: WordBool); dispid 10;
function IsUISupported(const TypeOfUI: WideString; const ExtraData: OleVariant; const Object_: IUnknown): WordBool; dispid 11;
procedure DisplayUI(hWnd: Integer; const Title: WideString; const TypeOfUI: WideString; const ExtraData: OleVariant; const Object_: IUnknown); dispid 12;
function MatchesAttributes(const Attributes: WideString): WordBool; dispid 13;
end;
// *********************************************************************//
// Interface: ISpeechObjectTokenCategory
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {CA7EAC50-2D01-4145-86D4-5AE7D70F4469}
// *********************************************************************//
ISpeechObjectTokenCategory = interface(IDispatch)
['{CA7EAC50-2D01-4145-86D4-5AE7D70F4469}']
function Get_Id: WideString; safecall;
procedure Set_Default(const TokenId: WideString); safecall;
function Get_Default: WideString; safecall;
procedure SetId(const Id: WideString; CreateIfNotExist: WordBool); safecall;
function GetDataKey(Location: SpeechDataKeyLocation): ISpeechDataKey; safecall;
function EnumerateTokens(const RequiredAttributes: WideString; const OptionalAttributes: WideString): ISpeechObjectTokens; safecall;
property Id: WideString read Get_Id;
property Default: WideString read Get_Default write Set_Default;
end;
// *********************************************************************//
// DispIntf: ISpeechObjectTokenCategoryDisp
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {CA7EAC50-2D01-4145-86D4-5AE7D70F4469}
// *********************************************************************//
ISpeechObjectTokenCategoryDisp = dispinterface
['{CA7EAC50-2D01-4145-86D4-5AE7D70F4469}']
property Id: WideString readonly dispid 1;
property Default: WideString dispid 2;
procedure SetId(const Id: WideString; CreateIfNotExist: WordBool); dispid 3;
function GetDataKey(Location: SpeechDataKeyLocation): ISpeechDataKey; dispid 4;
function EnumerateTokens(const RequiredAttributes: WideString; const OptionalAttributes: WideString): ISpeechObjectTokens; dispid 5;
end;
// *********************************************************************//
// Interface: ISpeechObjectTokens
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {9285B776-2E7B-4BC0-B53E-580EB6FA967F}
// *********************************************************************//
ISpeechObjectTokens = interface(IDispatch)
['{9285B776-2E7B-4BC0-B53E-580EB6FA967F}']
function Get_Count: Integer; safecall;
function Item(Index: Integer): ISpeechObjectToken; safecall;
function Get__NewEnum: IUnknown; safecall;
property Count: Integer read Get_Count;
property _NewEnum: IUnknown read Get__NewEnum;
end;
// *********************************************************************//
// DispIntf: ISpeechObjectTokensDisp
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {9285B776-2E7B-4BC0-B53E-580EB6FA967F}
// *********************************************************************//
ISpeechObjectTokensDisp = dispinterface
['{9285B776-2E7B-4BC0-B53E-580EB6FA967F}']
property Count: Integer readonly dispid 1;
function Item(Index: Integer): ISpeechObjectToken; dispid 0;
property _NewEnum: IUnknown readonly dispid -4;
end;
// *********************************************************************//
// Interface: ISpeechAudioFormat
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {E6E9C590-3E18-40E3-8299-061F98BDE7C7}
// *********************************************************************//
ISpeechAudioFormat = interface(IDispatch)
['{E6E9C590-3E18-40E3-8299-061F98BDE7C7}']
function Get_type_: SpeechAudioFormatType; safecall;
procedure Set_type_(AudioFormat: SpeechAudioFormatType); safecall;
function Get_Guid: WideString; safecall;
procedure Set_Guid(const Guid: WideString); safecall;
function GetWaveFormatEx: ISpeechWaveFormatEx; safecall;
procedure SetWaveFormatEx(const SpeechWaveFormatEx: ISpeechWaveFormatEx); safecall;
property type_: SpeechAudioFormatType read Get_type_ write Set_type_;
property Guid: WideString read Get_Guid write Set_Guid;
end;
// *********************************************************************//
// Interface: ISpeechWaveFormatEx
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {7A1EF0D5-1581-4741-88E4-209A49F11A10}
// *********************************************************************//
ISpeechWaveFormatEx = interface(IDispatch)
['{7A1EF0D5-1581-4741-88E4-209A49F11A10}']
function Get_FormatTag: Smallint; safecall;
procedure Set_FormatTag(FormatTag: Smallint); safecall;
function Get_Channels: Smallint; safecall;
procedure Set_Channels(Channels: Smallint); safecall;
function Get_SamplesPerSec: Integer; safecall;
procedure Set_SamplesPerSec(SamplesPerSec: Integer); safecall;
function Get_AvgBytesPerSec: Integer; safecall;
procedure Set_AvgBytesPerSec(AvgBytesPerSec: Integer); safecall;
function Get_BlockAlign: Smallint; safecall;
procedure Set_BlockAlign(BlockAlign: Smallint); safecall;
function Get_BitsPerSample: Smallint; safecall;
procedure Set_BitsPerSample(BitsPerSample: Smallint); safecall;
function Get_ExtraData: OleVariant; safecall;
procedure Set_ExtraData(ExtraData: OleVariant); safecall;
property FormatTag: Smallint read Get_FormatTag write Set_FormatTag;
property Channels: Smallint read Get_Channels write Set_Channels;
property SamplesPerSec: Integer read Get_SamplesPerSec write Set_SamplesPerSec;
property AvgBytesPerSec: Integer read Get_AvgBytesPerSec write Set_AvgBytesPerSec;
property BlockAlign: Smallint read Get_BlockAlign write Set_BlockAlign;
property BitsPerSample: Smallint read Get_BitsPerSample write Set_BitsPerSample;
property ExtraData: OleVariant read Get_ExtraData write Set_ExtraData;
end;
// *********************************************************************//
// Interface: ISpeechBaseStream
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {6450336F-7D49-4CED-8097-49D6DEE37294}
// *********************************************************************//
ISpeechBaseStream = interface(IDispatch)
['{6450336F-7D49-4CED-8097-49D6DEE37294}']
function Get_Format: ISpeechAudioFormat; safecall;
procedure _Set_Format(const AudioFormat: ISpeechAudioFormat); safecall;
function Read(out Buffer: OleVariant; NumberOfBytes: Integer): Integer; safecall;
function Write(Buffer: OleVariant): Integer; safecall;
function Seek(Position: OleVariant; Origin: SpeechStreamSeekPositionType): OleVariant; safecall;
property Format: ISpeechAudioFormat read Get_Format write _Set_Format;
end;
// *********************************************************************//
// Interface: ISpeechVoice
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {269316D8-57BD-11D2-9EEE-00C04F797396}
// *********************************************************************//
ISpeechVoice = interface(IDispatch)
['{269316D8-57BD-11D2-9EEE-00C04F797396}']
function Get_Status: ISpeechVoiceStatus; safecall;
function Get_Voice: ISpeechObjectToken; safecall;
procedure _Set_Voice(const Voice: ISpeechObjectToken); safecall;
function Get_AudioOutput: ISpeechObjectToken; safecall;
procedure _Set_AudioOutput(const AudioOutput: ISpeechObjectToken); safecall;
function Get_AudioOutputStream: ISpeechBaseStream; safecall;
procedure _Set_AudioOutputStream(const AudioOutputStream: ISpeechBaseStream); safecall;
function Get_Rate: Integer; safecall;
procedure Set_Rate(Rate: Integer); safecall;
function Get_Volume: Integer; safecall;
procedure Set_Volume(Volume: Integer); safecall;
procedure Set_AllowAudioOutputFormatChangesOnNextSet(Allow: WordBool); safecall;
function Get_AllowAudioOutputFormatChangesOnNextSet: WordBool; safecall;
function Get_EventInterests: SpeechVoiceEvents; safecall;
procedure Set_EventInterests(EventInterestFlags: SpeechVoiceEvents); safecall;
procedure Set_Priority(Priority: SpeechVoicePriority); safecall;
function Get_Priority: SpeechVoicePriority; safecall;
procedure Set_AlertBoundary(Boundary: SpeechVoiceEvents); safecall;
function Get_AlertBoundary: SpeechVoiceEvents; safecall;
procedure Set_SynchronousSpeakTimeout(msTimeout: Integer); safecall;
function Get_SynchronousSpeakTimeout: Integer; safecall;
function Speak(const Text: WideString; Flags: SpeechVoiceSpeakFlags): Integer; safecall;
function SpeakStream(const Stream: ISpeechBaseStream; Flags: SpeechVoiceSpeakFlags): Integer; safecall;
procedure Pause; safecall;
procedure Resume; safecall;
function Skip(const Type_: WideString; NumItems: Integer): Integer; safecall;
function GetVoices(const RequiredAttributes: WideString; const OptionalAttributes: WideString): ISpeechObjectTokens; safecall;
function GetAudioOutputs(const RequiredAttributes: WideString; const OptionalAttributes: WideString): ISpeechObjectTokens; safecall;
function WaitUntilDone(msTimeout: Integer): WordBool; safecall;
function SpeakCompleteEvent: Integer; safecall;
function IsUISupported(const TypeOfUI: WideString; const ExtraData: OleVariant): WordBool; safecall;
procedure DisplayUI(hWndParent: Integer; const Title: WideString; const TypeOfUI: WideString; const ExtraData: OleVariant); safecall;
property Status: ISpeechVoiceStatus read Get_Status;
property Voice: ISpeechObjectToken read Get_Voice write _Set_Voice;
property AudioOutput: ISpeechObjectToken read Get_AudioOutput write _Set_AudioOutput;
property AudioOutputStream: ISpeechBaseStream read Get_AudioOutputStream write _Set_AudioOutputStream;
property Rate: Integer read Get_Rate write Set_Rate;
property Volume: Integer read Get_Volume write Set_Volume;
property AllowAudioOutputFormatChangesOnNextSet: WordBool read Get_AllowAudioOutputFormatChangesOnNextSet write Set_AllowAudioOutputFormatChangesOnNextSet;
property EventInterests: SpeechVoiceEvents read Get_EventInterests write Set_EventInterests;
property Priority: SpeechVoicePriority read Get_Priority write Set_Priority;
property AlertBoundary: SpeechVoiceEvents read Get_AlertBoundary write Set_AlertBoundary;
property SynchronousSpeakTimeout: Integer read Get_SynchronousSpeakTimeout write Set_SynchronousSpeakTimeout;
end;
// *********************************************************************//
// DispIntf: ISpeechVoiceDisp
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {269316D8-57BD-11D2-9EEE-00C04F797396}
// *********************************************************************//
ISpeechVoiceDisp = dispinterface
['{269316D8-57BD-11D2-9EEE-00C04F797396}']
property Status: ISpeechVoiceStatus readonly dispid 1;
property Voice: ISpeechObjectToken dispid 2;
property AudioOutput: ISpeechObjectToken dispid 3;
property AudioOutputStream: ISpeechBaseStream dispid 4;
property Rate: Integer dispid 5;
property Volume: Integer dispid 6;
property AllowAudioOutputFormatChangesOnNextSet: WordBool dispid 7;
property EventInterests: SpeechVoiceEvents dispid 8;
property Priority: SpeechVoicePriority dispid 9;
property AlertBoundary: SpeechVoiceEvents dispid 10;
property SynchronousSpeakTimeout: Integer dispid 11;
function Speak(const Text: WideString; Flags: SpeechVoiceSpeakFlags): Integer; dispid 12;
function SpeakStream(const Stream: ISpeechBaseStream; Flags: SpeechVoiceSpeakFlags): Integer; dispid 13;
procedure Pause; dispid 14;
procedure Resume; dispid 15;
function Skip(const Type_: WideString; NumItems: Integer): Integer; dispid 16;
function GetVoices(const RequiredAttributes: WideString; const OptionalAttributes: WideString): ISpeechObjectTokens; dispid 17;
function GetAudioOutputs(const RequiredAttributes: WideString; const OptionalAttributes: WideString): ISpeechObjectTokens; dispid 18;
function WaitUntilDone(msTimeout: Integer): WordBool; dispid 19;
function SpeakCompleteEvent: Integer; dispid 20;
function IsUISupported(const TypeOfUI: WideString; const ExtraData: OleVariant): WordBool; dispid 21;
procedure DisplayUI(hWndParent: Integer; const Title: WideString; const TypeOfUI: WideString; const ExtraData: OleVariant); dispid 22;
end;
// *********************************************************************//
// Interface: ISpeechVoiceStatus
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {8BE47B07-57F6-11D2-9EEE-00C04F797396}
// *********************************************************************//
ISpeechVoiceStatus = interface(IDispatch)
['{8BE47B07-57F6-11D2-9EEE-00C04F797396}']
function Get_CurrentStreamNumber: Integer; safecall;
function Get_LastStreamNumberQueued: Integer; safecall;
function Get_LastHResult: Integer; safecall;
function Get_RunningState: SpeechRunState; safecall;
function Get_InputWordPosition: Integer; safecall;
function Get_InputWordLength: Integer; safecall;
function Get_InputSentencePosition: Integer; safecall;
function Get_InputSentenceLength: Integer; safecall;
function Get_LastBookmark: WideString; safecall;
function Get_LastBookmarkId: Integer; safecall;
function Get_PhonemeId: Smallint; safecall;
function Get_VisemeId: Smallint; safecall;
property CurrentStreamNumber: Integer read Get_CurrentStreamNumber;
property LastStreamNumberQueued: Integer read Get_LastStreamNumberQueued;
property LastHResult: Integer read Get_LastHResult;
property RunningState: SpeechRunState read Get_RunningState;
property InputWordPosition: Integer read Get_InputWordPosition;
property InputWordLength: Integer read Get_InputWordLength;
property InputSentencePosition: Integer read Get_InputSentencePosition;
property InputSentenceLength: Integer read Get_InputSentenceLength;
property LastBookmark: WideString read Get_LastBookmark;
property LastBookmarkId: Integer read Get_LastBookmarkId;
property PhonemeId: Smallint read Get_PhonemeId;
property VisemeId: Smallint read Get_VisemeId;
end;
// *********************************************************************//
// DispIntf: ISpeechVoiceStatusDisp
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {8BE47B07-57F6-11D2-9EEE-00C04F797396}
// *********************************************************************//
ISpeechVoiceStatusDisp = dispinterface
['{8BE47B07-57F6-11D2-9EEE-00C04F797396}']
property CurrentStreamNumber: Integer readonly dispid 1;
property LastStreamNumberQueued: Integer readonly dispid 2;
property LastHResult: Integer readonly dispid 3;
property RunningState: SpeechRunState readonly dispid 4;
property InputWordPosition: Integer readonly dispid 5;
property InputWordLength: Integer readonly dispid 6;
property InputSentencePosition: Integer readonly dispid 7;
property InputSentenceLength: Integer readonly dispid 8;
property LastBookmark: WideString readonly dispid 9;
property LastBookmarkId: Integer readonly dispid 10;
property PhonemeId: Smallint readonly dispid 11;
property VisemeId: Smallint readonly dispid 12;
end;
// *********************************************************************//
// DispIntf: _ISpeechVoiceEvents
// Flags: (4096) Dispatchable
// GUID: {A372ACD1-3BEF-4BBD-8FFB-CB3E2B416AF8}
// *********************************************************************//
_ISpeechVoiceEvents = dispinterface
['{A372ACD1-3BEF-4BBD-8FFB-CB3E2B416AF8}']
procedure StartStream(StreamNumber: Integer; StreamPosition: OleVariant); dispid 1;
procedure EndStream(StreamNumber: Integer; StreamPosition: OleVariant); dispid 2;
procedure VoiceChange(StreamNumber: Integer; StreamPosition: OleVariant; const VoiceObjectToken: ISpeechObjectToken); dispid 3;
procedure Bookmark(StreamNumber: Integer; StreamPosition: OleVariant; const Bookmark: WideString; BookmarkId: Integer); dispid 4;
procedure Word(StreamNumber: Integer; StreamPosition: OleVariant; CharacterPosition: Integer; Length: Integer); dispid 5;
procedure Sentence(StreamNumber: Integer; StreamPosition: OleVariant; CharacterPosition: Integer; Length: Integer); dispid 7;
procedure Phoneme(StreamNumber: Integer; StreamPosition: OleVariant; Duration: Integer; NextPhoneId: Smallint; Feature: SpeechVisemeFeature; CurrentPhoneId: Smallint); dispid 6;
procedure Viseme(StreamNumber: Integer; StreamPosition: OleVariant; Duration: Integer; NextVisemeId: SpeechVisemeType; Feature: SpeechVisemeFeature; CurrentVisemeId: SpeechVisemeType); dispid 8;
procedure AudioLevel(StreamNumber: Integer; StreamPosition: OleVariant; AudioLevel: Integer); dispid 9;
procedure EnginePrivate(StreamNumber: Integer; StreamPosition: Integer; EngineData: OleVariant); dispid 10;
end;
// *********************************************************************//
// Interface: ISpNotifySink
// Flags: (512) Restricted
// GUID: {259684DC-37C3-11D2-9603-00C04F8EE628}
// *********************************************************************//
ISpNotifySink = interface(IUnknown)
['{259684DC-37C3-11D2-9603-00C04F8EE628}']
function Notify: HResult; stdcall;
end;
// *********************************************************************//
// Interface: ISpDataKey
// Flags: (512) Restricted
// GUID: {14056581-E16C-11D2-BB90-00C04F8EE6C0}
// *********************************************************************//
ISpDataKey = interface(IUnknown)
['{14056581-E16C-11D2-BB90-00C04F8EE6C0}']
function SetData(pszValueName: PWideChar; cbData: LongWord; var pData: Byte): HResult; stdcall;
function GetData(pszValueName: PWideChar; var pcbData: LongWord; out pData: Byte): HResult; stdcall;
function SetStringValue(pszValueName: PWideChar; pszValue: PWideChar): HResult; stdcall;
function GetStringValue(pszValueName: PWideChar; out ppszValue: PWideChar): HResult; stdcall;
function SetDWORD(pszValueName: PWideChar; dwValue: LongWord): HResult; stdcall;
function GetDWORD(pszValueName: PWideChar; out pdwValue: LongWord): HResult; stdcall;
function OpenKey(pszSubKeyName: PWideChar; out ppSubKey: ISpDataKey): HResult; stdcall;
function CreateKey(pszSubKey: PWideChar; out ppSubKey: ISpDataKey): HResult; stdcall;
function DeleteKey(pszSubKey: PWideChar): HResult; stdcall;
function DeleteValue(pszValueName: PWideChar): HResult; stdcall;
function EnumKeys(Index: LongWord; out ppszSubKeyName: PWideChar): HResult; stdcall;
function EnumValues(Index: LongWord; out ppszValueName: PWideChar): HResult; stdcall;
end;
// *********************************************************************//
// Interface: ISpObjectTokenCategory
// Flags: (512) Restricted