Sound Sensor Trait
API Service: SoundSensorApi
Trait for devices that measure sound/noise levels.
| Method | Request Type | Response Type | Description |
|---|---|---|---|
| GetSoundLevel | GetSoundLevelRequest | SoundLevel | |
| PullSoundLevel | PullSoundLevelRequest | PullSoundLevelResponse stream |
Info Service: SoundSensorInfo
| Method | Request Type | Response Type | Description |
|---|---|---|---|
| DescribeSoundLevel | DescribeSoundLevelRequest | SoundLevelSupport |
SoundLevel
SoundLevel represents a sound/noise level.
| Field Name | Type | Description |
|---|---|---|
| sound_pressure_level | float | Optional. The measured sound/noise level, usually in dBA or dB, use Info service to check the unit. Omitted means unknown sound/noise level. |
SoundLevelSupport
| Field Name | Type | Description |
|---|---|---|
| resource_support | smartcore.types.ResourceSupport | How a named device supports read/write/pull apis |
| sound_level_unit | string | The unit associated with the sound_pressure_level value. Known units: - dBA - decibels SPL, A-weighted - dB - decibels SPL, unweighted |
GetSoundLevelRequest
| Field Name | Type | Description |
|---|---|---|
| name | string | |
| read_mask | google.protobuf.FieldMask |
PullSoundLevelRequest
| Field Name | Type | Description |
|---|---|---|
| name | string | |
| read_mask | google.protobuf.FieldMask | |
| updates_only | bool |
PullSoundLevelResponse
| Field Name | Type | Description |
|---|---|---|
| changes | repeated PullSoundLevelResponse.Change |
PullSoundLevelResponse.Change
| Field Name | Type | Description |
|---|---|---|
| name | string | |
| change_time | google.protobuf.Timestamp | |
| sound_level | SoundLevel |
DescribeSoundLevelRequest
| Field Name | Type | Description |
|---|---|---|
| name | string |