BSAPI
Public Member Functions
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 (const char *pInputFile, const 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, int channel, const char *pTranscriptionFile)=0
 This function is called before the recognizer starts processing of new speech segment.
virtual bool BSAPI_METHOD OnTranscription (SUnknownI *pSender, STranscriptionI *pTrans)=0
 This function is called when a new transcription is available.
virtual bool BSAPI_METHOD OnSegmentDone (long_long segmentStart, long_long segmentEnd, int channel, const char *pTranscriptionFile, bool isValid)=0
 This function is called after the recognizer finish processing of speech segment.
virtual bool BSAPI_METHOD OnFileDone (const char *pInputFile, const 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.

Examples:

offlinerec3.cpp.


Member Function Documentation

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

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

Parameters:
pInputFilename of input waveform file
pOutputFilename of output transcription file
Returns:
false terminates processing
Examples:
offlinerec3.cpp.
virtual bool BSAPI_METHOD SOfflineSpeechRecCallbackI::OnFileStarted ( const char *  pInputFile,
const char *  pOutputFile 
) [pure virtual]

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

Parameters:
pInputFilename of input waveform file
pOutputFilename of output transcription file
Returns:
false terminates processing
Examples:
offlinerec3.cpp.
virtual bool BSAPI_METHOD SOfflineSpeechRecCallbackI::OnSegmentDone ( long_long  segmentStart,
long_long  segmentEnd,
int  channel,
const char *  pTranscriptionFile,
bool  isValid 
) [pure virtual]

This function is called after the recognizer finish processing of speech segment.

Parameters:
segmentStarttime offset of segment start in HTK units (100 ns)
segmentEndtime offset of segment end in HTK units
channelindex of the channel
pTranscriptionFilefile where the transcription of segment was be saved (if enabled)
isValidtrue if the segment is valid, false otherwise
Returns:
false terminates processing
Examples:
offlinerec3.cpp.
virtual bool BSAPI_METHOD SOfflineSpeechRecCallbackI::OnSegmentStarted ( long_long  segmentStart,
long_long  segmentEnd,
int  channel,
const char *  pTranscriptionFile 
) [pure virtual]

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

Parameters:
segmentStarttime offset of segment start in HTK units (100 ns)
segmentEndtime offset of segment end in HTK units
channelindex of the channel
pTranscriptionFilefile where the transcription of segment will be saved (if enabled)
Returns:
false terminates processing
Examples:
offlinerec3.cpp.
virtual bool BSAPI_METHOD SOfflineSpeechRecCallbackI::OnTranscription ( SUnknownI pSender,
STranscriptionI pTrans 
) [pure virtual]

This function is called when a new transcription is available.

Parameters:
pSenderpointer to source object
pTranspointer to transcription container
Returns:
false terminates processing
Examples:
offlinerec3.cpp.

The documentation for this class was generated from the following file: