-
Notifications
You must be signed in to change notification settings - Fork 2
/
SpeechLib_OCX.h
1749 lines (1596 loc) · 102 KB
/
SpeechLib_OCX.h
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
// ************************************************************************ //
// WARNING
// -------
// The types declared in this file were generated from data read from a
// Type Library. If this type library is explicitly or indirectly (via
// another type library referring to this type library) re-imported, or the
// 'Refresh' command of the Type Library Editor activated while editing the
// Type Library, the contents of this file will be regenerated and all
// manual modifications will be lost.
// ************************************************************************ //
// $Rev: 52393 $
// File generated on 2017-07-18 오전 8:40:25 from Type Library described below.
// ************************************************************************ //
// Type Lib: C:\WINDOWS\System32\Speech\Common\sapi.dll (1)
// LIBID: {C866CA3A-32F7-11D2-9602-00C04F8EE628}
// LCID: 0
// Helpfile:
// HelpString: Microsoft Speech Object Library
// DepndLst:
// (1) v2.0 stdole, (C:\Windows\SysWOW64\stdole2.tlb)
// SYS_KIND: SYS_WIN32
// ************************************************************************ //
#ifndef SpeechLib_OCXH
#define SpeechLib_OCXH
#pragma option push -b -a4 -w-inl -w-8118
#include <olectrls.hpp>
#include <oleserver.hpp>
#if !defined(__UTILCLS_H)
#include <utilcls.h>
#endif
#if !defined(__UTILCLS_H_VERSION) || (__UTILCLS_H_VERSION < 0x0700)
//
// The code generated by the TLIBIMP utility or the Import|TypeLibrary
// and Import|ActiveX feature of C++Builder rely on specific versions of
// the header file UTILCLS.H found in the INCLUDE\VCL directory. If an
// older version of the file is detected, you probably need an update/patch.
//
#error "This file requires a newer version of the header UTILCLS.H" \
"You need to apply an update/patch to your copy of C++Builder"
#endif
#include <olectl.h>
#include <ocidl.h>
#if !defined(_NO_VCL)
#include <System.Win.StdVCL.hpp>
#endif // _NO_VCL
#include <ocxproxy.h>
#include "SpeechLib_TLB.h"
namespace Speechlib_tlb
{
// *********************************************************************//
// HelpString: Microsoft Speech Object Library
// Version: 5.4
// *********************************************************************//
// *********************************************************************//
// COM Component Proxy Class Declaration
// Component Name : TSpNotifyTranslator
// Help String : SpNotify
// Default Interface: ISpNotifyTranslator
// Def. Intf. Object: ISpNotifyTranslatorPtr
// Def. Intf. DISP? : No
// Event Interface:
// TypeFlags : (530) CanCreate Hidden Restricted
// *********************************************************************//
class PACKAGE TSpNotifyTranslator : public Vcl::Oleserver::TOleServer
{
ISpNotifyTranslatorPtr m_DefaultIntf;
_di_IUnknown __fastcall GetDunk();
public:
__fastcall TSpNotifyTranslator(System::Classes::TComponent* owner) : Vcl::Oleserver::TOleServer(owner)
{}
ISpNotifyTranslatorPtr& GetDefaultInterface();
void __fastcall InitServerData();
void __fastcall Connect();
void __fastcall Disconnect();
void __fastcall BeforeDestruction();
void __fastcall ConnectTo(ISpNotifyTranslatorPtr intf);
void __fastcall Notify(void);
void __fastcall InitWindowMessage(Speechlib_tlb::wireHWND hWnd/*[in]*/,
unsigned Msg/*[in]*/,
Speechlib_tlb::UINT_PTR wParam/*[in]*/,
Speechlib_tlb::LONG_PTR lParam/*[in]*/);
void __fastcall InitCallback(void** pfnCallback/*[in]*/,
Speechlib_tlb::UINT_PTR wParam/*[in]*/,
Speechlib_tlb::LONG_PTR lParam/*[in]*/);
void __fastcall InitSpNotifyCallback(void** pSpCallback/*[in]*/,
Speechlib_tlb::UINT_PTR wParam/*[in]*/,
Speechlib_tlb::LONG_PTR lParam/*[in]*/);
void __fastcall InitWin32Event(void* hEvent/*[in]*/, long fCloseHandleOnRelease/*[in]*/);
void __fastcall Wait(unsigned_long dwMilliseconds/*[in]*/);
void* __fastcall GetEventHandle(void);
};
// *********************************************************************//
// COM Component Proxy Class Declaration
// Component Name : TSpObjectTokenCategory
// Help String : SpObjectTokenCategory Class
// Default Interface: ISpeechObjectTokenCategory
// Def. Intf. Object: ISpeechObjectTokenCategoryPtr
// Def. Intf. DISP? : No
// Event Interface:
// TypeFlags : (2) CanCreate
// *********************************************************************//
class PACKAGE TSpObjectTokenCategory : public Vcl::Oleserver::TOleServer
{
ISpeechObjectTokenCategoryPtr m_DefaultIntf;
_di_IUnknown __fastcall GetDunk();
public:
__fastcall TSpObjectTokenCategory(System::Classes::TComponent* owner) : Vcl::Oleserver::TOleServer(owner)
{}
ISpeechObjectTokenCategoryPtr& GetDefaultInterface();
void __fastcall InitServerData();
void __fastcall Connect();
void __fastcall Disconnect();
void __fastcall BeforeDestruction();
void __fastcall ConnectTo(ISpeechObjectTokenCategoryPtr intf);
BSTR __fastcall get_Id(void);
void __fastcall set_Default(BSTR TokenId/*[in]*/);
BSTR __fastcall get_Default(void);
void __fastcall SetId(BSTR Id/*[in]*/, VARIANT_BOOL CreateIfNotExist/*[in,def,opt]*/);
Speechlib_tlb::ISpeechDataKey* __fastcall GetDataKey(Speechlib_tlb::SpeechDataKeyLocation Location/*[in,def,opt]*/);
Speechlib_tlb::ISpeechObjectTokens* __fastcall EnumerateTokens(BSTR RequiredAttributes/*[in,def,opt]*/,
BSTR OptionalAttributes/*[in,def,opt]*/);
__property BSTR Id={ read=get_Id };
__property BSTR Default={ read=get_Default, write=set_Default, stored=false };
};
// *********************************************************************//
// COM Component Proxy Class Declaration
// Component Name : TSpObjectToken
// Help String : SpObjectToken Class
// Default Interface: ISpeechObjectToken
// Def. Intf. Object: ISpeechObjectTokenPtr
// Def. Intf. DISP? : No
// Event Interface:
// TypeFlags : (2) CanCreate
// *********************************************************************//
class PACKAGE TSpObjectToken : public Vcl::Oleserver::TOleServer
{
ISpeechObjectTokenPtr m_DefaultIntf;
_di_IUnknown __fastcall GetDunk();
public:
__fastcall TSpObjectToken(System::Classes::TComponent* owner) : Vcl::Oleserver::TOleServer(owner)
{}
ISpeechObjectTokenPtr& GetDefaultInterface();
void __fastcall InitServerData();
void __fastcall Connect();
void __fastcall Disconnect();
void __fastcall BeforeDestruction();
void __fastcall ConnectTo(ISpeechObjectTokenPtr intf);
BSTR __fastcall get_Id(void);
Speechlib_tlb::ISpeechDataKeyPtr __fastcall get_DataKey(void);
Speechlib_tlb::ISpeechObjectTokenCategoryPtr __fastcall get_Category(void);
BSTR __fastcall GetDescription(long Locale/*[in,def,opt]*/);
void __fastcall SetId(BSTR Id/*[in]*/, BSTR CategoryID/*[in,def,opt]*/,
VARIANT_BOOL CreateIfNotExist/*[in,def,opt]*/);
BSTR __fastcall GetAttribute(BSTR AttributeName/*[in]*/);
LPUNKNOWN __fastcall CreateInstance(LPUNKNOWN pUnkOuter/*[in,def,opt]*/,
Speechlib_tlb::SpeechTokenContext ClsContext/*[in,def,opt]*/);
void __fastcall Remove(BSTR ObjectStorageCLSID/*[in]*/);
BSTR __fastcall GetStorageFileName(BSTR ObjectStorageCLSID/*[in]*/,
BSTR KeyName/*[in]*/, BSTR FileName/*[in]*/,
Speechlib_tlb::SpeechTokenShellFolder Folder/*[in]*/);
void __fastcall RemoveStorageFileName(BSTR ObjectStorageCLSID/*[in]*/,
BSTR KeyName/*[in]*/,
VARIANT_BOOL DeleteFile/*[in]*/);
VARIANT_BOOL __fastcall IsUISupported(BSTR TypeOfUI/*[in]*/, VARIANT* ExtraData/*[in,def,opt]*/,
LPUNKNOWN Object/*[in,def,opt]*/);
void __fastcall DisplayUI(long hWnd/*[in]*/, BSTR Title/*[in]*/, BSTR TypeOfUI/*[in]*/,
VARIANT* ExtraData/*[in,def,opt]*/,
LPUNKNOWN Object/*[in,def,opt]*/);
VARIANT_BOOL __fastcall MatchesAttributes(BSTR Attributes/*[in]*/);
__property BSTR Id={ read=get_Id };
__property Speechlib_tlb::ISpeechDataKeyPtr DataKey={ read=get_DataKey };
__property Speechlib_tlb::ISpeechObjectTokenCategoryPtr Category={ read=get_Category };
};
// *********************************************************************//
// COM Component Proxy Class Declaration
// Component Name : TSpResourceManager
// Help String : SpResourceManger
// Default Interface: ISpResourceManager
// Def. Intf. Object: ISpResourceManagerPtr
// Def. Intf. DISP? : No
// Event Interface:
// TypeFlags : (530) CanCreate Hidden Restricted
// *********************************************************************//
class PACKAGE TSpResourceManager : public Vcl::Oleserver::TOleServer
{
ISpResourceManagerPtr m_DefaultIntf;
_di_IUnknown __fastcall GetDunk();
public:
__fastcall TSpResourceManager(System::Classes::TComponent* owner) : Vcl::Oleserver::TOleServer(owner)
{}
ISpResourceManagerPtr& GetDefaultInterface();
void __fastcall InitServerData();
void __fastcall Connect();
void __fastcall Disconnect();
void __fastcall BeforeDestruction();
void __fastcall ConnectTo(ISpResourceManagerPtr intf);
void __fastcall RemoteQueryService(System::TGUID* guidService/*[in]*/,
System::TGUID* riid/*[in]*/,
LPUNKNOWN* ppvObject/*[out]*/);
void __fastcall SetObject(System::TGUID* guidServiceId/*[in]*/,
LPUNKNOWN punkObject/*[in]*/);
void __fastcall GetObject(System::TGUID* guidServiceId/*[in]*/,
System::TGUID* ObjectCLSID/*[in]*/,
System::TGUID* ObjectIID/*[in]*/,
long fReleaseWhenLastExternalRefReleased/*[in]*/,
void** ppObject/*[out]*/);
};
// *********************************************************************//
// COM Component Proxy Class Declaration
// Component Name : TSpStreamFormatConverter
// Help String : FormatConverter Class
// Default Interface: ISpStreamFormatConverter
// Def. Intf. Object: ISpStreamFormatConverterPtr
// Def. Intf. DISP? : No
// Event Interface:
// TypeFlags : (530) CanCreate Hidden Restricted
// *********************************************************************//
class PACKAGE TSpStreamFormatConverter : public Vcl::Oleserver::TOleServer
{
ISpStreamFormatConverterPtr m_DefaultIntf;
_di_IUnknown __fastcall GetDunk();
public:
__fastcall TSpStreamFormatConverter(System::Classes::TComponent* owner) : Vcl::Oleserver::TOleServer(owner)
{}
ISpStreamFormatConverterPtr& GetDefaultInterface();
void __fastcall InitServerData();
void __fastcall Connect();
void __fastcall Disconnect();
void __fastcall BeforeDestruction();
void __fastcall ConnectTo(ISpStreamFormatConverterPtr intf);
void __fastcall RemoteRead(unsigned_char* pv/*[out]*/, unsigned_long cb/*[in]*/,
unsigned_long* pcbRead/*[out]*/);
void __fastcall RemoteWrite(unsigned_char* pv/*[in]*/, unsigned_long cb/*[in]*/,
unsigned_long* pcbWritten/*[out]*/);
void __fastcall RemoteSeek(Speechlib_tlb::_LARGE_INTEGER dlibMove/*[in]*/,
unsigned_long dwOrigin/*[in]*/,
Speechlib_tlb::_ULARGE_INTEGER* plibNewPosition/*[out]*/);
void __fastcall SetSize(Speechlib_tlb::_ULARGE_INTEGER libNewSize/*[in]*/);
void __fastcall RemoteCopyTo(Speechlib_tlb::IStream* pstm/*[in]*/,
Speechlib_tlb::_ULARGE_INTEGER cb/*[in]*/,
Speechlib_tlb::_ULARGE_INTEGER* pcbRead/*[out]*/,
Speechlib_tlb::_ULARGE_INTEGER* pcbWritten/*[out]*/);
void __fastcall Commit(unsigned_long grfCommitFlags/*[in]*/);
void __fastcall Revert(void);
void __fastcall LockRegion(Speechlib_tlb::_ULARGE_INTEGER libOffset/*[in]*/,
Speechlib_tlb::_ULARGE_INTEGER cb/*[in]*/,
unsigned_long dwLockType/*[in]*/);
void __fastcall UnlockRegion(Speechlib_tlb::_ULARGE_INTEGER libOffset/*[in]*/,
Speechlib_tlb::_ULARGE_INTEGER cb/*[in]*/,
unsigned_long dwLockType/*[in]*/);
void __fastcall Stat(Speechlib_tlb::tagSTATSTG* pstatstg/*[out]*/,
unsigned_long grfStatFlag/*[in]*/);
void __fastcall Clone(Speechlib_tlb::IStream** ppstm/*[out]*/);
void __fastcall GetFormat(System::TGUID* pguidFormatId/*[in]*/,
Speechlib_tlb::WAVEFORMATEX** ppCoMemWaveFormatEx/*[out]*/);
void __fastcall SetBaseStream(Speechlib_tlb::ISpStreamFormat* pStream/*[in]*/,
long fSetFormatToBaseStreamFormat/*[in]*/,
long fWriteToBaseStream/*[in]*/);
void __fastcall GetBaseStream(Speechlib_tlb::ISpStreamFormat** ppStream/*[out]*/);
void __fastcall SetFormat(System::TGUID* rguidFormatIdOfConvertedStream/*[in]*/,
Speechlib_tlb::WAVEFORMATEX* pWaveFormatExOfConvertedStream/*[in]*/);
void __fastcall ResetSeekPosition(void);
void __fastcall ScaleConvertedToBaseOffset(unsigned_int64 ullOffsetConvertedStream/*[in]*/,
unsigned_int64* pullOffsetBaseStream/*[out]*/);
void __fastcall ScaleBaseToConvertedOffset(unsigned_int64 ullOffsetBaseStream/*[in]*/,
unsigned_int64* pullOffsetConvertedStream/*[out]*/);
};
// *********************************************************************//
// COM Component Proxy Class Declaration
// Component Name : TSpMMAudioEnum
// Help String : SpMMAudioEnum Class
// Default Interface: IEnumSpObjectTokens
// Def. Intf. Object: IEnumSpObjectTokensPtr
// Def. Intf. DISP? : No
// Event Interface:
// TypeFlags : (530) CanCreate Hidden Restricted
// *********************************************************************//
class PACKAGE TSpMMAudioEnum : public Vcl::Oleserver::TOleServer
{
IEnumSpObjectTokensPtr m_DefaultIntf;
_di_IUnknown __fastcall GetDunk();
public:
__fastcall TSpMMAudioEnum(System::Classes::TComponent* owner) : Vcl::Oleserver::TOleServer(owner)
{}
IEnumSpObjectTokensPtr& GetDefaultInterface();
void __fastcall InitServerData();
void __fastcall Connect();
void __fastcall Disconnect();
void __fastcall BeforeDestruction();
void __fastcall ConnectTo(IEnumSpObjectTokensPtr intf);
void __fastcall Next(unsigned_long celt/*[in]*/,
Speechlib_tlb::ISpObjectToken** pelt/*[out]*/,
unsigned_long* pceltFetched/*[out]*/);
void __fastcall Skip(unsigned_long celt/*[in]*/);
void __fastcall Reset(void);
void __fastcall Clone(Speechlib_tlb::IEnumSpObjectTokens** ppEnum/*[out]*/);
void __fastcall Item(unsigned_long Index/*[in]*/,
Speechlib_tlb::ISpObjectToken** ppToken/*[out]*/);
void __fastcall GetCount(unsigned_long* pCount/*[out]*/);
};
// *********************************************************************//
// COM Component Proxy Class Declaration
// Component Name : TSpMMAudioIn
// Help String : SpMMAudioIn Class
// Default Interface: ISpeechMMSysAudio
// Def. Intf. Object: ISpeechMMSysAudioPtr
// Def. Intf. DISP? : No
// Event Interface:
// TypeFlags : (2) CanCreate
// *********************************************************************//
class PACKAGE TSpMMAudioIn : public Vcl::Oleserver::TOleServer
{
ISpeechMMSysAudioPtr m_DefaultIntf;
_di_IUnknown __fastcall GetDunk();
public:
__fastcall TSpMMAudioIn(System::Classes::TComponent* owner) : Vcl::Oleserver::TOleServer(owner)
{}
ISpeechMMSysAudioPtr& GetDefaultInterface();
void __fastcall InitServerData();
void __fastcall Connect();
void __fastcall Disconnect();
void __fastcall BeforeDestruction();
void __fastcall ConnectTo(ISpeechMMSysAudioPtr intf);
Speechlib_tlb::ISpeechAudioFormatPtr __fastcall get_Format(void);
void __fastcall _set_Format(Speechlib_tlb::ISpeechAudioFormat* AudioFormat/*[in]*/);
Speechlib_tlb::ISpeechAudioStatusPtr __fastcall get_Status(void);
Speechlib_tlb::ISpeechAudioBufferInfoPtr __fastcall get_BufferInfo(void);
Speechlib_tlb::ISpeechAudioFormatPtr __fastcall get_DefaultFormat(void);
long __fastcall get_Volume(void);
void __fastcall set_Volume(long Volume/*[in]*/);
long __fastcall get_BufferNotifySize(void);
void __fastcall set_BufferNotifySize(long BufferNotifySize/*[in]*/);
long __fastcall get_EventHandle(void);
long __fastcall get_DeviceId(void);
void __fastcall set_DeviceId(long DeviceId/*[in]*/);
long __fastcall get_LineId(void);
void __fastcall set_LineId(long LineId/*[in]*/);
long __fastcall get_MMHandle(void);
long __fastcall Read(VARIANT* Buffer/*[out]*/, long NumberOfBytes/*[in]*/);
long __fastcall Write(VARIANT Buffer/*[in]*/);
VARIANT __fastcall Seek(VARIANT Position/*[in]*/,
Speechlib_tlb::SpeechStreamSeekPositionType Origin/*[in,def,opt]*/);
void __fastcall SetState(Speechlib_tlb::SpeechAudioState State/*[in]*/);
__property Speechlib_tlb::ISpeechAudioFormatPtr Format={ read=get_Format };
__property Speechlib_tlb::ISpeechAudioStatusPtr Status={ read=get_Status };
__property Speechlib_tlb::ISpeechAudioBufferInfoPtr BufferInfo={ read=get_BufferInfo };
__property Speechlib_tlb::ISpeechAudioFormatPtr DefaultFormat={ read=get_DefaultFormat };
__property long EventHandle={ read=get_EventHandle };
__property long MMHandle={ read=get_MMHandle };
__property long Volume={ read=get_Volume, write=set_Volume, stored=false };
__property long BufferNotifySize={ read=get_BufferNotifySize, write=set_BufferNotifySize, stored=false };
__property long DeviceId={ read=get_DeviceId, write=set_DeviceId, stored=false };
__property long LineId={ read=get_LineId, write=set_LineId, stored=false };
};
// *********************************************************************//
// COM Component Proxy Class Declaration
// Component Name : TSpMMAudioOut
// Help String : SpMMAudioOut Class
// Default Interface: ISpeechMMSysAudio
// Def. Intf. Object: ISpeechMMSysAudioPtr
// Def. Intf. DISP? : No
// Event Interface:
// TypeFlags : (2) CanCreate
// *********************************************************************//
class PACKAGE TSpMMAudioOut : public Vcl::Oleserver::TOleServer
{
ISpeechMMSysAudioPtr m_DefaultIntf;
_di_IUnknown __fastcall GetDunk();
public:
__fastcall TSpMMAudioOut(System::Classes::TComponent* owner) : Vcl::Oleserver::TOleServer(owner)
{}
ISpeechMMSysAudioPtr& GetDefaultInterface();
void __fastcall InitServerData();
void __fastcall Connect();
void __fastcall Disconnect();
void __fastcall BeforeDestruction();
void __fastcall ConnectTo(ISpeechMMSysAudioPtr intf);
Speechlib_tlb::ISpeechAudioFormatPtr __fastcall get_Format(void);
void __fastcall _set_Format(Speechlib_tlb::ISpeechAudioFormat* AudioFormat/*[in]*/);
Speechlib_tlb::ISpeechAudioStatusPtr __fastcall get_Status(void);
Speechlib_tlb::ISpeechAudioBufferInfoPtr __fastcall get_BufferInfo(void);
Speechlib_tlb::ISpeechAudioFormatPtr __fastcall get_DefaultFormat(void);
long __fastcall get_Volume(void);
void __fastcall set_Volume(long Volume/*[in]*/);
long __fastcall get_BufferNotifySize(void);
void __fastcall set_BufferNotifySize(long BufferNotifySize/*[in]*/);
long __fastcall get_EventHandle(void);
long __fastcall get_DeviceId(void);
void __fastcall set_DeviceId(long DeviceId/*[in]*/);
long __fastcall get_LineId(void);
void __fastcall set_LineId(long LineId/*[in]*/);
long __fastcall get_MMHandle(void);
long __fastcall Read(VARIANT* Buffer/*[out]*/, long NumberOfBytes/*[in]*/);
long __fastcall Write(VARIANT Buffer/*[in]*/);
VARIANT __fastcall Seek(VARIANT Position/*[in]*/,
Speechlib_tlb::SpeechStreamSeekPositionType Origin/*[in,def,opt]*/);
void __fastcall SetState(Speechlib_tlb::SpeechAudioState State/*[in]*/);
__property Speechlib_tlb::ISpeechAudioFormatPtr Format={ read=get_Format };
__property Speechlib_tlb::ISpeechAudioStatusPtr Status={ read=get_Status };
__property Speechlib_tlb::ISpeechAudioBufferInfoPtr BufferInfo={ read=get_BufferInfo };
__property Speechlib_tlb::ISpeechAudioFormatPtr DefaultFormat={ read=get_DefaultFormat };
__property long EventHandle={ read=get_EventHandle };
__property long MMHandle={ read=get_MMHandle };
__property long Volume={ read=get_Volume, write=set_Volume, stored=false };
__property long BufferNotifySize={ read=get_BufferNotifySize, write=set_BufferNotifySize, stored=false };
__property long DeviceId={ read=get_DeviceId, write=set_DeviceId, stored=false };
__property long LineId={ read=get_LineId, write=set_LineId, stored=false };
};
// *********************************************************************//
// COM Component Proxy Class Declaration
// Component Name : TSpStream
// Help String : SpStream Class
// Default Interface: ISpStream
// Def. Intf. Object: ISpStreamPtr
// Def. Intf. DISP? : No
// Event Interface:
// TypeFlags : (530) CanCreate Hidden Restricted
// *********************************************************************//
class PACKAGE TSpStream : public Vcl::Oleserver::TOleServer
{
ISpStreamPtr m_DefaultIntf;
_di_IUnknown __fastcall GetDunk();
public:
__fastcall TSpStream(System::Classes::TComponent* owner) : Vcl::Oleserver::TOleServer(owner)
{}
ISpStreamPtr& GetDefaultInterface();
void __fastcall InitServerData();
void __fastcall Connect();
void __fastcall Disconnect();
void __fastcall BeforeDestruction();
void __fastcall ConnectTo(ISpStreamPtr intf);
void __fastcall RemoteRead(unsigned_char* pv/*[out]*/, unsigned_long cb/*[in]*/,
unsigned_long* pcbRead/*[out]*/);
void __fastcall RemoteWrite(unsigned_char* pv/*[in]*/, unsigned_long cb/*[in]*/,
unsigned_long* pcbWritten/*[out]*/);
void __fastcall RemoteSeek(Speechlib_tlb::_LARGE_INTEGER dlibMove/*[in]*/,
unsigned_long dwOrigin/*[in]*/,
Speechlib_tlb::_ULARGE_INTEGER* plibNewPosition/*[out]*/);
void __fastcall SetSize(Speechlib_tlb::_ULARGE_INTEGER libNewSize/*[in]*/);
void __fastcall RemoteCopyTo(Speechlib_tlb::IStream* pstm/*[in]*/,
Speechlib_tlb::_ULARGE_INTEGER cb/*[in]*/,
Speechlib_tlb::_ULARGE_INTEGER* pcbRead/*[out]*/,
Speechlib_tlb::_ULARGE_INTEGER* pcbWritten/*[out]*/);
void __fastcall Commit(unsigned_long grfCommitFlags/*[in]*/);
void __fastcall Revert(void);
void __fastcall LockRegion(Speechlib_tlb::_ULARGE_INTEGER libOffset/*[in]*/,
Speechlib_tlb::_ULARGE_INTEGER cb/*[in]*/,
unsigned_long dwLockType/*[in]*/);
void __fastcall UnlockRegion(Speechlib_tlb::_ULARGE_INTEGER libOffset/*[in]*/,
Speechlib_tlb::_ULARGE_INTEGER cb/*[in]*/,
unsigned_long dwLockType/*[in]*/);
void __fastcall Stat(Speechlib_tlb::tagSTATSTG* pstatstg/*[out]*/,
unsigned_long grfStatFlag/*[in]*/);
void __fastcall Clone(Speechlib_tlb::IStream** ppstm/*[out]*/);
void __fastcall GetFormat(System::TGUID* pguidFormatId/*[in]*/,
Speechlib_tlb::WAVEFORMATEX** ppCoMemWaveFormatEx/*[out]*/);
void __fastcall SetBaseStream(Speechlib_tlb::IStream* pStream/*[in]*/,
System::TGUID* rguidFormat/*[in]*/,
Speechlib_tlb::WAVEFORMATEX* pWaveFormatEx/*[in]*/);
void __fastcall GetBaseStream(Speechlib_tlb::IStream** ppStream/*[out]*/);
void __fastcall BindToFile(LPWSTR pszFileName/*[in]*/,
Speechlib_tlb::SPFILEMODE eMode/*[in]*/,
System::TGUID* pFormatId/*[in]*/,
Speechlib_tlb::WAVEFORMATEX* pWaveFormatEx,
unsigned_int64 ullEventInterest/*[in]*/);
void __fastcall Close(void);
};
// *********************************************************************//
// COM Component Proxy Class Declaration
// Component Name : TSpVoice
// Help String : SpVoice Class
// Default Interface: ISpeechVoice
// Def. Intf. Object: ISpeechVoicePtr
// Def. Intf. DISP? : No
// Event Interface: _ISpeechVoiceEvents
// TypeFlags : (2) CanCreate
// *********************************************************************//
typedef void __fastcall (__closure * TSpVoiceStartStream)(System::TObject * Sender,
long StreamNumber/*[in]*/,
VARIANT StreamPosition/*[in]*/);
typedef void __fastcall (__closure * TSpVoiceEndStream)(System::TObject * Sender,
long StreamNumber/*[in]*/,
VARIANT StreamPosition/*[in]*/);
typedef void __fastcall (__closure * TSpVoiceVoiceChange)(System::TObject * Sender,
long StreamNumber/*[in]*/,
VARIANT StreamPosition/*[in]*/,
Speechlib_tlb::ISpeechObjectToken* VoiceObjectToken/*[in]*/);
typedef void __fastcall (__closure * TSpVoiceBookmark)(System::TObject * Sender,
long StreamNumber/*[in]*/,
VARIANT StreamPosition/*[in]*/,
BSTR Bookmark/*[in]*/,
long BookmarkId/*[in]*/);
typedef void __fastcall (__closure * TSpVoiceWord)(System::TObject * Sender,
long StreamNumber/*[in]*/,
VARIANT StreamPosition/*[in]*/,
long CharacterPosition/*[in]*/,
long Length/*[in]*/);
typedef void __fastcall (__closure * TSpVoiceSentence)(System::TObject * Sender,
long StreamNumber/*[in]*/,
VARIANT StreamPosition/*[in]*/,
long CharacterPosition/*[in]*/,
long Length/*[in]*/);
typedef void __fastcall (__closure * TSpVoicePhoneme)(System::TObject * Sender,
long StreamNumber/*[in]*/,
VARIANT StreamPosition/*[in]*/,
long Duration/*[in]*/,
short NextPhoneId/*[in]*/,
Speechlib_tlb::SpeechVisemeFeature Feature/*[in]*/,
short CurrentPhoneId/*[in]*/);
typedef void __fastcall (__closure * TSpVoiceViseme)(System::TObject * Sender,
long StreamNumber/*[in]*/,
VARIANT StreamPosition/*[in]*/,
long Duration/*[in]*/,
Speechlib_tlb::SpeechVisemeType NextVisemeId/*[in]*/,
Speechlib_tlb::SpeechVisemeFeature Feature/*[in]*/,
Speechlib_tlb::SpeechVisemeType CurrentVisemeId/*[in]*/);
typedef void __fastcall (__closure * TSpVoiceAudioLevel)(System::TObject * Sender,
long StreamNumber/*[in]*/,
VARIANT StreamPosition/*[in]*/,
long AudioLevel/*[in]*/);
typedef void __fastcall (__closure * TSpVoiceEnginePrivate)(System::TObject * Sender,
long StreamNumber/*[in]*/,
long StreamPosition/*[in]*/,
VARIANT EngineData/*[in]*/);
class PACKAGE TSpVoice : public Vcl::Oleserver::TOleServer
{
ISpeechVoicePtr m_DefaultIntf;
_di_IUnknown __fastcall GetDunk();
public:
__fastcall TSpVoice(System::Classes::TComponent* owner) : Vcl::Oleserver::TOleServer(owner)
{}
ISpeechVoicePtr& GetDefaultInterface();
void __fastcall InitServerData();
void __fastcall Connect();
void __fastcall Disconnect();
void __fastcall BeforeDestruction();
void __fastcall ConnectTo(ISpeechVoicePtr intf);
virtual void __fastcall InvokeEvent(int DispID, Vcl::Oleserver::TVariantArray& params);
Speechlib_tlb::ISpeechVoiceStatusPtr __fastcall get_Status(void);
Speechlib_tlb::ISpeechObjectTokenPtr __fastcall get_Voice(void);
void __fastcall _set_Voice(Speechlib_tlb::ISpeechObjectToken* Voice/*[in]*/);
Speechlib_tlb::ISpeechObjectTokenPtr __fastcall get_AudioOutput(void);
void __fastcall _set_AudioOutput(Speechlib_tlb::ISpeechObjectToken* AudioOutput/*[in]*/);
Speechlib_tlb::ISpeechBaseStreamPtr __fastcall get_AudioOutputStream(void);
void __fastcall _set_AudioOutputStream(Speechlib_tlb::ISpeechBaseStream* AudioOutputStream/*[in]*/);
long __fastcall get_Rate(void);
void __fastcall set_Rate(long Rate/*[in]*/);
long __fastcall get_Volume(void);
void __fastcall set_Volume(long Volume/*[in]*/);
void __fastcall set_AllowAudioOutputFormatChangesOnNextSet(VARIANT_BOOL Allow/*[in]*/);
VARIANT_BOOL __fastcall get_AllowAudioOutputFormatChangesOnNextSet(void);
Speechlib_tlb::SpeechVoiceEvents __fastcall get_EventInterests(void);
void __fastcall set_EventInterests(Speechlib_tlb::SpeechVoiceEvents EventInterestFlags/*[in]*/);
void __fastcall set_Priority(Speechlib_tlb::SpeechVoicePriority Priority/*[in]*/);
Speechlib_tlb::SpeechVoicePriority __fastcall get_Priority(void);
void __fastcall set_AlertBoundary(Speechlib_tlb::SpeechVoiceEvents Boundary/*[in]*/);
Speechlib_tlb::SpeechVoiceEvents __fastcall get_AlertBoundary(void);
void __fastcall set_SynchronousSpeakTimeout(long msTimeout/*[in]*/);
long __fastcall get_SynchronousSpeakTimeout(void);
long __fastcall Speak(BSTR Text/*[in]*/,
Speechlib_tlb::SpeechVoiceSpeakFlags Flags/*[in,def,opt]*/);
long __fastcall SpeakStream(Speechlib_tlb::ISpeechBaseStream* Stream/*[in]*/,
Speechlib_tlb::SpeechVoiceSpeakFlags Flags/*[in,def,opt]*/);
void __fastcall Pause(void);
void __fastcall Resume(void);
long __fastcall Skip(BSTR Type/*[in]*/, long NumItems/*[in]*/);
Speechlib_tlb::ISpeechObjectTokens* __fastcall GetVoices(BSTR RequiredAttributes/*[in,def,opt]*/,
BSTR OptionalAttributes/*[in,def,opt]*/);
Speechlib_tlb::ISpeechObjectTokens* __fastcall GetAudioOutputs(BSTR RequiredAttributes/*[in,def,opt]*/,
BSTR OptionalAttributes/*[in,def,opt]*/);
VARIANT_BOOL __fastcall WaitUntilDone(long msTimeout/*[in]*/);
long __fastcall SpeakCompleteEvent(void);
VARIANT_BOOL __fastcall IsUISupported(BSTR TypeOfUI/*[in]*/,
VARIANT* ExtraData/*[in,def,opt]*/= TNoParam());
void __fastcall DisplayUI(long hWndParent/*[in]*/, BSTR Title/*[in]*/,
BSTR TypeOfUI/*[in]*/,
VARIANT* ExtraData/*[in,def,opt]*/= TNoParam());
__property Speechlib_tlb::ISpeechVoiceStatusPtr Status={ read=get_Status };
__property Speechlib_tlb::ISpeechObjectTokenPtr Voice={ read=get_Voice };
__property Speechlib_tlb::ISpeechObjectTokenPtr AudioOutput={ read=get_AudioOutput };
__property Speechlib_tlb::ISpeechBaseStreamPtr AudioOutputStream={ read=get_AudioOutputStream };
__property VARIANT_BOOL AllowAudioOutputFormatChangesOnNextSet={ read=get_AllowAudioOutputFormatChangesOnNextSet, write=set_AllowAudioOutputFormatChangesOnNextSet };
__property long Rate={ read=get_Rate, write=set_Rate, stored=false };
__property long Volume={ read=get_Volume, write=set_Volume, stored=false };
__property Speechlib_tlb::SpeechVoiceEvents EventInterests={ read=get_EventInterests, write=set_EventInterests, stored=false };
__property Speechlib_tlb::SpeechVoicePriority Priority={ read=get_Priority, write=set_Priority, stored=false };
__property Speechlib_tlb::SpeechVoiceEvents AlertBoundary={ read=get_AlertBoundary, write=set_AlertBoundary, stored=false };
__property long SynchronousSpeakTimeout={ read=get_SynchronousSpeakTimeout, write=set_SynchronousSpeakTimeout, stored=false };
private:
TSpVoiceStartStream FOnStartStream;
TSpVoiceEndStream FOnEndStream;
TSpVoiceVoiceChange FOnVoiceChange;
TSpVoiceBookmark FOnBookmark;
TSpVoiceWord FOnWord;
TSpVoiceSentence FOnSentence;
TSpVoicePhoneme FOnPhoneme;
TSpVoiceViseme FOnViseme;
TSpVoiceAudioLevel FOnAudioLevel;
TSpVoiceEnginePrivate FOnEnginePrivate;
__published:
__property TSpVoiceStartStream OnStartStream={ read=FOnStartStream, write=FOnStartStream };
__property TSpVoiceEndStream OnEndStream={ read=FOnEndStream, write=FOnEndStream };
__property TSpVoiceVoiceChange OnVoiceChange={ read=FOnVoiceChange, write=FOnVoiceChange };
__property TSpVoiceBookmark OnBookmark={ read=FOnBookmark, write=FOnBookmark };
__property TSpVoiceWord OnWord={ read=FOnWord, write=FOnWord };
__property TSpVoiceSentence OnSentence={ read=FOnSentence, write=FOnSentence };
__property TSpVoicePhoneme OnPhoneme={ read=FOnPhoneme, write=FOnPhoneme };
__property TSpVoiceViseme OnViseme={ read=FOnViseme, write=FOnViseme };
__property TSpVoiceAudioLevel OnAudioLevel={ read=FOnAudioLevel, write=FOnAudioLevel };
__property TSpVoiceEnginePrivate OnEnginePrivate={ read=FOnEnginePrivate, write=FOnEnginePrivate };
};
// *********************************************************************//
// COM Component Proxy Class Declaration
// Component Name : TSpSharedRecoContext
// Help String : SpSharedRecoContext Class
// Default Interface: ISpeechRecoContext
// Def. Intf. Object: ISpeechRecoContextPtr
// Def. Intf. DISP? : No
// Event Interface: _ISpeechRecoContextEvents
// TypeFlags : (2) CanCreate
// *********************************************************************//
typedef void __fastcall (__closure * TSpSharedRecoContextStartStream)(System::TObject * Sender,
long StreamNumber/*[in]*/,
VARIANT StreamPosition/*[in]*/);
typedef void __fastcall (__closure * TSpSharedRecoContextEndStream)(System::TObject * Sender,
long StreamNumber/*[in]*/,
VARIANT StreamPosition/*[in]*/,
VARIANT_BOOL StreamReleased/*[in]*/);
typedef void __fastcall (__closure * TSpSharedRecoContextBookmark)(System::TObject * Sender,
long StreamNumber/*[in]*/,
VARIANT StreamPosition/*[in]*/,
VARIANT BookmarkId/*[in]*/,
Speechlib_tlb::SpeechBookmarkOptions Options/*[in]*/);
typedef void __fastcall (__closure * TSpSharedRecoContextSoundStart)(System::TObject * Sender,
long StreamNumber/*[in]*/,
VARIANT StreamPosition/*[in]*/);
typedef void __fastcall (__closure * TSpSharedRecoContextSoundEnd)(System::TObject * Sender,
long StreamNumber/*[in]*/,
VARIANT StreamPosition/*[in]*/);
typedef void __fastcall (__closure * TSpSharedRecoContextPhraseStart)(System::TObject * Sender,
long StreamNumber/*[in]*/,
VARIANT StreamPosition/*[in]*/);
typedef void __fastcall (__closure * TSpSharedRecoContextRecognition)(System::TObject * Sender,
long StreamNumber/*[in]*/,
VARIANT StreamPosition/*[in]*/,
Speechlib_tlb::SpeechRecognitionType RecognitionType/*[in]*/,
Speechlib_tlb::ISpeechRecoResult* Result/*[in]*/);
typedef void __fastcall (__closure * TSpSharedRecoContextHypothesis)(System::TObject * Sender,
long StreamNumber/*[in]*/,
VARIANT StreamPosition/*[in]*/,
Speechlib_tlb::ISpeechRecoResult* Result/*[in]*/);
typedef void __fastcall (__closure * TSpSharedRecoContextPropertyNumberChange)(System::TObject * Sender,
long StreamNumber/*[in]*/,
VARIANT StreamPosition/*[in]*/,
BSTR PropertyName/*[in]*/,
long NewNumberValue/*[in]*/);
typedef void __fastcall (__closure * TSpSharedRecoContextPropertyStringChange)(System::TObject * Sender,
long StreamNumber/*[in]*/,
VARIANT StreamPosition/*[in]*/,
BSTR PropertyName/*[in]*/,
BSTR NewStringValue/*[in]*/);
typedef void __fastcall (__closure * TSpSharedRecoContextFalseRecognition)(System::TObject * Sender,
long StreamNumber/*[in]*/,
VARIANT StreamPosition/*[in]*/,
Speechlib_tlb::ISpeechRecoResult* Result/*[in]*/);
typedef void __fastcall (__closure * TSpSharedRecoContextInterference)(System::TObject * Sender,
long StreamNumber/*[in]*/,
VARIANT StreamPosition/*[in]*/,
Speechlib_tlb::SpeechInterference Interference/*[in]*/);
typedef void __fastcall (__closure * TSpSharedRecoContextRequestUI)(System::TObject * Sender,
long StreamNumber/*[in]*/,
VARIANT StreamPosition/*[in]*/,
BSTR UIType/*[in]*/);
typedef void __fastcall (__closure * TSpSharedRecoContextRecognizerStateChange)(System::TObject * Sender,
long StreamNumber/*[in]*/,
VARIANT StreamPosition/*[in]*/,
Speechlib_tlb::SpeechRecognizerState NewState/*[in]*/);
typedef void __fastcall (__closure * TSpSharedRecoContextAdaptation)(System::TObject * Sender,
long StreamNumber/*[in]*/,
VARIANT StreamPosition/*[in]*/);
typedef void __fastcall (__closure * TSpSharedRecoContextRecognitionForOtherContext)(System::TObject * Sender,
long StreamNumber/*[in]*/,
VARIANT StreamPosition/*[in]*/);
typedef void __fastcall (__closure * TSpSharedRecoContextAudioLevel)(System::TObject * Sender,
long StreamNumber/*[in]*/,
VARIANT StreamPosition/*[in]*/,
long AudioLevel/*[in]*/);
typedef void __fastcall (__closure * TSpSharedRecoContextEnginePrivate)(System::TObject * Sender,
long StreamNumber/*[in]*/,
VARIANT StreamPosition/*[in]*/,
VARIANT EngineData/*[in]*/);
class PACKAGE TSpSharedRecoContext : public Vcl::Oleserver::TOleServer
{
ISpeechRecoContextPtr m_DefaultIntf;
_di_IUnknown __fastcall GetDunk();
public:
__fastcall TSpSharedRecoContext(System::Classes::TComponent* owner) : Vcl::Oleserver::TOleServer(owner)
{}
ISpeechRecoContextPtr& GetDefaultInterface();
void __fastcall InitServerData();
void __fastcall Connect();
void __fastcall Disconnect();
void __fastcall BeforeDestruction();
void __fastcall ConnectTo(ISpeechRecoContextPtr intf);
virtual void __fastcall InvokeEvent(int DispID, Vcl::Oleserver::TVariantArray& params);
Speechlib_tlb::ISpeechRecognizerPtr __fastcall get_Recognizer(void);
Speechlib_tlb::SpeechInterference __fastcall get_AudioInputInterferenceStatus(void);
BSTR __fastcall get_RequestedUIType(void);
void __fastcall _set_Voice(Speechlib_tlb::ISpeechVoice* Voice/*[in]*/);
Speechlib_tlb::ISpeechVoicePtr __fastcall get_Voice(void);
void __fastcall set_AllowVoiceFormatMatchingOnNextSet(VARIANT_BOOL pAllow/*[in]*/);
VARIANT_BOOL __fastcall get_AllowVoiceFormatMatchingOnNextSet(void);
void __fastcall set_VoicePurgeEvent(Speechlib_tlb::SpeechRecoEvents EventInterest/*[in]*/);
Speechlib_tlb::SpeechRecoEvents __fastcall get_VoicePurgeEvent(void);
void __fastcall set_EventInterests(Speechlib_tlb::SpeechRecoEvents EventInterest/*[in]*/);
Speechlib_tlb::SpeechRecoEvents __fastcall get_EventInterests(void);
void __fastcall set_CmdMaxAlternates(long MaxAlternates/*[in]*/);
long __fastcall get_CmdMaxAlternates(void);
void __fastcall set_State(Speechlib_tlb::SpeechRecoContextState State/*[in]*/);
Speechlib_tlb::SpeechRecoContextState __fastcall get_State(void);
void __fastcall set_RetainedAudio(Speechlib_tlb::SpeechRetainedAudioOptions Option/*[in]*/);
Speechlib_tlb::SpeechRetainedAudioOptions __fastcall get_RetainedAudio(void);
void __fastcall _set_RetainedAudioFormat(Speechlib_tlb::ISpeechAudioFormat* Format/*[in]*/);
Speechlib_tlb::ISpeechAudioFormatPtr __fastcall get_RetainedAudioFormat(void);
void __fastcall Pause(void);
void __fastcall Resume(void);
Speechlib_tlb::ISpeechRecoGrammar* __fastcall CreateGrammar(VARIANT GrammarId/*[in,def,opt]*/= TNoParam());
Speechlib_tlb::ISpeechRecoResult* __fastcall CreateResultFromMemory(VARIANT* ResultBlock/*[in]*/);
void __fastcall Bookmark(Speechlib_tlb::SpeechBookmarkOptions Options/*[in]*/,
VARIANT StreamPos/*[in]*/, VARIANT BookmarkId/*[in]*/);
void __fastcall SetAdaptationData(BSTR AdaptationString/*[in]*/);
__property Speechlib_tlb::ISpeechRecognizerPtr Recognizer={ read=get_Recognizer };
__property Speechlib_tlb::SpeechInterference AudioInputInterferenceStatus={ read=get_AudioInputInterferenceStatus };
__property BSTR RequestedUIType={ read=get_RequestedUIType };
__property Speechlib_tlb::ISpeechVoice* Voice={ read=get_Voice };
__property VARIANT_BOOL AllowVoiceFormatMatchingOnNextSet={ read=get_AllowVoiceFormatMatchingOnNextSet, write=set_AllowVoiceFormatMatchingOnNextSet };
__property Speechlib_tlb::ISpeechAudioFormat* RetainedAudioFormat={ read=get_RetainedAudioFormat };
__property Speechlib_tlb::SpeechRecoEvents VoicePurgeEvent={ read=get_VoicePurgeEvent, write=set_VoicePurgeEvent, stored=false };
__property Speechlib_tlb::SpeechRecoEvents EventInterests={ read=get_EventInterests, write=set_EventInterests, stored=false };
__property long CmdMaxAlternates={ read=get_CmdMaxAlternates, write=set_CmdMaxAlternates, stored=false };
__property Speechlib_tlb::SpeechRecoContextState State={ read=get_State, write=set_State, stored=false };
__property Speechlib_tlb::SpeechRetainedAudioOptions RetainedAudio={ read=get_RetainedAudio, write=set_RetainedAudio, stored=false };
private:
TSpSharedRecoContextStartStream FOnStartStream;
TSpSharedRecoContextEndStream FOnEndStream;
TSpSharedRecoContextBookmark FOnBookmark;
TSpSharedRecoContextSoundStart FOnSoundStart;
TSpSharedRecoContextSoundEnd FOnSoundEnd;
TSpSharedRecoContextPhraseStart FOnPhraseStart;
TSpSharedRecoContextRecognition FOnRecognition;
TSpSharedRecoContextHypothesis FOnHypothesis;
TSpSharedRecoContextPropertyNumberChange FOnPropertyNumberChange;
TSpSharedRecoContextPropertyStringChange FOnPropertyStringChange;
TSpSharedRecoContextFalseRecognition FOnFalseRecognition;
TSpSharedRecoContextInterference FOnInterference;
TSpSharedRecoContextRequestUI FOnRequestUI;
TSpSharedRecoContextRecognizerStateChange FOnRecognizerStateChange;
TSpSharedRecoContextAdaptation FOnAdaptation;
TSpSharedRecoContextRecognitionForOtherContext FOnRecognitionForOtherContext;
TSpSharedRecoContextAudioLevel FOnAudioLevel;
TSpSharedRecoContextEnginePrivate FOnEnginePrivate;
__published:
__property TSpSharedRecoContextStartStream OnStartStream={ read=FOnStartStream, write=FOnStartStream };
__property TSpSharedRecoContextEndStream OnEndStream={ read=FOnEndStream, write=FOnEndStream };
__property TSpSharedRecoContextBookmark OnBookmark={ read=FOnBookmark, write=FOnBookmark };
__property TSpSharedRecoContextSoundStart OnSoundStart={ read=FOnSoundStart, write=FOnSoundStart };
__property TSpSharedRecoContextSoundEnd OnSoundEnd={ read=FOnSoundEnd, write=FOnSoundEnd };
__property TSpSharedRecoContextPhraseStart OnPhraseStart={ read=FOnPhraseStart, write=FOnPhraseStart };
__property TSpSharedRecoContextRecognition OnRecognition={ read=FOnRecognition, write=FOnRecognition };
__property TSpSharedRecoContextHypothesis OnHypothesis={ read=FOnHypothesis, write=FOnHypothesis };
__property TSpSharedRecoContextPropertyNumberChange OnPropertyNumberChange={ read=FOnPropertyNumberChange, write=FOnPropertyNumberChange };
__property TSpSharedRecoContextPropertyStringChange OnPropertyStringChange={ read=FOnPropertyStringChange, write=FOnPropertyStringChange };
__property TSpSharedRecoContextFalseRecognition OnFalseRecognition={ read=FOnFalseRecognition, write=FOnFalseRecognition };
__property TSpSharedRecoContextInterference OnInterference={ read=FOnInterference, write=FOnInterference };
__property TSpSharedRecoContextRequestUI OnRequestUI={ read=FOnRequestUI, write=FOnRequestUI };
__property TSpSharedRecoContextRecognizerStateChange OnRecognizerStateChange={ read=FOnRecognizerStateChange, write=FOnRecognizerStateChange };
__property TSpSharedRecoContextAdaptation OnAdaptation={ read=FOnAdaptation, write=FOnAdaptation };
__property TSpSharedRecoContextRecognitionForOtherContext OnRecognitionForOtherContext={ read=FOnRecognitionForOtherContext, write=FOnRecognitionForOtherContext };
__property TSpSharedRecoContextAudioLevel OnAudioLevel={ read=FOnAudioLevel, write=FOnAudioLevel };
__property TSpSharedRecoContextEnginePrivate OnEnginePrivate={ read=FOnEnginePrivate, write=FOnEnginePrivate };
};
// *********************************************************************//
// COM Component Proxy Class Declaration
// Component Name : TSpInprocRecognizer
// Help String : SpInprocRecognizer Class
// Default Interface: ISpeechRecognizer
// Def. Intf. Object: ISpeechRecognizerPtr
// Def. Intf. DISP? : No
// Event Interface:
// TypeFlags : (2) CanCreate
// *********************************************************************//
class PACKAGE TSpInprocRecognizer : public Vcl::Oleserver::TOleServer
{
ISpeechRecognizerPtr m_DefaultIntf;
_di_IUnknown __fastcall GetDunk();
public:
__fastcall TSpInprocRecognizer(System::Classes::TComponent* owner) : Vcl::Oleserver::TOleServer(owner)
{}
ISpeechRecognizerPtr& GetDefaultInterface();
void __fastcall InitServerData();
void __fastcall Connect();
void __fastcall Disconnect();
void __fastcall BeforeDestruction();
void __fastcall ConnectTo(ISpeechRecognizerPtr intf);
void __fastcall _set_Recognizer(Speechlib_tlb::ISpeechObjectToken* Recognizer/*[in]*/);
Speechlib_tlb::ISpeechObjectTokenPtr __fastcall get_Recognizer(void);
void __fastcall set_AllowAudioInputFormatChangesOnNextSet(VARIANT_BOOL Allow/*[in]*/);
VARIANT_BOOL __fastcall get_AllowAudioInputFormatChangesOnNextSet(void);
void __fastcall _set_AudioInput(Speechlib_tlb::ISpeechObjectToken* AudioInput/*[in,def,opt]*/);
Speechlib_tlb::ISpeechObjectTokenPtr __fastcall get_AudioInput(void);
void __fastcall _set_AudioInputStream(Speechlib_tlb::ISpeechBaseStream* AudioInputStream/*[in,def,opt]*/);
Speechlib_tlb::ISpeechBaseStreamPtr __fastcall get_AudioInputStream(void);
VARIANT_BOOL __fastcall get_IsShared(void);
void __fastcall set_State(Speechlib_tlb::SpeechRecognizerState State/*[in]*/);
Speechlib_tlb::SpeechRecognizerState __fastcall get_State(void);
Speechlib_tlb::ISpeechRecognizerStatusPtr __fastcall get_Status(void);
void __fastcall _set_Profile(Speechlib_tlb::ISpeechObjectToken* Profile/*[in,def,opt]*/);
Speechlib_tlb::ISpeechObjectTokenPtr __fastcall get_Profile(void);
void __fastcall EmulateRecognition(VARIANT TextElements/*[in]*/,
VARIANT* ElementDisplayAttributes/*[in,def,opt]*/,
long LanguageId/*[in,def,opt]*/);
Speechlib_tlb::ISpeechRecoContext* __fastcall CreateRecoContext(void);
Speechlib_tlb::ISpeechAudioFormat* __fastcall GetFormat(Speechlib_tlb::SpeechFormatType Type/*[in]*/);
VARIANT_BOOL __fastcall SetPropertyNumber(BSTR Name/*[in]*/, long Value/*[in]*/);
VARIANT_BOOL __fastcall GetPropertyNumber(BSTR Name/*[in]*/, long* Value/*[in,out]*/);
VARIANT_BOOL __fastcall SetPropertyString(BSTR Name/*[in]*/, BSTR Value/*[in]*/);
VARIANT_BOOL __fastcall GetPropertyString(BSTR Name/*[in]*/, BSTR* Value/*[in,out]*/);
VARIANT_BOOL __fastcall IsUISupported(BSTR TypeOfUI/*[in]*/,
VARIANT* ExtraData/*[in,def,opt]*/= TNoParam());
void __fastcall DisplayUI(long hWndParent/*[in]*/, BSTR Title/*[in]*/,
BSTR TypeOfUI/*[in]*/,
VARIANT* ExtraData/*[in,def,opt]*/= TNoParam());
Speechlib_tlb::ISpeechObjectTokens* __fastcall GetRecognizers(BSTR RequiredAttributes/*[in,def,opt]*/,
BSTR OptionalAttributes/*[in,def,opt]*/);
Speechlib_tlb::ISpeechObjectTokens* __fastcall GetAudioInputs(BSTR RequiredAttributes/*[in,def,opt]*/,
BSTR OptionalAttributes/*[in,def,opt]*/);
Speechlib_tlb::ISpeechObjectTokens* __fastcall GetProfiles(BSTR RequiredAttributes/*[in,def,opt]*/,
BSTR OptionalAttributes/*[in,def,opt]*/);
__property Speechlib_tlb::ISpeechObjectToken* Recognizer={ read=get_Recognizer };
__property VARIANT_BOOL AllowAudioInputFormatChangesOnNextSet={ read=get_AllowAudioInputFormatChangesOnNextSet, write=set_AllowAudioInputFormatChangesOnNextSet };
__property Speechlib_tlb::ISpeechObjectToken* AudioInput={ read=get_AudioInput };
__property Speechlib_tlb::ISpeechBaseStream* AudioInputStream={ read=get_AudioInputStream };
__property VARIANT_BOOL IsShared={ read=get_IsShared };
__property Speechlib_tlb::ISpeechRecognizerStatusPtr Status={ read=get_Status };
__property Speechlib_tlb::ISpeechObjectToken* Profile={ read=get_Profile };
__property Speechlib_tlb::SpeechRecognizerState State={ read=get_State, write=set_State, stored=false };
};
// *********************************************************************//
// COM Component Proxy Class Declaration
// Component Name : TSpSharedRecognizer
// Help String : SpSharedRecognizer Class
// Default Interface: ISpeechRecognizer
// Def. Intf. Object: ISpeechRecognizerPtr
// Def. Intf. DISP? : No
// Event Interface:
// TypeFlags : (2) CanCreate
// *********************************************************************//
class PACKAGE TSpSharedRecognizer : public Vcl::Oleserver::TOleServer
{
ISpeechRecognizerPtr m_DefaultIntf;
_di_IUnknown __fastcall GetDunk();
public:
__fastcall TSpSharedRecognizer(System::Classes::TComponent* owner) : Vcl::Oleserver::TOleServer(owner)
{}
ISpeechRecognizerPtr& GetDefaultInterface();
void __fastcall InitServerData();
void __fastcall Connect();
void __fastcall Disconnect();
void __fastcall BeforeDestruction();
void __fastcall ConnectTo(ISpeechRecognizerPtr intf);
void __fastcall _set_Recognizer(Speechlib_tlb::ISpeechObjectToken* Recognizer/*[in]*/);
Speechlib_tlb::ISpeechObjectTokenPtr __fastcall get_Recognizer(void);
void __fastcall set_AllowAudioInputFormatChangesOnNextSet(VARIANT_BOOL Allow/*[in]*/);
VARIANT_BOOL __fastcall get_AllowAudioInputFormatChangesOnNextSet(void);
void __fastcall _set_AudioInput(Speechlib_tlb::ISpeechObjectToken* AudioInput/*[in,def,opt]*/);
Speechlib_tlb::ISpeechObjectTokenPtr __fastcall get_AudioInput(void);
void __fastcall _set_AudioInputStream(Speechlib_tlb::ISpeechBaseStream* AudioInputStream/*[in,def,opt]*/);
Speechlib_tlb::ISpeechBaseStreamPtr __fastcall get_AudioInputStream(void);
VARIANT_BOOL __fastcall get_IsShared(void);
void __fastcall set_State(Speechlib_tlb::SpeechRecognizerState State/*[in]*/);
Speechlib_tlb::SpeechRecognizerState __fastcall get_State(void);
Speechlib_tlb::ISpeechRecognizerStatusPtr __fastcall get_Status(void);
void __fastcall _set_Profile(Speechlib_tlb::ISpeechObjectToken* Profile/*[in,def,opt]*/);
Speechlib_tlb::ISpeechObjectTokenPtr __fastcall get_Profile(void);
void __fastcall EmulateRecognition(VARIANT TextElements/*[in]*/,
VARIANT* ElementDisplayAttributes/*[in,def,opt]*/,
long LanguageId/*[in,def,opt]*/);
Speechlib_tlb::ISpeechRecoContext* __fastcall CreateRecoContext(void);
Speechlib_tlb::ISpeechAudioFormat* __fastcall GetFormat(Speechlib_tlb::SpeechFormatType Type/*[in]*/);
VARIANT_BOOL __fastcall SetPropertyNumber(BSTR Name/*[in]*/, long Value/*[in]*/);
VARIANT_BOOL __fastcall GetPropertyNumber(BSTR Name/*[in]*/, long* Value/*[in,out]*/);
VARIANT_BOOL __fastcall SetPropertyString(BSTR Name/*[in]*/, BSTR Value/*[in]*/);
VARIANT_BOOL __fastcall GetPropertyString(BSTR Name/*[in]*/, BSTR* Value/*[in,out]*/);
VARIANT_BOOL __fastcall IsUISupported(BSTR TypeOfUI/*[in]*/,
VARIANT* ExtraData/*[in,def,opt]*/= TNoParam());
void __fastcall DisplayUI(long hWndParent/*[in]*/, BSTR Title/*[in]*/,
BSTR TypeOfUI/*[in]*/,
VARIANT* ExtraData/*[in,def,opt]*/= TNoParam());
Speechlib_tlb::ISpeechObjectTokens* __fastcall GetRecognizers(BSTR RequiredAttributes/*[in,def,opt]*/,
BSTR OptionalAttributes/*[in,def,opt]*/);
Speechlib_tlb::ISpeechObjectTokens* __fastcall GetAudioInputs(BSTR RequiredAttributes/*[in,def,opt]*/,
BSTR OptionalAttributes/*[in,def,opt]*/);
Speechlib_tlb::ISpeechObjectTokens* __fastcall GetProfiles(BSTR RequiredAttributes/*[in,def,opt]*/,
BSTR OptionalAttributes/*[in,def,opt]*/);
__property Speechlib_tlb::ISpeechObjectToken* Recognizer={ read=get_Recognizer };
__property VARIANT_BOOL AllowAudioInputFormatChangesOnNextSet={ read=get_AllowAudioInputFormatChangesOnNextSet, write=set_AllowAudioInputFormatChangesOnNextSet };
__property Speechlib_tlb::ISpeechObjectToken* AudioInput={ read=get_AudioInput };
__property Speechlib_tlb::ISpeechBaseStream* AudioInputStream={ read=get_AudioInputStream };
__property VARIANT_BOOL IsShared={ read=get_IsShared };
__property Speechlib_tlb::ISpeechRecognizerStatusPtr Status={ read=get_Status };
__property Speechlib_tlb::ISpeechObjectToken* Profile={ read=get_Profile };
__property Speechlib_tlb::SpeechRecognizerState State={ read=get_State, write=set_State, stored=false };
};
// *********************************************************************//
// COM Component Proxy Class Declaration
// Component Name : TSpLexicon
// Help String : SpLexicon Class
// Default Interface: ISpeechLexicon
// Def. Intf. Object: ISpeechLexiconPtr
// Def. Intf. DISP? : No
// Event Interface:
// TypeFlags : (2) CanCreate
// *********************************************************************//
class PACKAGE TSpLexicon : public Vcl::Oleserver::TOleServer
{