Debugged ElevenLabs STT; added debug-recording option

This commit is contained in:
James Babcock committed 2026-07-05 21:00:40 -07:00
1 parent 097d40efb2
commit 7fcab243a3
8 files changed
+34 -7

No files matched your search

+11 -2
View File
@@ -33,6 +33,7 @@ import {
nightscoutSiteUrlSetting,
onAnySettingChanged,
rawScreenshotsEnabledSetting,
saveVoiceRecordingsSetting,
systemCardNameSetting,
voiceProviderSetting,
type ConfigSettingString,
@@ -280,8 +281,15 @@ class DashboardController {
setActiveTextSettingValue(value: string): void {
noteDashboardPhoneTextInput();
if (!this.activeTextSetting) return;
this.updateTextSetting(this.activeTextSetting, value);
const setting = this.activeTextSetting;
if (!setting) return;
if (setting.get() === value) return;
setting.set(value);
// Deliberately do NOT emit() here. The phone TextField is the source of
// truth while typing; echoing activeTextSettingValue back into its two-way
// binding on every keystroke drops fast/pasted characters (observed: a
// 51-char API key stored as its first 46 chars). Just refresh the preview.
this.previewOrRenderAfterTextSettingChange(setting.label);
}
async connect(): Promise<void> {
@@ -574,6 +582,7 @@ class DashboardController {
communicator: communicator.getNativeCommunicator(),
provider: voiceProviderSetting.get(),
elevenLabsApiKey: elevenLabsApiKeySetting.get(),
saveRecording: saveVoiceRecordingsSetting.get(),
});
})
.catch((error) => {