AssistantApiCoreTypesRingtoneTaskMetadataOnDeviceAlarmMetadata

GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesRingtoneTaskMetadataOnDeviceAlarmMetadata


Table of Contents ▼

Jump to a specific part of the page:

Description

This describes the alarm sound resource enum and the alarm sound label for the on device alarm sound. On-device ringtones are product specific, hence Opal/UI layer will be responsible for populating this metadata at creation/edit. The enum map will be used to convert to an internal resource id used by libassistant for accessing the asset which are not exposed to UI.

Attributes List

This module has the following attributes (case-insensitive ascending order):

View Attributes

Attributes

  1. onDeviceAlarmSound (type: String.t, default: nil)
    - Opal/UI layer will set this bit based on the user selection.
  2. onDeviceAlarmSoundLabel (type: String.t, default: nil)
    - A string label to identify the alarm sound name. Opal/UI layer will set this as per product definition. This will be used to display the name of the selected ringtone.
  3. ttsServiceRequestBytes (type: String.t, default: nil)
    - This is used to call S3 to realize the TTS. Is in the form of bytes because of a circular dependency issue in libassistant protos. It is a serialized proto of type speech.s3.TtsServiceRequest. This request will contain an ssml with the url to the ringtone files hosted on gstatic.

Type

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesRingtoneTaskMetadataOnDeviceAlarmMetadata{
onDeviceAlarmSound: String.t() | nil,
onDeviceAlarmSoundLabel: String.t() | nil,
ttsServiceRequestBytes: String.t() | nil
}

Function

@spec decode(struct(), keyword()) :: struct()

Data sourced from HexDocs : GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesRingtoneTaskMetadataOnDeviceAlarmMetadata