增加语音输入

This commit is contained in:
sijinhui
2024-03-28 00:48:40 +08:00
parent 7ffabb77f9
commit 8620df325d
10 changed files with 217 additions and 110 deletions

View File

@@ -27,6 +27,7 @@ declare global {
AZURE_URL?: string; // https://{azure-url}/openai/deployments/{deploy-name}
AZURE_API_KEY?: string;
AZURE_API_VERSION?: string;
AZURE_VOICE_KEY?: string;
// google only
GOOGLE_API_KEY?: string;
@@ -93,6 +94,7 @@ export const getServerSideConfig = () => {
azureUrl: process.env.AZURE_URL ?? "",
azureApiKey: process.env.AZURE_API_KEY ?? "",
azureApiVersion: process.env.AZURE_API_VERSION ?? "",
azureVoiceKey: process.env.AZURE_VOICE_KEY ?? "",
isGoogle,
googleApiKey: process.env.GOOGLE_API_KEY,