|
| 1 | +<?php |
| 2 | +/* |
| 3 | + * Licensed to the Apache Software Foundation (ASF) under one |
| 4 | + * or more contributor license agreements. See the NOTICE file |
| 5 | + * distributed with this work for additional information |
| 6 | + * regarding copyright ownership. The ASF licenses this file |
| 7 | + * to you under the Apache License, Version 2.0 (the |
| 8 | + * "License"); you may not use this file except in compliance |
| 9 | + * with the License. You may obtain a copy of the License at |
| 10 | + * |
| 11 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | + * |
| 13 | + * Unless required by applicable law or agreed to in writing, |
| 14 | + * software distributed under the License is distributed on an |
| 15 | + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 16 | + * KIND, either express or implied. See the License for the |
| 17 | + * specific language governing permissions and limitations |
| 18 | + * under the License. |
| 19 | + */ |
| 20 | +namespace TencentCloud\Aai\V20180522\Models; |
| 21 | +use TencentCloud\Common\AbstractModel; |
| 22 | + |
| 23 | +/** |
| 24 | + * @method string getText() 获取合成语音的源文本 |
| 25 | + * @method void setText(string $Text) 设置合成语音的源文本 |
| 26 | + * @method string getSessionId() 获取一次请求对应一个SessionId,会原样返回 |
| 27 | + * @method void setSessionId(string $SessionId) 设置一次请求对应一个SessionId,会原样返回 |
| 28 | + * @method integer getProjectId() 获取项目id |
| 29 | + * @method void setProjectId(integer $ProjectId) 设置项目id |
| 30 | + * @method integer getModelType() 获取模型类型,1-默认模型 |
| 31 | + * @method void setModelType(integer $ModelType) 设置模型类型,1-默认模型 |
| 32 | + * @method float getVolume() 获取音量大小,暂仅支持默认值1.0 |
| 33 | + * @method void setVolume(float $Volume) 设置音量大小,暂仅支持默认值1.0 |
| 34 | + * @method float getSpeed() 获取语速,暂仅支持默认值1.0 |
| 35 | + * @method void setSpeed(float $Speed) 设置语速,暂仅支持默认值1.0 |
| 36 | + * @method integer getVoiceType() 获取音色,1-默认音色 |
| 37 | + * @method void setVoiceType(integer $VoiceType) 设置音色,1-默认音色 |
| 38 | + * @method integer getPrimaryLanguage() 获取主语言类型<li>1-中文(包括粤语),最大300字符</li><li>2-英文,最大支持600字符</li> |
| 39 | + * @method void setPrimaryLanguage(integer $PrimaryLanguage) 设置主语言类型<li>1-中文(包括粤语),最大300字符</li><li>2-英文,最大支持600字符</li> |
| 40 | + * @method integer getSampleRate() 获取音频采样率:暂仅支持16k |
| 41 | + * @method void setSampleRate(integer $SampleRate) 设置音频采样率:暂仅支持16k |
| 42 | + */ |
| 43 | + |
| 44 | +/** |
| 45 | + *TextToVoice请求参数结构体 |
| 46 | + */ |
| 47 | +class TextToVoiceRequest extends AbstractModel |
| 48 | +{ |
| 49 | + /** |
| 50 | + * @var string 合成语音的源文本 |
| 51 | + */ |
| 52 | + public $Text; |
| 53 | + |
| 54 | + /** |
| 55 | + * @var string 一次请求对应一个SessionId,会原样返回 |
| 56 | + */ |
| 57 | + public $SessionId; |
| 58 | + |
| 59 | + /** |
| 60 | + * @var integer 项目id |
| 61 | + */ |
| 62 | + public $ProjectId; |
| 63 | + |
| 64 | + /** |
| 65 | + * @var integer 模型类型,1-默认模型 |
| 66 | + */ |
| 67 | + public $ModelType; |
| 68 | + |
| 69 | + /** |
| 70 | + * @var float 音量大小,暂仅支持默认值1.0 |
| 71 | + */ |
| 72 | + public $Volume; |
| 73 | + |
| 74 | + /** |
| 75 | + * @var float 语速,暂仅支持默认值1.0 |
| 76 | + */ |
| 77 | + public $Speed; |
| 78 | + |
| 79 | + /** |
| 80 | + * @var integer 音色,1-默认音色 |
| 81 | + */ |
| 82 | + public $VoiceType; |
| 83 | + |
| 84 | + /** |
| 85 | + * @var integer 主语言类型<li>1-中文(包括粤语),最大300字符</li><li>2-英文,最大支持600字符</li> |
| 86 | + */ |
| 87 | + public $PrimaryLanguage; |
| 88 | + |
| 89 | + /** |
| 90 | + * @var integer 音频采样率:暂仅支持16k |
| 91 | + */ |
| 92 | + public $SampleRate; |
| 93 | + /** |
| 94 | + * @param string $Text 合成语音的源文本 |
| 95 | + * @param string $SessionId 一次请求对应一个SessionId,会原样返回 |
| 96 | + * @param integer $ProjectId 项目id |
| 97 | + * @param integer $ModelType 模型类型,1-默认模型 |
| 98 | + * @param float $Volume 音量大小,暂仅支持默认值1.0 |
| 99 | + * @param float $Speed 语速,暂仅支持默认值1.0 |
| 100 | + * @param integer $VoiceType 音色,1-默认音色 |
| 101 | + * @param integer $PrimaryLanguage 主语言类型<li>1-中文(包括粤语),最大300字符</li><li>2-英文,最大支持600字符</li> |
| 102 | + * @param integer $SampleRate 音频采样率:暂仅支持16k |
| 103 | + */ |
| 104 | + function __construct() |
| 105 | + { |
| 106 | + |
| 107 | + } |
| 108 | + /** |
| 109 | + * 内部实现,用户禁止调用 |
| 110 | + */ |
| 111 | + public function deserialize($param) |
| 112 | + { |
| 113 | + if ($param === null) { |
| 114 | + return; |
| 115 | + } |
| 116 | + if (array_key_exists("Text",$param) and $param["Text"] !== null) { |
| 117 | + $this->Text = $param["Text"]; |
| 118 | + } |
| 119 | + |
| 120 | + if (array_key_exists("SessionId",$param) and $param["SessionId"] !== null) { |
| 121 | + $this->SessionId = $param["SessionId"]; |
| 122 | + } |
| 123 | + |
| 124 | + if (array_key_exists("ProjectId",$param) and $param["ProjectId"] !== null) { |
| 125 | + $this->ProjectId = $param["ProjectId"]; |
| 126 | + } |
| 127 | + |
| 128 | + if (array_key_exists("ModelType",$param) and $param["ModelType"] !== null) { |
| 129 | + $this->ModelType = $param["ModelType"]; |
| 130 | + } |
| 131 | + |
| 132 | + if (array_key_exists("Volume",$param) and $param["Volume"] !== null) { |
| 133 | + $this->Volume = $param["Volume"]; |
| 134 | + } |
| 135 | + |
| 136 | + if (array_key_exists("Speed",$param) and $param["Speed"] !== null) { |
| 137 | + $this->Speed = $param["Speed"]; |
| 138 | + } |
| 139 | + |
| 140 | + if (array_key_exists("VoiceType",$param) and $param["VoiceType"] !== null) { |
| 141 | + $this->VoiceType = $param["VoiceType"]; |
| 142 | + } |
| 143 | + |
| 144 | + if (array_key_exists("PrimaryLanguage",$param) and $param["PrimaryLanguage"] !== null) { |
| 145 | + $this->PrimaryLanguage = $param["PrimaryLanguage"]; |
| 146 | + } |
| 147 | + |
| 148 | + if (array_key_exists("SampleRate",$param) and $param["SampleRate"] !== null) { |
| 149 | + $this->SampleRate = $param["SampleRate"]; |
| 150 | + } |
| 151 | + } |
| 152 | +} |
0 commit comments