Package: android.hardware.soundtrigger@2.0

types

Properties

SoundModelHandle

typedef int32_t SoundModelHandle

SoundModelType

enum SoundModelType: int32_t

Sound model types modes used in ISoundTriggerHw.SoundModel

Details
Members
UNKNOWN = -1
use for unspecified sound model type
KEYPHRASE = 0
use for key phrase sound models
GENERIC = 1
use for all models other than keyphrase

RecognitionMode

enum RecognitionMode: uint32_t

Recognition modes used in ISoundTriggerHw.RecognitionConfig, ISoundTriggerHw.Properties or PhraseRecognitionExtra

Details
Members
VOICE_TRIGGER = ( 1 << 0 )
simple voice trigger
USER_IDENTIFICATION = ( 1 << 1 )
trigger only if one user in model identified
USER_AUTHENTICATION = ( 1 << 2 )
trigger only if one user in mode authenticated
GENERIC_TRIGGER = ( 1 << 3 )
generic sound trigger

ConfidenceLevel

struct ConfidenceLevel {uint32_t userId; /** levelPercent}

Confidence level for each user in structure PhraseRecognitionExtra

Details
Members
userId
user ID
levelPercent
confidence level in percent(0 - 100):

PhraseRecognitionExtra

struct PhraseRecognitionExtra {uint32_t id; uint32_t recognitionModes; uint32_t confidenceLevel; vec levels}

Specialized recognition event for key phrase detection

Details
Members
id
keyphrase ID
recognitionModes
recognition modes used for this keyphrase
confidenceLevel
confidence level for mode RecognitionMode.VOICE_TRIGGER
levels
list of confidence levels per user for RecognitionMode.USER_IDENTIFICATION and RecognitionMode.USER_AUTHENTICATION