⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bsr.h

📁 一个基于凌阳91A的非特定语音识别例子,能够识别六句英文句子.很好的一个程序
💻 H
字号:
#ifndef	__BSR_H__#define	__BSR_H__//	write your header hereextern void BSRStartPlay(int *BufferAddr,int NumSample,int BankNo);extern void BSRAudioStop();//....This function is used to clear all interrupt, so the audio function is disabled.extern void BSR_PauseRecognizer();//....This function is used to temporary stop the recognizer. After calling this function//all resource can be used by the main program, including CPU, RAM, Audio and Interrupt.extern void BSR_ResumeRecognizer();//....Call this function to continue the recognition process after BSRPause().extern void BSR_SetSensitivity(int CommandID, int Sensitivity);//....This function is used to set the level of rejection for all words.//When recognizer is activated, this value will be added to every rejection thresholds defined //in the model, value of zero indicates that no additional level is added. extern void BSR_SetSensitivityEx(int NumParam,...);extern void BSR_SetPreferenceLevel(int CommandID, int DistWeight);//....This function is used to set the distance weight of currently selected model group.//extern void BSR_SetPreferenceLevelEx(int NumParam,...);extern void BSR_InitRecognizer(void);//....This function is used to initialize the recognizer engine.extern int BSR_GetResult(void);//....This function is used to perform recognition. Return value = 0 if no recognition result//is available, otherwise it returns the word index.extern void BSR_StopRecognizer(void);extern void BSR_SelectGroup(int GroupNo);//....This function is used to select the model group. GroupNo begins from 0 to NumGroup-1.extern int BSR_GetRecognizerScore(void);//....This function return the score of current recognizer result. The value is in the range of // -0x1000 to 0x1000. Negative value means that the result is rejected.extern int BSR_GetRejectedResult(void);//....If current recognizer result is not rejected, this function will return 0.extern void BSR_EnableCPUIndicator(void);extern void BSR_DisableCPUIndicator(void);extern void BSR_InitTransmission();extern void BSR_TransmitResult(int Res);extern int BSR_TestIsStart();extern void BSR_DisableRejection();extern void BSR_SetRejectionLevel(int RejectLevel); //RejectLevel from 1 to 4#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -