Files
g.hnyhua.cn/TencentCloud/Aai/V20180522/Models/TextToVoiceRequest.cs
2026-02-07 15:48:27 +08:00

109 lines
4.4 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Aai.V20180522.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class TextToVoiceRequest : AbstractModel
{
/// <summary>
/// 合成语音的源文本按UTF-8编码统一计算。
/// 中文最大支持100个汉字全角标点符号算一个汉字英文最大支持400个字母半角标点符号算一个字母。包含空格等字符时需要url encode再传输。
/// </summary>
[JsonProperty("Text")]
public string Text{ get; set; }
/// <summary>
/// 一次请求对应一个SessionId会原样返回建议传入类似于uuid的字符串防止重复。
/// </summary>
[JsonProperty("SessionId")]
public string SessionId{ get; set; }
/// <summary>
/// 模型类型1-默认模型。
/// </summary>
[JsonProperty("ModelType")]
public long? ModelType{ get; set; }
/// <summary>
/// 音量大小,范围:[010]分别对应11个等级的音量默认为0代表正常音量。没有静音选项。
/// 输入除以上整数之外的其他参数不生效,按默认值处理。
/// </summary>
[JsonProperty("Volume")]
public float? Volume{ get; set; }
/// <summary>
/// 语速,范围:[-22],分别对应不同语速:<li>-2代表0.6倍</li><li>-1代表0.8倍</li><li>0代表1.0倍(默认)</li><li>1代表1.2倍</li><li>2代表1.5倍</li>输入除以上整数之外的其他参数不生效,按默认值处理。
/// </summary>
[JsonProperty("Speed")]
public float? Speed{ get; set; }
/// <summary>
/// 项目id用户自定义默认为0。
/// </summary>
[JsonProperty("ProjectId")]
public long? ProjectId{ get; set; }
/// <summary>
/// 音色<li>0-亲和女声(默认)</li><li>1-亲和男声</li><li>2-成熟男声</li><li>3-活力男声</li><li>4-温暖女声</li><li>5-情感女声</li><li>6-情感男声</li>
/// </summary>
[JsonProperty("VoiceType")]
public long? VoiceType{ get; set; }
/// <summary>
/// 主语言类型:<li>1-中文(默认)</li><li>2-英文</li>
/// </summary>
[JsonProperty("PrimaryLanguage")]
public ulong? PrimaryLanguage{ get; set; }
/// <summary>
/// 音频采样率:<li>1600016k默认</li><li>80008k</li>
/// </summary>
[JsonProperty("SampleRate")]
public ulong? SampleRate{ get; set; }
/// <summary>
/// 返回音频格式可取值wav默认mp3
/// </summary>
[JsonProperty("Codec")]
public string Codec{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Text", this.Text);
this.SetParamSimple(map, prefix + "SessionId", this.SessionId);
this.SetParamSimple(map, prefix + "ModelType", this.ModelType);
this.SetParamSimple(map, prefix + "Volume", this.Volume);
this.SetParamSimple(map, prefix + "Speed", this.Speed);
this.SetParamSimple(map, prefix + "ProjectId", this.ProjectId);
this.SetParamSimple(map, prefix + "VoiceType", this.VoiceType);
this.SetParamSimple(map, prefix + "PrimaryLanguage", this.PrimaryLanguage);
this.SetParamSimple(map, prefix + "SampleRate", this.SampleRate);
this.SetParamSimple(map, prefix + "Codec", this.Codec);
}
}
}