using System;using System.Threading.Tasks;using Agent.Core.Logging;using Agent.Core.TextToSpeech;namespace LilithConsole{ internal static class ConsoleTts { internal static async Task SpeakReplyAsync(KokoroTts? tts, Logger logger, string? reply) { if (tts is null || string.IsNullOrWhiteSpace(reply)) { return; } try { await tts.SpeakAsync(reply).ConfigureAwait(false); } catch (Exception ex) { logger.WriteLine("TTS", $"Speech failed: {ex.Message}", LogColors.Orange); } } }}
Documentation
Program
Console host for the Version 3 Lilith chat session.
Program.cs
- Sets UTF-8 console output and window title.
- Attempts
KokoroTtssetup (speech after replies); continues without TTS on failure. BootAsyncthen loops on user input untilexitor slash commands.