try and get more debug info
This commit is contained in:
@@ -19,7 +19,8 @@
|
||||
"WhisperCliPath": "/usr/bin/whisper.cpp/build/bin/whisper-cli",
|
||||
"WhisperModelPath": "/usr/bin/whisper.cpp/models/ggml-base.en.bin",
|
||||
"WhisperLanguage": "en",
|
||||
"TempDirectory": "/tmp/openjibo-stt"
|
||||
"TempDirectory": "/tmp/openjibo-stt",
|
||||
"CleanupTempFiles": false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,4 +8,5 @@ public sealed class BufferedAudioSttOptions
|
||||
public string? WhisperModelPath { get; set; }
|
||||
public string WhisperLanguage { get; set; } = "en";
|
||||
public string? TempDirectory { get; set; }
|
||||
public bool CleanupTempFiles { get; set; }
|
||||
}
|
||||
|
||||
@@ -75,8 +75,11 @@ public sealed class LocalWhisperCppBufferedAudioSttStrategy(
|
||||
}
|
||||
finally
|
||||
{
|
||||
TryDelete(oggPath);
|
||||
TryDelete(wavPath);
|
||||
if (options.CleanupTempFiles)
|
||||
{
|
||||
TryDelete(oggPath);
|
||||
TryDelete(wavPath);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user