Class AmbientSoundConfig (0.3.0)

AmbientSoundConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Configuration for the ambient sound to be played with the synthesized agent response, to enhance the naturalness of the conversation.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

Name Description
prebuilt_ambient_noise google.cloud.ces_v1beta.types.AmbientSoundConfig.PrebuiltAmbientNoise
Optional. Deprecated: prebuilt_ambient_noise is deprecated in favor of prebuilt_ambient_sound. This field is a member of oneof_ source.
gcs_uri str
Optional. Ambient noise as a mono-channel, 16kHz WAV file stored in `Cloud Storage
prebuilt_ambient_sound str
Optional. Name of the prebuilt ambient sound. Valid values are: - "coffee_shop" - "keyboard" - "keypad" - "hum" - "office_1" - "office_2" - "office_3" - "room_1" - "room_2" - "room_3" - "room_4" - "room_5" - "air_conditioner". This field is a member of oneof_ source.
volume_gain_db float
Optional. Volume gain (in dB) of the normal native volume supported by ambient noise, in the range [-96.0, 16.0]. If unset, or set to a value of 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB) will play at approximately half the amplitude of the normal native signal amplitude. A value of +6.0 (dB) will play at approximately twice the amplitude of the normal native signal amplitude. We strongly recommend not to exceed +10 (dB) as there's usually no effective increase in loudness for any value greater than that.

Classes

PrebuiltAmbientNoise

PrebuiltAmbientNoise(value)

Prebuilt ambient noise.