From 8fd9a51cab7f09025da7f15725489c70a87a1163 Mon Sep 17 00:00:00 2001 From: ZhangWei-KUMO Date: Fri, 20 Dec 2024 15:54:31 +0800 Subject: [PATCH] add --- util/azure.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/azure.js b/util/azure.js index d35c2b8..6d3e1ce 100644 --- a/util/azure.js +++ b/util/azure.js @@ -5,8 +5,8 @@ import { import fs from 'fs'; import {getTTSConfig} from '../db/tts.js'; const config = await getTTSConfig(); -const AZURE_SUBSCRIPTION_KEY = config.azurekey; -const AZURE_SERVICE_REGION = config.azureregion; +const AZURE_SUBSCRIPTION_KEY = config.azurekey || "yourkey"; +const AZURE_SERVICE_REGION = config.azureregion || "japanwest"; const speechConfig = SpeechConfig.fromSubscription(AZURE_SUBSCRIPTION_KEY, AZURE_SERVICE_REGION); export function synthesizeSpeech(text,voiceName) {