Interface AmbientSoundConfigOrBuilder (0.1.0)

public interface AmbientSoundConfigOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getGcsUri()

public abstract String getGcsUri()

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.

string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The gcsUri.

getGcsUriBytes()

public abstract ByteString getGcsUriBytes()

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.

string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for gcsUri.

getPrebuiltAmbientNoise() (deprecated)

public abstract AmbientSoundConfig.PrebuiltAmbientNoise getPrebuiltAmbientNoise()

Deprecated. google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See google/cloud/ces/v1/app.proto;l=285

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

.google.cloud.ces.v1.AmbientSoundConfig.PrebuiltAmbientNoise prebuilt_ambient_noise = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AmbientSoundConfig.PrebuiltAmbientNoise

The prebuiltAmbientNoise.

getPrebuiltAmbientNoiseValue() (deprecated)

public abstract int getPrebuiltAmbientNoiseValue()

Deprecated. google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See google/cloud/ces/v1/app.proto;l=285

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

.google.cloud.ces.v1.AmbientSoundConfig.PrebuiltAmbientNoise prebuilt_ambient_noise = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for prebuiltAmbientNoise.

getPrebuiltAmbientSound()

public abstract String getPrebuiltAmbientSound()

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"

string prebuilt_ambient_sound = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The prebuiltAmbientSound.

getPrebuiltAmbientSoundBytes()

public abstract ByteString getPrebuiltAmbientSoundBytes()

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"

string prebuilt_ambient_sound = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for prebuiltAmbientSound.

getSourceCase()

public abstract AmbientSoundConfig.SourceCase getSourceCase()
Returns
Type Description
AmbientSoundConfig.SourceCase

getVolumeGainDb()

public abstract double getVolumeGainDb()

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.

double volume_gain_db = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
double

The volumeGainDb.

hasGcsUri()

public abstract boolean hasGcsUri()

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.

string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the gcsUri field is set.

hasPrebuiltAmbientNoise() (deprecated)

public abstract boolean hasPrebuiltAmbientNoise()

Deprecated. google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See google/cloud/ces/v1/app.proto;l=285

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

.google.cloud.ces.v1.AmbientSoundConfig.PrebuiltAmbientNoise prebuilt_ambient_noise = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the prebuiltAmbientNoise field is set.

hasPrebuiltAmbientSound()

public abstract boolean hasPrebuiltAmbientSound()

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"

string prebuilt_ambient_sound = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the prebuiltAmbientSound field is set.