TextToSpeech/src/V1/AudioConfig.php
public function setAudioEncoding($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\TextToSpeech\V1\AudioEncoding::class);
        $this->audio_encoding = $var;

        return $this;
    }
public function setAudioEncoding($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\TextToSpeech\V1\AudioEncoding::class);
        $this->audio_encoding = $var;

        return $this;
    }
public function setAudioEncoding ( $ var ) { GPBUtil :: checkEnum ( $ var , \ Google \ Cloud \ TextToSpeech \ V1 \ AudioEncoding :: class ) ; $ this -> audio_encoding = $ var ; return $ this ; }
Required. The format of the requested audio byte stream.

Generated from protobuf field <code>.google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1;</code>
@param int $var
@return $this
Required . The format of the requested audio byte stream .