← All source files

V1 / 8f6c47b125e8

KokoroTtsOptions.cs

Lilith/Core/Kokoro/KokoroTtsOptions.cs

Changed in this version
CS
using System.Text.Json.Serialization;

namespace Lilith.Core.Kokoro;

public sealed record KokoroTtsOptions(
    bool Enabled = false,
    string VoiceId = "af_heart",
    bool WaitForTts = false,
    string? ModelPath = null)
{
    [JsonIgnore]
    public string ResolvedModelPath => Path.GetFullPath(ModelPath ?? Path.Combine(
        Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "Lilith", "Kokoro", "kokoro.onnx"));
}