Reference documentation and code samples for the Google Cloud Ces V1 Client class InputAudioConfig.
InputAudioConfig configures how the CES agent should interpret the incoming audio data.
Generated from protobuf message google.cloud.ces.v1.InputAudioConfig
Namespace
Google \ Cloud \ Ces \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ audio_encoding |
int
Required. The encoding of the input audio data. |
↳ sample_rate_hertz |
int
Required. The sample rate (in Hertz) of the input audio data. |
↳ noise_suppression_level |
string
Optional. Whether to enable noise suppression on the input audio. Available values are "low", "moderate", "high", "very_high". |
getAudioEncoding
Required. The encoding of the input audio data.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type AudioEncoding. |
setAudioEncoding
Required. The encoding of the input audio data.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type AudioEncoding. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSampleRateHertz
Required. The sample rate (in Hertz) of the input audio data.
| Returns | |
|---|---|
| Type | Description |
int |
|
setSampleRateHertz
Required. The sample rate (in Hertz) of the input audio data.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getNoiseSuppressionLevel
Optional. Whether to enable noise suppression on the input audio.
Available values are "low", "moderate", "high", "very_high".
| Returns | |
|---|---|
| Type | Description |
string |
|
setNoiseSuppressionLevel
Optional. Whether to enable noise suppression on the input audio.
Available values are "low", "moderate", "high", "very_high".
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|