Required. The configuration of the synthesized audio.

Generated from protobuf field <code>.google.cloud.texttospeech.v1.AudioConfig audio_config = 3;</code>
@param \Google\Cloud\TextToSpeech\V1\AudioConfig $var
@return $this
177549
public function setAudioConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\TextToSpeech\V1\AudioConfig::class);
        $this->audio_config = $var;

        return $this;
    }
1175605
public function setExtension($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\FieldDescriptorProto::class);
        $this->extension = $arr;
        $this->has_extension = true;

        return $this;
    }
394764
public function setLDiversityConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\PrivacyMetric_LDiversityConfig::class);
        $this->writeOneof(4, $var);

        return $this;
    }
207134
public function setOriginalMediaType($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Speech\V1p1beta1\RecognitionMetadata_OriginalMediaType::class);
        $this->original_media_type = $var;

        return $this;
    }
732447
public function setMethod($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grpc\Gcp\MethodConfig::class);
        $this->method = $arr;

        return $this;
    }
671918
public function setGender($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Language\V1beta2\PartOfSpeech_Gender::class);
        $this->gender = $var;

        return $this;
    }
534635
public function setContext($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\Context::class);
        $this->context = $var;

        return $this;
    }
631995
public function setInput($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\TextToSpeech\V1\SynthesisInput::class);
        $this->input = $var;

        return $this;
    }
457243
public function setMetadata($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Speech\V1p1beta1\RecognitionMetadata::class);
        $this->metadata = $var;

        return $this;
    }
51870
public function setSpeechEventType($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Speech\V1\StreamingRecognizeResponse_SpeechEventType::class);
        $this->speech_event_type = $var;

        return $this;
    }
1061931
public function setBucketingConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BucketingConfig::class);
        $this->writeOneof(6, $var);

        return $this;
    }
507477
public function setAudio($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Speech\V1p1beta1\RecognitionAudio::class);
        $this->audio = $var;

        return $this;
    }
1206523
public function setRedactConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\RedactConfig::class);
        $this->writeOneof(2, $var);

        return $this;
    }
443548
public function setNumber($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Language\V1beta2\PartOfSpeech_Number::class);
        $this->number = $var;

        return $this;
    }
747343
public function setLoggingConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dataproc\V1beta2\LoggingConfig::class);
        $this->logging_config = $var;

        return $this;
    }
469948
public function setSources($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\SecurityCenter\V1\Source::class);
        $this->sources = $arr;

        return $this;
    }
73306
public function setModelVariant($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Dialogflow\V2\SpeechModelVariant::class);
        $this->model_variant = $var;

        return $this;
    }