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:
-
| pInputFile | name of input waveform file |
| pOutputFile | name 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:
-
| pInputFile | name of input waveform file |
| pOutputFile | name 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:
-
| segmentStart | time offset of segment start in HTK units (100 ns) |
| segmentEnd | time offset of segment end in HTK units |
| channel | index of the channel |
| pTranscriptionFile | file where the transcription of segment was be saved (if enabled) |
| isValid | true 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:
-
| segmentStart | time offset of segment start in HTK units (100 ns) |
| segmentEnd | time offset of segment end in HTK units |
| channel | index of the channel |
| pTranscriptionFile | file 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:
-
| pSender | pointer to source object |
| pTrans | pointer to transcription container |
- Returns:
- false terminates processing
- Examples:
- offlinerec3.cpp.
The documentation for this class was generated from the following file: