SACenter/SA.Domain.XFYun/XFYunEntity/SingleAddRequest.cs

82 lines
2.1 KiB
C#
Raw Permalink 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.

namespace SA.Domain.XFYun.XFYunEntity
{
public class SingleAddRequest
{
/// <summary>
/// 开发者单个号码任务ID
/// </summary>
public string? ExtTaskId { get; set; }
/// <summary>
/// 机器人编号
/// </summary>
public string? Robot { get; set; }
/// <summary>
/// 外呼的外显号码
/// </summary>
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? CallNo { get; set; }
/// <summary>
/// 合成参数
/// </summary>
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public TtsParam? TtsParam { get; set; }
/// <summary>
/// 优先级: 1-紧急 2-优先
/// </summary>
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? Priority { get; set; }
/// <summary>
///
/// </summary>
public string? PropsStr { get; set; }
/// <summary>
/// 号码
/// </summary>
public string? Phone { get; set; }
/// <summary>
/// 针对phone的机器人参数详情
/// </summary>
public Dictionary<string, string>? Props { get; set; }
/// <summary>
/// 扩展信息(格式不限),由开发者的适配层来填充
/// </summary>
public string? Ext { get; set; }
/// <summary>
/// 开发者应用ID
/// </summary>
public string? AppId { get; set; }
}
public class TtsParam
{
/// <summary>
/// 发音人名称
/// </summary>
public string? Vcn { get; set; }
/// <summary>
/// 音量范围0-100默认50
/// </summary>
public string? Volume { get; set; }
/// <summary>
/// 音速范围0-100默认50
/// </summary>
public string? Speed { get; set; }
/// <summary>
/// 音高范围0-100默认50
/// </summary>
public string? Pitch { get; set; }
}
}