Skip to content

Commit

Permalink
[v6.0.31]
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Sep 27, 2024
1 parent 3e9a53a commit af050eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions discordChatGPTVoiceBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const GUILD_ID = process.env.guildId;
const SPEECH_KEY = process.env.SPEECH_KEY;
const BOT_TOKEN = process.env.BOT_TOKEN;

const VOICE_FEMALE = "pt-BR-LeticiaNeural";
const VOICE_FEMALE = "pt-BR-YaraNeural";
//const VOICE_FEMALE = "pt-BR-AdaMultilingualNeural";
const GPT_MODEL = "deepseek-chat";
const TEMPERATURE = 1.5;
Expand All @@ -42,7 +42,7 @@ const client = new Client({
const speechConfig = sdk.SpeechConfig.fromSubscription(SPEECH_KEY, "eastus");
speechConfig.speechSynthesisLanguage = VOICE_LANGUAGE;
speechConfig.speechSynthesisVoiceName = VOICE_FEMALE;
speechConfig.speechSynthesisOutputFormat = sdk.SpeechSynthesisOutputFormat.Audio16Khz128KBitRateMonoMp3;
speechConfig.speechSynthesisOutputFormat = sdk.SpeechSynthesisOutputFormat.Riff24Khz16BitMonoPcm;
speechConfig.setProfanity(sdk.ProfanityOption.Raw);
speechConfig.speechSynthesisVolume = VOLUME;
const audioConfig = sdk.AudioConfig.fromDefaultSpeakerOutput();
Expand Down

0 comments on commit af050eb

Please sign in to comment.