Skip to content

Commit

Permalink
Update convertidor-tts3.js
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoSobrino authored May 1, 2024
1 parent 006e30c commit f7be604
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions plugins/convertidor-tts3.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ const handler = async (m, { conn, usedPrefix, command, text }) => {
const voice = voices.voices.find(voice => voice.name.toLowerCase() === voiceName.toLowerCase());
if (!voice) {
const voiceNames = voices.voices.map(voice => voice.name).join('\nβ—‰ ');
return m.reply(
`[❗] No se encontrΓ³ ninguna voz con el nombre "${voiceName}".\n\nβ€”β—‰ Lista de voces disponibles:\nβ—‰ ${voiceNames}`
);
return m.reply(`[❗] No se encontrΓ³ ninguna voz con el nombre "${voiceName}".\n\nβ€”β—‰ Lista de voces disponibles:\nβ—‰ ${voiceNames}`);
}
const audio = await convertTextToSpeech(inputText, voice.voice_id);
if (audio) {
Expand Down

0 comments on commit f7be604

Please sign in to comment.