Gemini Enterprise for Customer Experience v1 API - Class AmbientSoundConfig (1.0.0-beta01)

public sealed class AmbientSoundConfig : IMessage<AmbientSoundConfig>, IEquatable<AmbientSoundConfig>, IDeepCloneable<AmbientSoundConfig>, IBufferMessage, IMessage

Reference documentation and code samples for the Gemini Enterprise for Customer Experience v1 API class AmbientSoundConfig.

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

Inheritance

object > AmbientSoundConfig

Namespace

Google.Cloud.Ces.V1

Assembly

Google.Cloud.Ces.V1.dll

Constructors

AmbientSoundConfig()

public AmbientSoundConfig()

AmbientSoundConfig(AmbientSoundConfig)

public AmbientSoundConfig(AmbientSoundConfig other)
Parameter
Name Description
other AmbientSoundConfig

Properties

GcsUri

public string GcsUri { get; set; }

Optional. Ambient noise as a mono-channel, 16kHz WAV file stored in Cloud Storage.

Note: Please make sure the CES service agent service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com has storage.objects.get permission to the Cloud Storage object.

Property Value
Type Description
string

HasGcsUri

public bool HasGcsUri { get; }

Gets whether the "gcs_uri" field is set

Property Value
Type Description
bool

HasPrebuiltAmbientNoise

[Obsolete]
public bool HasPrebuiltAmbientNoise { get; }

Gets whether the "prebuilt_ambient_noise" field is set

Property Value
Type Description
bool

HasPrebuiltAmbientSound

public bool HasPrebuiltAmbientSound { get; }

Gets whether the "prebuilt_ambient_sound" field is set

Property Value
Type Description
bool

PrebuiltAmbientNoise

[Obsolete]
public AmbientSoundConfig.Types.PrebuiltAmbientNoise PrebuiltAmbientNoise { get; set; }

Optional. Deprecated: prebuilt_ambient_noise is deprecated in favor of prebuilt_ambient_sound.

Property Value
Type Description
AmbientSoundConfigTypesPrebuiltAmbientNoise

PrebuiltAmbientSound

public string PrebuiltAmbientSound { get; set; }

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"
Property Value
Type Description
string

SourceCase

public AmbientSoundConfig.SourceOneofCase SourceCase { get; }
Property Value
Type Description
AmbientSoundConfigSourceOneofCase

VolumeGainDb

public double VolumeGainDb { get; set; }

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.

Property Value
Type Description
double