BSAPI
Public Member Functions
SFeatureSegmenterI Class Reference

Receives features and segmentation and resends features by segments. More...

#include <bsapi.h>

Inheritance diagram for SFeatureSegmenterI:
SUnknownI SFeatureExtractionCallbackI STransCallbackI

List of all members.

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.

Detailed Description

Receives features and segmentation and resends features by segments.


Member Function Documentation

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.

Parameters:
frameShiftMsframe 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.

Parameters:
repeatFramesenable or disable frame repetition
See also:
SetSegmentStartFrameExtension()
SetSegmentEndFrameExtension()
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

Parameters:
segmentEndFrameExtensionnumber 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

Parameters:
segmentStartFrameExtensionnumber 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

Parameters:
pSpeechLabellabel 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.

Parameters:
startFrameOffsetstart offset in frames
virtual void BSAPI_METHOD SFeatureSegmenterI::SetTarget ( SFeatureExtractionCallbackI pTarget) [pure virtual]

Set target object.

Target object receives segmented features.

Parameters:
pTargetpointer 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.

Parameters:
waitForWholeSentenceenable or disable waiting for whole sentence

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