chore: Introduce Qodana static analysis configuration and apply minor code formatting and C# 12 collection expressions.
This commit is contained in:
@@ -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 = "";
|
||||
|
||||
Reference in New Issue
Block a user