CommandEngine.h
资源名称:语音程序.rar [点击查看]
上传用户:lczygg
上传日期:2007-07-03
资源大小:2947k
文件大小:2k
源码类别:
语音合成与识别
开发平台:
Visual C++
- #ifndef DllImport
- #define DllImport extern "C" __declspec( dllimport )
- #endif
- #ifndef WM_DRAGONVOICE_FIRM
- #define WM_DRAGONVOICE_FIRM (WM_USER+11)
- #define WM_DRAGONVOICE_GETVOLUME (WM_USER+12)
- #define WM_NEWUTTERANCE (WM_APP+206+1)
- #define WM_ADDWAVEFRAME (WM_APP+206+2)
- #define WM_ENDUTTERANCE (WM_APP+206+3)
- #endif
- //SET PARAMETERS
- #ifndef SET_PARAMETERS
- #define SET_PARAMETERS
- #define SET_EP_CHECK 0
- #define SET_CONVERT 1
- #endif
- //command engines declaration
- //
- DllImport void SrSetRelativePath(char * PathName);
- DllImport void SrSetMsgTarget(HWND hwnd);
- DllImport int SrStartDragonVoice(char * modelType);
- DllImport int SrInitDragonVoice(char * PathName, char * modelType, HWND hwnd); //added by pjt
- DllImport int SrExitDragonVoice(void);
- DllImport int SrMicOn(void);
- DllImport int SrMicOff(void);
- DllImport int SrPauseAudio(void);
- DllImport int SrResumeAudio(void);
- DllImport int SrGetAudioVolume(void);
- DllImport void SrGetFirmWords(char ** firmRes, int &nWrd);
- DllImport int SrGetAllCmd(char * cmd[]);
- DllImport int SrLoadCommandMode(char * CommandSetName);
- DllImport int SrUnLoadCommandMode(char * CommandSetName);
- DllImport int SrSetActiveCommand(char * CommandSetName);
- DllImport int SrGetActiveCommand(char* CommandSetName);
- DllImport int SrConvertInit(void);
- DllImport int SrConvertExit(void);
- DllImport int SrAddWord(char * word, char * pinyin);
- DllImport int SrDeleteWord(char * word);
- DllImport int SrGenerateLextree(char* strWrds[], int nWrd, char* CommandSetName, char** strPinyin = NULL, int* pWrongIdx = NULL);
- DllImport int SrNewCommandSet(char* SourceFile, char* CommandSetName);
- DllImport int SrDeleteCommandSet(char* CommandSetName);
- DllImport int SrBatchWavTest(void);
- DllImport void SrSingleWavTest(char * WaveFileName, char ** strWrd, int &nWrd);
- DllImport int SrLogWave(char* strWavFileName);
- DllImport int SrSetParameter(int ParaID, int value);