1 /* 2 * Copyright (C) 2019 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package android.media.soundtrigger_middleware; 17 18 /** 19 * Capabilities of a sound trigger module. 20 * {@hide} 21 */ 22 parcelable SoundTriggerModuleProperties { 23 /** Implementor name */ 24 String implementor; 25 /** Implementation description */ 26 String description; 27 /** Implementation version */ 28 int version; 29 /** 30 * Unique implementation ID. The UUID must change with each version of 31 the engine implementation */ 32 String uuid; 33 /** 34 * String naming the architecture used for running the supported models. 35 * (eg. a platform running models on a DSP could implement this string to convey the DSP 36 * architecture used) 37 * This property is supported for soundtrigger HAL v2.3 and above. 38 * If running a previous version, the string will be empty. 39 */ 40 String supportedModelArch; 41 /** Maximum number of concurrent sound models loaded */ 42 int maxSoundModels; 43 /** Maximum number of key phrases */ 44 int maxKeyPhrases; 45 /** Maximum number of concurrent users detected */ 46 int maxUsers; 47 /** All supported modes. e.g RecognitionMode.VOICE_TRIGGER */ 48 int recognitionModes; 49 /** Supports seamless transition from detection to capture */ 50 boolean captureTransition; 51 /** Maximum buffering capacity in ms if captureTransition is true */ 52 int maxBufferMs; 53 /** Supports capture by other use cases while detection is active */ 54 boolean concurrentCapture; 55 /** Returns the trigger capture in event */ 56 boolean triggerInEvent; 57 /** 58 * Rated power consumption when detection is active with TDB 59 * silence/sound/speech ratio */ 60 int powerConsumptionMw; 61 /** 62 * Bit field encoding of the AudioCapabilities 63 * supported by the firmware. 64 * This property is supported for soundtrigger HAL v2.3 and above. 65 * If running a previous version, this value will be 0. 66 */ 67 int audioCapabilities; 68 } 69