journal/Journal.Core/Services/Speech/DisabledS2TService.cs
Jacob Schmidt 0d77300c22 feat: Project Journal backend monorepo
Monorepo with centralized build props, npm workspaces, LlamaSharp AI,
SQLite/SQLCipher storage, Svelte frontend, and unified smoke tests.

Co-Authored-By: Oz <oz-agent@warp.dev>
2026-03-02 20:56:26 -06:00

18 lines
809 B
C#

using Journal.Core.Dtos;
namespace Journal.Core.Services.Speech;
public sealed class DisabledS2TService(string message = "S2T is disabled.") : IS2TService
{
private readonly string _message = string.IsNullOrWhiteSpace(message) ? "S2T is disabled." : message.Trim();
public Task<S2TStartResultDto> StartAsync(CancellationToken cancellationToken = default)
=> Task.FromResult(new S2TStartResultDto(false, "stopped", _message));
public Task<S2TStopResultDto> StopAsync(CancellationToken cancellationToken = default)
=> Task.FromResult(new S2TStopResultDto(false, "stopped", _message));
public Task<S2TPollResultDto> PollAsync(int maxItems = 8, CancellationToken cancellationToken = default)
=> Task.FromResult(new S2TPollResultDto([], false, "stopped", _message));
}