Added a configurable Opus bitrate for audio transcription

This commit is contained in:
Dominic Neuburg committed 2026-09-18 09:54:33 +02:00
1 parent 557d0b1409
commit 6be958eb92
14 files changed
+140 -20

No files matched your search

@@ -36,7 +36,11 @@ public partial class SettingsPanelTranscription : SettingsPanelProviderBase
var modelName = provider.Model.ToString();
return modelName.Length > MAX_LENGTH ? "[...] " + modelName[^Math.Min(MAX_LENGTH, modelName.Length)..] : modelName;
}
private string OpusBitrateHelp => T("Higher bitrates can improve transcription accuracy, especially for quiet or noisy recordings, at the cost of a larger upload to the transcription provider. 128 kbps is recommended.");
private bool IsOpusBitrateLocked() => ManagedConfiguration.TryGet(x => x.App, x => x.OpusBitrate, out var meta) && meta.IsLocked;
#region Overrides of ComponentBase
protected override async Task OnInitializedAsync()