Merge commit 'e2caf28' into hermes-integration

This commit is contained in:
James Babcock committed 2026-10-17 13:43:31 -07:00
commit 33eef6538c
24 files changed
+1063 -43

No files matched your search

+20 -1
View File
@@ -61,6 +61,11 @@ import {
phoneRotationSetting,
ringConnectionModeSetting,
sonioxApiKeySetting,
saveTranscribeAudioSetting,
whisperServerApiKeySetting,
whisperServerLanguageSetting,
whisperServerModelSetting,
whisperServerUrlSetting,
screenFadeSetting,
enumSettingMenuItem,
firmwareDebugFlagsSetting,
@@ -126,6 +131,7 @@ function settingsSections(): SettingsSection[] {
items: [
enumSettingMenuItem(wakeWordActionSetting),
enumSettingMenuItem(voiceProviderSetting),
...whisperServerMenuItems(),
asrModelMenuItem("moonshine"),
asrModelMenuItem("whisper-base-en"),
],
@@ -240,7 +246,7 @@ function settingsSections(): SettingsSection[] {
toggleSettingMenuItem(showBleBandwidthSetting)] };
// No downloadable on-device models: iOS's on-device option is Apple's recognizer.
if (section.label === "Voice") return { label: "Voice", items: [enumSettingMenuItem(wakeWordActionSetting),
enumSettingMenuItem(voiceProviderSetting)] };
enumSettingMenuItem(voiceProviderSetting), toggleSettingMenuItem(saveTranscribeAudioSetting), ...whisperServerMenuItems()] };
if (deferred.has(section.label)) return { label: section.label, items: [{
label: "Not available on iOS yet", disabled: true, onSelect: () => {},
description: `${section.label} integration has not been ported to iOS.`,
@@ -454,6 +460,19 @@ function asrModelStatusText(id: AsrModelId): string {
return "not downloaded";
}
/**
* The self-hosted Whisper server's settings. Always listed: the provider
* option stays disabled until the URL is set.
*/
function whisperServerMenuItems(): MenuItem[] {
return [
textSettingMenuItem(whisperServerUrlSetting),
textSettingMenuItem(whisperServerModelSetting),
textSettingMenuItem(whisperServerLanguageSetting),
textSettingMenuItem(whisperServerApiKeySetting),
];
}
/** Download/cancel/delete management for one on-device transcription model. */
function asrModelMenuItem(id: AsrModelId): MenuItem {
const def = ASR_MODELS[id];