select audio device

This commit is contained in:
2023-11-03 21:23:34 +08:00
parent a4366f800a
commit 6fa960a3c8
2 changed files with 50 additions and 0 deletions

View File

@@ -43,6 +43,7 @@ export interface ChatStore {
develop_mode: boolean;
whisper_api: string;
whisper_key: string;
audioDeviceID: string;
}
const _defaultAPIEndpoint = "https://api.openai.com/v1/chat/completions";
@@ -80,6 +81,7 @@ const newChatStore = (
develop_mode: getDefaultParams("dev", dev),
whisper_api: getDefaultParams("whisper-api", whisper_api),
whisper_key: getDefaultParams("whisper-key", whisper_key),
audioDeviceID: "",
};
};