#include <bsapi.h>
Public Member Functions | |
| virtual bool BSAPI_METHOD | OnFileStarted (char *pInputFile, char *pOutputFile)=0 |
| This function is called before the recognizer starts processing of new file. | |
| virtual bool BSAPI_METHOD | OnSegmentStarted (long_long segmentStart, long_long segmentEnd, char *pTranscriptionFile)=0 |
| This function is called before the recognizer starts processing of new speech segment. | |
| virtual bool BSAPI_METHOD | OnTranscription (unsigned int interfaceID, STranscriptionI *pTrans)=0 |
| This function is called when a new transcription is available. | |
| virtual bool BSAPI_METHOD | OnSegmentDone (long_long segmentStart, long_long segmentEnd, char *pTranscriptionFile, bool isValid)=0 |
| This function is called after the recognizer finish processing of speech segment. | |
| virtual bool BSAPI_METHOD | OnFileDone (char *pInputFile, char *pOutputFile)=0 |
| This function is called when the recognizer finish processing of waveform file. | |
| virtual bool BSAPI_METHOD SOfflineSpeechRecCallbackI::OnFileDone | ( | char * | pInputFile, | |
| char * | pOutputFile | |||
| ) | [pure virtual] |
This function is called when the recognizer finish processing of waveform file.
| pInputFile | name of input waveform file |
| virtual bool BSAPI_METHOD SOfflineSpeechRecCallbackI::OnFileStarted | ( | char * | pInputFile, | |
| char * | pOutputFile | |||
| ) | [pure virtual] |
This function is called before the recognizer starts processing of new file.
| pInputFile | name of input waveform file |
| virtual bool BSAPI_METHOD SOfflineSpeechRecCallbackI::OnSegmentDone | ( | long_long | segmentStart, | |
| long_long | segmentEnd, | |||
| char * | pTranscriptionFile, | |||
| bool | isValid | |||
| ) | [pure virtual] |
This function is called after the recognizer finish processing of speech segment.
| segmentStart | time offset of segment start in HTK units (100 ns) | |
| segmentEnd | time offset of segment end in HTK units | |
| pTranscriptionFile | file where the transcription of segment was be saved (if enabled) |
| virtual bool BSAPI_METHOD SOfflineSpeechRecCallbackI::OnSegmentStarted | ( | long_long | segmentStart, | |
| long_long | segmentEnd, | |||
| char * | pTranscriptionFile | |||
| ) | [pure virtual] |
This function is called before the recognizer starts processing of new speech segment.
| segmentStart | time offset of segment start in HTK units (100 ns) | |
| segmentEnd | time offset of segment end in HTK units | |
| pTranscriptionFile | file where the transcription of segment will be saved (if enabled) |
| virtual bool BSAPI_METHOD SOfflineSpeechRecCallbackI::OnTranscription | ( | unsigned int | interfaceID, | |
| STranscriptionI * | pTrans | |||
| ) | [pure virtual] |
This function is called when a new transcription is available.
| interfaceID | interface ID of container that is used for the transcription | |
| pTrans | pointer to transcription container |
1.4.7