#include <bsapi.h>
Inheritance diagram for SFeatureSegmenterI:

Public Member Functions | |
| virtual void BSAPI_METHOD | SetSegmentStartFrameExtension (int segmentStartFrameExtension=0)=0 |
| Set start segment extension in frames. | |
| virtual void BSAPI_METHOD | SetSegmentEndFrameExtension (int segmentEndFrameExtension=0)=0 |
| Set end segment extension in frames. | |
| virtual void BSAPI_METHOD | SetRepeatFrames (bool repeatFrames=false)=0 |
| Enable frame repetition. | |
| virtual void BSAPI_METHOD | SetStartFrameOffset (int startFrameOffset=0)=0 |
| Set start offset in frames. | |
| virtual void BSAPI_METHOD | SetWaitForWholeSentence (bool waitForWholeSentence=false)=0 |
| Set whether to wait for all the segments before sending segmented features. | |
| virtual void BSAPI_METHOD | SetSpeechLabel (const char *pSpeechLabel="voice")=0 |
| Set speech label to be used with segmentation. | |
| virtual void BSAPI_METHOD | SetFrameShiftMs (int frameShiftMs=10)=0 |
| Set frame shift. | |
| virtual void BSAPI_METHOD | SetTarget (SFeatureExtractionCallbackI *pTarget)=0 |
| Set target object. | |
| virtual void BSAPI_METHOD SFeatureSegmenterI::SetFrameShiftMs | ( | int | frameShiftMs = 10 |
) | [pure virtual] |
Set frame shift.
Sets the frame shift in milliseconds. Frame shift is necessary to convert incoming segment times to feature frame indices.
| frameShiftMs | frame shift in milliseconds |
| virtual void BSAPI_METHOD SFeatureSegmenterI::SetRepeatFrames | ( | bool | repeatFrames = false |
) | [pure virtual] |
Enable frame repetition.
Controls the behaviour of segment extension. If the frame repetition is enabled, segments will be extended using the first and last frame. If the frame repetition is disabled, segments will be extended using out-of-segment (nonspeech) frames. If there is not enough frames to do so (at the beginning or end of the sentence) frame repetition is used no matter what is set by this function.
| repeatFrames | enable or disable frame repetition |
| virtual void BSAPI_METHOD SFeatureSegmenterI::SetSegmentEndFrameExtension | ( | int | segmentEndFrameExtension = 0 |
) | [pure virtual] |
Set end segment extension in frames.
Sets the number of frames each segment will be extended from the end by
| segmentEndFrameExtension | number of frames |
| virtual void BSAPI_METHOD SFeatureSegmenterI::SetSegmentStartFrameExtension | ( | int | segmentStartFrameExtension = 0 |
) | [pure virtual] |
Set start segment extension in frames.
Sets the number of frames each segment will be extended from the beginning by
| segmentStartFrameExtension | number of frames |
| virtual void BSAPI_METHOD SFeatureSegmenterI::SetSpeechLabel | ( | const char * | pSpeechLabel = "voice" |
) | [pure virtual] |
Set speech label to be used with segmentation.
Sets the label value so the segments with this label coming to the OnTranscription callback will be considered as speech and will be processed
| pSpeechLabel | label of (speech) segments to be processed |
| virtual void BSAPI_METHOD SFeatureSegmenterI::SetStartFrameOffset | ( | int | startFrameOffset = 0 |
) | [pure virtual] |
Set start offset in frames.
Allows to shift frames indexing to the right. It may be useful if there was some frame repetition done by the preceding block.
| startFrameOffset | start offset in frames |
| virtual void BSAPI_METHOD SFeatureSegmenterI::SetTarget | ( | SFeatureExtractionCallbackI * | pTarget | ) | [pure virtual] |
Set target object.
Target object receives segmented features.
| pTarget | pointer to target object |
| virtual void BSAPI_METHOD SFeatureSegmenterI::SetWaitForWholeSentence | ( | bool | waitForWholeSentence = false |
) | [pure virtual] |
Set whether to wait for all the segments before sending segmented features.
| waitForWholeSentence | enable or disable waiting for whole sentence |
1.4.7