www.pudn.com > 3yuyinshibie.rar > BSR.H


#ifndef	__BSR_H__
#define	__BSR_H__
//	write your header here
extern 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