1
0

chore: Introduce Qodana static analysis configuration and apply minor code formatting and C# 12 collection expressions.

This commit is contained in:
2026-03-01 20:07:20 +01:00
parent ec575ab5f9
commit 15f9647f8a
24 changed files with 344 additions and 80 deletions

View File

@@ -73,7 +73,7 @@ public class TranscriptionOrchestrator : ITranscriptionOrchestrator
_notifications.PlaySound(config.StopSoundPath);
_notifications.Notify("Toak", "Transcribing...");
_audioRecorder.StopRecording();
var wavPath = _audioRecorder.GetWavPath();
@@ -86,10 +86,10 @@ public class TranscriptionOrchestrator : ITranscriptionOrchestrator
try
{
var stopWatch = Stopwatch.StartNew();
Logger.LogDebug($"Starting STT via Whisper for {wavPath}...");
var transcript = await _speechClient.TranscribeAsync(wavPath, config.WhisperLanguage, config.WhisperModel);
if (string.IsNullOrWhiteSpace(transcript))
{
_notifications.Notify("Toak", "No speech detected.");
@@ -115,7 +115,7 @@ public class TranscriptionOrchestrator : ITranscriptionOrchestrator
{
Logger.LogDebug("Starting LLM text refinement (streaming)...");
var tokenStream = _llmClient.RefineTextStreamAsync(transcript, systemPrompt, config.LlmModel);
if (pipeToStdout || copyToClipboard)
{
string fullText = "";