Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

113 lines
5.4 KiB

  1. // MSPromptEng.idl : IDL source for MSPromptEng.dll
  2. //
  3. // This file will be processed by the MIDL tool to
  4. // produce the type library (MSPromptEng.tlb) and marshalling code.
  5. //
  6. // Created by JOEM 01-2000
  7. // Copyright (C) 2000 Microsoft Corporation
  8. // All Rights Reserved
  9. //
  10. import "oaidl.idl";
  11. import "ocidl.idl";
  12. import "sapiddk.idl";
  13. [
  14. object,
  15. uuid(7ba9b129-7877-4398-86a3-049c1d410f58),
  16. helpstring("IPromptEntry Interface"),
  17. pointer_default(unique)
  18. ]
  19. interface IPromptEntry : IUnknown
  20. {
  21. [helpstring("method SetId")] HRESULT SetId(const WCHAR* pszId);
  22. [helpstring("method GetId")] HRESULT GetId(const WCHAR** pszId);
  23. [helpstring("method SetText")] HRESULT SetText(const WCHAR* pszText);
  24. [helpstring("method GetText")] HRESULT GetText(const WCHAR** pszText);
  25. [helpstring("method SetOriginalText")] HRESULT SetOriginalText(const WCHAR* pszText);
  26. [helpstring("method GetOriginalText")] HRESULT GetOriginalText(const WCHAR** pszText);
  27. [helpstring("method SetFileName")] HRESULT SetFileName(const WCHAR* pszFileName);
  28. [helpstring("method GetFileName")] HRESULT GetFileName(const WCHAR** pszFileName);
  29. [helpstring("method SetStartPhone")] HRESULT SetStartPhone(const WCHAR* pszStartPhone);
  30. [helpstring("method GetStartPhone")] HRESULT GetStartPhone(const WCHAR** ppszStartPhone);
  31. [helpstring("method SetEndPhone")] HRESULT SetEndPhone(const WCHAR* pszEndPhone);
  32. [helpstring("method GetEndPhone")] HRESULT GetEndPhone(const WCHAR** ppszEndPhone);
  33. [helpstring("method SetLeftContext")] HRESULT SetLeftContext(const WCHAR* pszLeftContext);
  34. [helpstring("method GetLeftContext")] HRESULT GetLeftContext(const WCHAR** ppszLeftContext);
  35. [helpstring("method SetRightContext")] HRESULT SetRightContext(const WCHAR* pszRightContext);
  36. [helpstring("method GetRightContext")] HRESULT GetRightContext(const WCHAR** ppszRightContext);
  37. [helpstring("method SetStart")] HRESULT SetStart(const double dFrom);
  38. [helpstring("method GetStart")] HRESULT GetStart(double* dFrom);
  39. [helpstring("method SetEnd")] HRESULT SetEnd(const double dTo);
  40. [helpstring("method GetEnd")] HRESULT GetEnd(double* dTo);
  41. [helpstring("method AddTag")] HRESULT AddTag(const WCHAR* pszTag);
  42. [helpstring("method RemoveTag")] HRESULT RemoveTag(const USHORT unId);
  43. [helpstring("method GetTag")] HRESULT GetTag(const WCHAR** ppszTag, const USHORT unId);
  44. [helpstring("method CountTags")] HRESULT CountTags(USHORT* unTagCount);
  45. [helpstring("method GetSamples")] HRESULT GetSamples(SHORT** pnSamples, int* iNumSamples, WAVEFORMATEX* pFormat);
  46. [helpstring("method GetFormat")] HRESULT GetFormat(WAVEFORMATEX** ppFormat);
  47. }
  48. [
  49. object,
  50. uuid(58FE62DE-9BBB-4538-B2BB-FA9766FF2F84),
  51. helpstring("IPromptDb Interface"),
  52. pointer_default(unique)
  53. ]
  54. interface IPromptDb : IUnknown
  55. {
  56. [helpstring("method NewDb")] HRESULT NewDb(const WCHAR *logicalName, const WCHAR *pathName);
  57. [helpstring("method AddDb")] HRESULT AddDb(const WCHAR *logicalName, const WCHAR *pathName, const WCHAR *pszIdSet, const USHORT loadOption);
  58. [helpstring("method UnloadDb")] HRESULT UnloadDb(const WCHAR* pszLogicalName);
  59. [helpstring("method ActivateDbName")] HRESULT ActivateDbName(const WCHAR *pszLogicalName);
  60. [helpstring("method ActivateDbNumber")] HRESULT ActivateDbNumber(const USHORT unIndex);
  61. [helpstring("method UpdateDb")] HRESULT UpdateDb(WCHAR* pszPath);
  62. [helpstring("method CountDb")] HRESULT CountDb(USHORT *unCount);
  63. [helpstring("method SearchDb")] HRESULT SearchDb(const WCHAR* pszQuery, USHORT* unIdCount);
  64. [helpstring("method RetrieveSearchItem")] HRESULT RetrieveSearchItem(const USHORT unId, const WCHAR** ppszId);
  65. [helpstring("method GetLogicalName")] HRESULT GetLogicalName(const WCHAR** ppszLogicalName);
  66. [helpstring("method GetNextEntry")] HRESULT GetNextEntry(USHORT* punId1, USHORT* punId2, IPromptEntry** ppIPE);
  67. [helpstring("method FindEntry")] HRESULT FindEntry(const WCHAR* id, IPromptEntry** ppIPE);
  68. [helpstring("method NewEntry")] HRESULT NewEntry(IPromptEntry** ppIPE);
  69. [helpstring("method SaveEntry")] HRESULT SaveEntry(IPromptEntry* pIPE);
  70. [helpstring("method RemoveEntry")] HRESULT RemoveEntry(const WCHAR* id);
  71. [helpstring("method OpenEntryFile")] HRESULT OpenEntryFile(IPromptEntry* pIPE, WAVEFORMATEX* pWaveFormatEx);
  72. [helpstring("method CloseEntryFile")] HRESULT CloseEntryFile();
  73. [helpstring("method GetPromptFormat")] HRESULT GetPromptFormat(WAVEFORMATEX **ppwf);
  74. [helpstring("method SetOutputFormat")] HRESULT SetOutputFormat(const GUID * pOutputFormatId, const WAVEFORMATEX *pOutputFormat);
  75. [helpstring("method SetEntryGain")] HRESULT SetEntryGain(const double dEntryGain);
  76. [helpstring("method SetXMLVolume")] HRESULT SetXMLVolume(const ULONG ulXMLVol);
  77. [helpstring("method SetXMLRate")] HRESULT SetXMLRate(const long lXMLRate);
  78. [helpstring("method SendEntrySamples")] HRESULT SendEntrySamples(IPromptEntry* pIPE, ISpTTSEngineSite* pOutputSite, ULONG ulTextOffset, ULONG ulTextLen);
  79. }
  80. [
  81. uuid(30DD8119-2647-46E2-AB2C-E7B8404D58ED),
  82. version(1.0),
  83. helpstring("MS Prompt Engine 1.0 Type Library")
  84. ]
  85. library MSPROMPTENGLib
  86. {
  87. importlib("stdole32.tlb");
  88. importlib("stdole2.tlb");
  89. [
  90. uuid(4BA3C5FA-2236-4EE7-BA28-1C8B39D31D48),
  91. helpstring("PromptEng Class")
  92. ]
  93. coclass PromptEng
  94. {
  95. [default] interface ISpTTSEngine;
  96. interface ISpObjectWithToken;
  97. };
  98. [
  99. uuid(B1F6D8FF-0F5E-4DEC-B2F5-D581BBBF2575),
  100. helpstring("PromptDb Class")
  101. ]
  102. coclass PromptDb
  103. {
  104. [default] interface IPromptDb;
  105. };
  106. };