#include <mmf/server/devsoundstandardcustominterfaces.h>
class MSpeechEncoderConfig |
Public Member Functions | |
---|---|
pure virtual TInt | GetVadMode(TBool &) |
pure virtual TInt | SetVadMode(TBool) |
This class provides an interface to those CMMFHwDevices providing speech encoding. This interface is used for querying and configuring the operational modes of speech encoders as supported by those specific encoders. If a speech encoder does not support a mode provided by the interface, it will return KErrNotSupported.
Gets the current state of the voice activity detection (VAD) mode. This method can be called at all times - while actively encoding or not.
Parameter | Description |
---|---|
aVadModeOn | On output ETrue = On, EFalse = Off |
Returns: KErrNone if successful, KErrNotSupported if this method is not implemented or not supported by the encoder.
Controls voice activity detection (VAD) mode. This method can be called at all times - while actively encoding or not. It should be noted that a VAD mode change could also instigate a change in the mode of encoding (fixed rate encoding versus variable rate) e.g. in cases where VAD requires variable rate encoding. The effects of activating VAD mode behaviour should be documented in the CMMFHwDevice specification implementing it.
Parameter | Description |
---|---|
aVadModeOn | ETrue=On, EFalse=Off |
Returns: KErrNone if successful. KErrNotSupported if this method is not implemented or not supported by the encoder.