2023-05-25 14:41:42 +00:00
|
|
|
|
using LinePutScript.Converter;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace VPet.Plugin.VPetTTS
|
|
|
|
|
{
|
|
|
|
|
public class Setting
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 语速
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Line]
|
|
|
|
|
public double Rate
|
|
|
|
|
{
|
|
|
|
|
get => rate; set
|
|
|
|
|
{
|
|
|
|
|
rate = value;
|
|
|
|
|
RateStr = $"{(value >= 0 ? "+" : "")}{value:f2}%";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
private double rate = 0;
|
|
|
|
|
public string RateStr { get; private set; } = "+0%";
|
|
|
|
|
double pitch = 10;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 音调
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Line]
|
|
|
|
|
public double Pitch
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return pitch;
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
pitch = value;
|
|
|
|
|
PitchStr = $"{(value >= 0 ? "+" : "")}{value:f2}Hz";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string PitchStr { get; private set; } = "+10Hz";
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 讲述人
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Line]
|
|
|
|
|
public string Speaker { get; set; } = "zh-CN-XiaoyiNeural";
|
2023-05-25 17:50:18 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 启用EdgeTTS
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Line]
|
|
|
|
|
public bool Enable { get; set; } = true;
|
2023-05-25 14:41:42 +00:00
|
|
|
|
}
|
|
|
|
|
}
|