BossBey File Manager
PHP:
8.2.30
OS:
Linux
User:
imagivibe
Root
/
.
/
app.imagivibe.com
/
vendor
/
google
/
cloud-text-to-speech
/
src
/
V1
📤 Upload
📝 New File
📁 New Folder
Close
Editing: StreamingAudioConfig.php
<?php # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/texttospeech/v1/cloud_tts.proto namespace Google\Cloud\TextToSpeech\V1; use Google\Protobuf\Internal\GPBType; use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\GPBUtil; /** * Description of the desired output audio data. * * Generated from protobuf message <code>google.cloud.texttospeech.v1.StreamingAudioConfig</code> */ class StreamingAudioConfig extends \Google\Protobuf\Internal\Message { /** * Required. The format of the audio byte stream. * Streaming supports PCM, ALAW, MULAW and OGG_OPUS. All other encodings * return an error. * * Generated from protobuf field <code>.google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];</code> */ protected $audio_encoding = 0; /** * Optional. The synthesis sample rate (in hertz) for this audio. * * Generated from protobuf field <code>int32 sample_rate_hertz = 2 [(.google.api.field_behavior) = OPTIONAL];</code> */ protected $sample_rate_hertz = 0; /** * Optional. Input only. Speaking rate/speed, in the range [0.25, 2.0]. 1.0 is * the normal native speed supported by the specific voice. 2.0 is twice as * fast, and 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 * speed. Any other values < 0.25 or > 2.0 will return an error. * * Generated from protobuf field <code>double speaking_rate = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];</code> */ protected $speaking_rate = 0.0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $audio_encoding * Required. The format of the audio byte stream. * Streaming supports PCM, ALAW, MULAW and OGG_OPUS. All other encodings * return an error. * @type int $sample_rate_hertz * Optional. The synthesis sample rate (in hertz) for this audio. * @type float $speaking_rate * Optional. Input only. Speaking rate/speed, in the range [0.25, 2.0]. 1.0 is * the normal native speed supported by the specific voice. 2.0 is twice as * fast, and 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 * speed. Any other values < 0.25 or > 2.0 will return an error. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Cloud\Texttospeech\V1\CloudTts::initOnce(); parent::__construct($data); } /** * Required. The format of the audio byte stream. * Streaming supports PCM, ALAW, MULAW and OGG_OPUS. All other encodings * return an error. * * Generated from protobuf field <code>.google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @return int */ public function getAudioEncoding() { return $this->audio_encoding; } /** * Required. The format of the audio byte stream. * Streaming supports PCM, ALAW, MULAW and OGG_OPUS. All other encodings * return an error. * * Generated from protobuf field <code>.google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @param int $var * @return $this */ public function setAudioEncoding($var) { GPBUtil::checkEnum($var, \Google\Cloud\TextToSpeech\V1\AudioEncoding::class); $this->audio_encoding = $var; return $this; } /** * Optional. The synthesis sample rate (in hertz) for this audio. * * Generated from protobuf field <code>int32 sample_rate_hertz = 2 [(.google.api.field_behavior) = OPTIONAL];</code> * @return int */ public function getSampleRateHertz() { return $this->sample_rate_hertz; } /** * Optional. The synthesis sample rate (in hertz) for this audio. * * Generated from protobuf field <code>int32 sample_rate_hertz = 2 [(.google.api.field_behavior) = OPTIONAL];</code> * @param int $var * @return $this */ public function setSampleRateHertz($var) { GPBUtil::checkInt32($var); $this->sample_rate_hertz = $var; return $this; } /** * Optional. Input only. Speaking rate/speed, in the range [0.25, 2.0]. 1.0 is * the normal native speed supported by the specific voice. 2.0 is twice as * fast, and 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 * speed. Any other values < 0.25 or > 2.0 will return an error. * * Generated from protobuf field <code>double speaking_rate = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];</code> * @return float */ public function getSpeakingRate() { return $this->speaking_rate; } /** * Optional. Input only. Speaking rate/speed, in the range [0.25, 2.0]. 1.0 is * the normal native speed supported by the specific voice. 2.0 is twice as * fast, and 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 * speed. Any other values < 0.25 or > 2.0 will return an error. * * Generated from protobuf field <code>double speaking_rate = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];</code> * @param float $var * @return $this */ public function setSpeakingRate($var) { GPBUtil::checkDouble($var); $this->speaking_rate = $var; return $this; } }
Save
Cancel