Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhangWei-KUMO committed Dec 20, 2024
1 parent 44074c0 commit 8fd9a51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/azure.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8fd9a51

Please sign in to comment.