404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.149.255.189: ~ $
<?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;

/**
 * The top-level message sent by the client for the `SynthesizeSpeech` method.
 *
 * Generated from protobuf message <code>google.cloud.texttospeech.v1.SynthesizeSpeechRequest</code>
 */
class SynthesizeSpeechRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The Synthesizer requires either plain text or SSML as input.
     *
     * Generated from protobuf field <code>.google.cloud.texttospeech.v1.SynthesisInput input = 1;</code>
     */
    private $input = null;
    /**
     * Required. The desired voice of the synthesized audio.
     *
     * Generated from protobuf field <code>.google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2;</code>
     */
    private $voice = null;
    /**
     * Required. The configuration of the synthesized audio.
     *
     * Generated from protobuf field <code>.google.cloud.texttospeech.v1.AudioConfig audio_config = 3;</code>
     */
    private $audio_config = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\TextToSpeech\V1\SynthesisInput $input
     *           Required. The Synthesizer requires either plain text or SSML as input.
     *     @type \Google\Cloud\TextToSpeech\V1\VoiceSelectionParams $voice
     *           Required. The desired voice of the synthesized audio.
     *     @type \Google\Cloud\TextToSpeech\V1\AudioConfig $audio_config
     *           Required. The configuration of the synthesized audio.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Texttospeech\V1\CloudTts::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The Synthesizer requires either plain text or SSML as input.
     *
     * Generated from protobuf field <code>.google.cloud.texttospeech.v1.SynthesisInput input = 1;</code>
     * @return \Google\Cloud\TextToSpeech\V1\SynthesisInput
     */
    public function getInput()
    {
        return $this->input;
    }

    /**
     * Required. The Synthesizer requires either plain text or SSML as input.
     *
     * Generated from protobuf field <code>.google.cloud.texttospeech.v1.SynthesisInput input = 1;</code>
     * @param \Google\Cloud\TextToSpeech\V1\SynthesisInput $var
     * @return $this
     */
    public function setInput($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\TextToSpeech\V1\SynthesisInput::class);
        $this->input = $var;

        return $this;
    }

    /**
     * Required. The desired voice of the synthesized audio.
     *
     * Generated from protobuf field <code>.google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2;</code>
     * @return \Google\Cloud\TextToSpeech\V1\VoiceSelectionParams
     */
    public function getVoice()
    {
        return $this->voice;
    }

    /**
     * Required. The desired voice of the synthesized audio.
     *
     * Generated from protobuf field <code>.google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2;</code>
     * @param \Google\Cloud\TextToSpeech\V1\VoiceSelectionParams $var
     * @return $this
     */
    public function setVoice($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\TextToSpeech\V1\VoiceSelectionParams::class);
        $this->voice = $var;

        return $this;
    }

    /**
     * Required. The configuration of the synthesized audio.
     *
     * Generated from protobuf field <code>.google.cloud.texttospeech.v1.AudioConfig audio_config = 3;</code>
     * @return \Google\Cloud\TextToSpeech\V1\AudioConfig
     */
    public function getAudioConfig()
    {
        return $this->audio_config;
    }

    /**
     * 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
     */
    public function setAudioConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\TextToSpeech\V1\AudioConfig::class);
        $this->audio_config = $var;

        return $this;
    }

}


Filemanager

Name Type Size Permission Actions
Gapic Folder 0755
resources Folder 0755
AudioConfig.php File 13.02 KB 0644
AudioEncoding.php File 2.2 KB 0644
ListVoicesRequest.php File 3.7 KB 0644
ListVoicesResponse.php File 1.91 KB 0644
README.md File 821 B 0644
SsmlVoiceGender.php File 2.1 KB 0644
SynthesisInput.php File 3.03 KB 0644
SynthesizeSpeechRequest.php File 4.34 KB 0644
SynthesizeSpeechResponse.php File 2.62 KB 0644
TextToSpeechClient.php File 1.18 KB 0644
TextToSpeechGrpcClient.php File 2.33 KB 0644
Voice.php File 5.17 KB 0644
VoiceSelectionParams.php File 8.36 KB 0644