SOfflineSpeechRecCallbackI Class Reference

An interface that allows to receive information from SOfflineSpeechRecognizerI. More...

#include <bsapi.h>

List of all members.

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.


Detailed Description

An interface that allows to receive information from SOfflineSpeechRecognizerI.


Member Function Documentation

virtual bool BSAPI_METHOD SOfflineSpeechRecCallbackI::OnFileDone ( char *  pInputFile,
char *  pOutputFile 
) [pure virtual]

This function is called when the recognizer finish processing of waveform file.

Parameters:
pInputFile name of input waveform file
Returns:
false terminates processing

virtual bool BSAPI_METHOD SOfflineSpeechRecCallbackI::OnFileStarted ( char *  pInputFile,
char *  pOutputFile 
) [pure virtual]

This function is called before the recognizer starts processing of new file.

Parameters:
pInputFile name of input waveform file
Returns:
false terminates processing

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.

Parameters:
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)
Returns:
false terminates processing

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.

Parameters:
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)
Returns:
false terminates processing

virtual bool BSAPI_METHOD SOfflineSpeechRecCallbackI::OnTranscription ( unsigned int  interfaceID,
STranscriptionI pTrans 
) [pure virtual]

This function is called when a new transcription is available.

Parameters:
interfaceID interface ID of container that is used for the transcription
pTrans pointer to transcription container
Returns:
false terminates processing


The documentation for this class was generated from the following file:
Generated on Wed Jul 15 10:10:13 2009 for BSAPI by  doxygen 1.4.7