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
{
///
/// 语速
///
[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;
///
/// 音调
///
[Line]
public double Pitch
{
get
{
return pitch;
}
set
{
pitch = value;
PitchStr = $"{(value >= 0 ? "+" : "")}{value:f2}Hz";
}
}
public string PitchStr { get; private set; } = "+10Hz";
///
/// 讲述人
///
[Line]
public string Speaker { get; set; } = "zh-CN-XiaoyiNeural";
///
/// 启用EdgeTTS
///
[Line]
public bool Enable { get; set; } = true;
}
}