Added hermes websocket support. Added chat command support. Added selectable voice command via websocket. Added websocket heartbeat management.

This commit is contained in:
Tom
2024-03-15 12:27:35 +00:00
parent b5cc6b5706
commit d4004d6230
53 changed files with 1227 additions and 461 deletions

View File

@ -24,7 +24,7 @@ public class AudioPlaybackEngine : IDisposable
private ISampleProvider ConvertToRightChannelCount(ISampleProvider? input)
{
if (input is null)
if (input == null)
throw new NullReferenceException(nameof(input));
if (input.WaveFormat.Channels == mixer.WaveFormat.Channels)

View File

@ -6,6 +6,8 @@ public class TTSPlayer {
private Mutex _mutex;
private Mutex _mutex2;
public ISampleProvider? Playing { get; set; }
public TTSPlayer() {
_messages = new PriorityQueue<TTSMessage, int>();
_buffer = new PriorityQueue<TTSMessage, int>();