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. #define SET_CONVERT  1
  16. #endif
  17. //command engines declaration
  18. //
  19. DllImport void SrSetRelativePath(char * PathName);
  20. DllImport void SrSetMsgTarget(HWND hwnd);
  21. DllImport int SrStartDragonVoice(char * modelType);
  22. DllImport int SrInitDragonVoice(char * PathName, char * modelType, HWND hwnd); //added by pjt
  23. DllImport int SrExitDragonVoice(void);
  24. DllImport int SrMicOn(void);
  25. DllImport int SrMicOff(void);
  26. DllImport int SrPauseAudio(void);
  27. DllImport int SrResumeAudio(void);
  28. DllImport int SrGetAudioVolume(void);
  29. DllImport void SrGetFirmWords(char ** firmRes, int &nWrd);
  30. DllImport int SrGetAllCmd(char * cmd[]);
  31. DllImport int SrLoadCommandMode(char * CommandSetName);
  32. DllImport int SrUnLoadCommandMode(char * CommandSetName);
  33. DllImport int SrSetActiveCommand(char * CommandSetName);
  34. DllImport int SrGetActiveCommand(char* CommandSetName);
  35. DllImport int SrConvertInit(void);
  36. DllImport int SrConvertExit(void);
  37. DllImport int SrAddWord(char * word, char * pinyin);
  38. DllImport int SrDeleteWord(char * word);
  39. DllImport int SrGenerateLextree(char* strWrds[], int nWrd, char* CommandSetName, char** strPinyin = NULL, int* pWrongIdx = NULL);
  40. DllImport int SrNewCommandSet(char* SourceFile, char* CommandSetName);
  41. DllImport int SrDeleteCommandSet(char* CommandSetName);
  42. DllImport int SrBatchWavTest(void);
  43. DllImport void SrSingleWavTest(char * WaveFileName, char ** strWrd, int &nWrd);
  44. DllImport int SrLogWave(char* strWavFileName);
  45. DllImport int SrSetParameter(int ParaID, int value);