CommandEngine.h
上传用户:lczygg
上传日期:2007-07-03
资源大小:2947k
文件大小:2k
源码类别:

语音合成与识别

开发平台:

Visual C++

  1. #ifndef DllImport
  2. #define DllImport  extern "C" __declspec( dllimport )
  3. #endif
  4. #ifndef WM_DRAGONVOICE_FIRM
  5. #define WM_DRAGONVOICE_FIRM  (WM_USER+11)
  6. #define WM_DRAGONVOICE_GETVOLUME (WM_USER+12)
  7. #define WM_NEWUTTERANCE  (WM_APP+206+1)
  8. #define WM_ADDWAVEFRAME  (WM_APP+206+2)
  9. #define WM_ENDUTTERANCE  (WM_APP+206+3)
  10. #endif
  11. //SET PARAMETERS
  12. #ifndef SET_PARAMETERS
  13. #define SET_PARAMETERS
  14. #define SET_EP_CHECK  0
  15. #endif
  16. //command engines declaration
  17. //
  18. DllImport void SrSetRelativePath(char * PathName);
  19. DllImport void SrSetMsgTarget(HWND hwnd);
  20. DllImport int SrStartDragonVoice(char * modelType);
  21. DllImport int SrInitDragonVoice(char * PathName, char * modelType, HWND hwnd); //added by pjt
  22. DllImport int SrExitDragonVoice(void);
  23. DllImport int SrMicOn(void);
  24. DllImport int SrMicOff(void);
  25. DllImport int SrPauseAudio(void);
  26. DllImport int SrResumeAudio(void);
  27. DllImport int SrGetAudioVolume(void);
  28. DllImport void SrGetFirmWords(char ** firmRes, int &nWrd);
  29. DllImport int SrGetAllCmd(char * cmd[]);
  30. DllImport int SrLoadCommandMode(char * CommandSetName);
  31. DllImport int SrUnLoadCommandMode(char * CommandSetName);
  32. DllImport int SrSetActiveCommand(char * CommandSetName);
  33. DllImport int SrGetActiveCommand(char* CommandSetName);
  34. DllImport int SrConvertInit(void);
  35. DllImport int SrConvertExit(void);
  36. DllImport int SrAddWord(char * word, char * pinyin[]);
  37. DllImport int SrDeleteWord(char * word);
  38. DllImport int SrGenerateLextree(char* strWrds[], int nWrd, char* CommandSetName, char** strPinyin = NULL, int* pWrongIdx = NULL);
  39. DllImport int SrNewCommandSet(char* SourceFile, char* CommandSetName);
  40. DllImport int SrDeleteCommandSet(char* CommandSetName);
  41. DllImport int SrBatchWavTest(void);
  42. DllImport void SrSingleWavTest(char * WaveFileName, char ** strWrd, int &nWrd);
  43. DllImport int SrLogWave(char* strWavFileName);
  44. DllImport int SrSetParameter(int ParaID, int value);