Created
June 7, 2025 11:26
-
-
Save sksbot7/1de80f7d992ca2a45d4a9b1aa68c7c00 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { bot, mode, generateTTS } = require('../lib'); | |
| bot({ | |
| pattern: 'ttsnova ?(.*)', | |
| fromMe: mode, | |
| desc: 'text to speech - nova', | |
| type: 'tts', | |
| }, async (message, match) => { | |
| const text = match || (message.reply_message && message.reply_message.text); | |
| if (!text) return await message.reply("_*Need a query*_\nexample: _*.ttsnova Hello I'm nova*_"); | |
| const result = await generateTTS(text, 'nova', "1.00"); | |
| if (result.url) { | |
| await message.sendFromUrl(result.url, { mimetype: 'audio/mp4', ptt: true }); | |
| } else { | |
| await message.client.sendMessage(client.user.id, { | |
| text: "Limit extended\nIt will refresh in next day", | |
| ai: true | |
| }, { quoted: message.data }); | |
| } | |
| }); | |
| bot({ | |
| pattern: 'ttsecho ?(.*)', | |
| fromMe: mode, | |
| desc: 'text to speech - echo', | |
| type: 'tts', | |
| }, async (message, match) => { | |
| const text = match || (message.reply_message && message.reply_message.text); | |
| if (!text) return await message.reply("_*Need a query*_\nexample: _*.ttsecho Hello I'm echo*_"); | |
| const result = await generateTTS(text, 'echo', "1.00"); | |
| if (result.url) { | |
| await message.sendFromUrl(result.url, { mimetype: 'audio/mp4', ptt: true }); | |
| } else { | |
| await message.client.sendMessage(client.user.id, { | |
| text: "Limit extended\nIt will refresh in next day", | |
| ai: true | |
| }, { quoted: message.data }); | |
| } | |
| }); | |
| bot({ | |
| pattern: 'ttsalloy ?(.*)', | |
| fromMe: mode, | |
| desc: 'text to speech - alloy', | |
| type: 'tts', | |
| }, async (message, match) => { | |
| const text = match || (message.reply_message && message.reply_message.text); | |
| if (!text) return await message.reply("_*Need a query*_\nexample: _*.ttsalloy Hello I'm alloy*_"); | |
| const result = await generateTTS(text, 'alloy', "1.00"); | |
| if (result.url) { | |
| await message.sendFromUrl(result.url, { mimetype: 'audio/mp4', ptt: true }); | |
| } else { | |
| await message.client.sendMessage(client.user.id, { | |
| text: "Limit extended\nIt will refresh in next day", | |
| ai: true | |
| }, { quoted: message.data }); | |
| } | |
| }); | |
| bot({ | |
| pattern: 'ttsash ?(.*)', | |
| fromMe: mode, | |
| desc: 'text to speech - ash', | |
| type: 'tts', | |
| }, async (message, match) => { | |
| const text = match || (message.reply_message && message.reply_message.text); | |
| if (!text) return await message.reply("_*Need a query*_\nexample: _*.ttsash Hello I'm ash*_"); | |
| const result = await generateTTS(text, 'ash', "1.00"); | |
| if (result.url) { | |
| await message.sendFromUrl(result.url, { mimetype: 'audio/mp4', ptt: true }); | |
| } else { | |
| await message.client.sendMessage(client.user.id, { | |
| text: "Limit extended\nIt will refresh in next day", | |
| ai: true | |
| }, { quoted: message.data }); | |
| } | |
| }); | |
| bot({ | |
| pattern: 'ttscoral ?(.*)', | |
| fromMe: mode, | |
| desc: 'text to speech - coral', | |
| type: 'tts', | |
| }, async (message, match) => { | |
| const text = match || (message.reply_message && message.reply_message.text); | |
| if (!text) return await message.reply("_*Need a query*_\nexample: _*.ttscoral Hello I'm coral*_"); | |
| const result = await generateTTS(text, 'coral', "1.00"); | |
| if (result.url) { | |
| await message.sendFromUrl(result.url, { mimetype: 'audio/mp4', ptt: true }); | |
| } else { | |
| await message.client.sendMessage(client.user.id, { | |
| text: "Limit extended\nIt will refresh in next day", | |
| ai: true | |
| }, { quoted: message.data }); | |
| } | |
| }); | |
| bot({ | |
| pattern: 'ttsfable ?(.*)', | |
| fromMe: mode, | |
| desc: 'text to speech - fable', | |
| type: 'tts', | |
| }, async (message, match) => { | |
| const text = match || (message.reply_message && message.reply_message.text); | |
| if (!text) return await message.reply("_*Need a query*_\nexample: _*.ttsfable Hello I'm fable*_"); | |
| const result = await generateTTS(text, 'fable', "1.00"); | |
| if (result.url) { | |
| await message.sendFromUrl(result.url, { mimetype: 'audio/mp4', ptt: true }); | |
| } else { | |
| await message.client.sendMessage(client.user.id, { | |
| text: "Limit extended\nIt will refresh in next day", | |
| ai: true | |
| }, { quoted: message.data }); | |
| } | |
| }); | |
| bot({ | |
| pattern: 'ttsonyx ?(.*)', | |
| fromMe: mode, | |
| desc: 'text to speech - onyx', | |
| type: 'tts', | |
| }, async (message, match) => { | |
| const text = match || (message.reply_message && message.reply_message.text); | |
| if (!text) return await message.reply("_*Need a query*_\nexample: _*.ttsonyx Hello I'm onyx*_"); | |
| const result = await generateTTS(text, 'onyx', "1.00"); | |
| if (result.url) { | |
| await message.sendFromUrl(result.url, { mimetype: 'audio/mp4', ptt: true }); | |
| } else { | |
| await message.client.sendMessage(client.user.id, { | |
| text: "Limit extended\nIt will refresh in next day", | |
| ai: true | |
| }, { quoted: message.data }); | |
| } | |
| }); | |
| bot({ | |
| pattern: 'ttssage ?(.*)', | |
| fromMe: mode, | |
| desc: 'text to speech - sage', | |
| type: 'tts', | |
| }, async (message, match) => { | |
| const text = match || (message.reply_message && message.reply_message.text); | |
| if (!text) return await message.reply("_*Need a query*_\nexample: _*.ttssage Hello I'm sage*_"); | |
| const result = await generateTTS(text, 'sage', "1.00"); | |
| if (result.url) { | |
| await message.sendFromUrl(result.url, { mimetype: 'audio/mp4', ptt: true }); | |
| } else { | |
| await message.client.sendMessage(client.user.id, { | |
| text: "Limit extended\nIt will refresh in next day", | |
| ai: true | |
| }, { quoted: message.data }); | |
| } | |
| }); | |
| bot({ | |
| pattern: 'ttsshimmer ?(.*)', | |
| fromMe: mode, | |
| desc: 'text to speech - shimmer', | |
| type: 'tts', | |
| }, async (message, match) => { | |
| const text = match || (message.reply_message && message.reply_message.text); | |
| if (!text) return await message.reply("_*Need a query*_\nexample: _*.ttsshimmer Hello I'm shimmer*_"); | |
| const result = await generateTTS(text, 'shimmer', "1.00"); | |
| if (result.url) { | |
| await message.sendFromUrl(result.url, { mimetype: 'audio/mp4', ptt: true }); | |
| } else { | |
| await message.client.sendMessage(client.user.id, { | |
| text: "Limit extended\nIt will refresh in next day", | |
| ai: true | |
| }, { quoted: message.data }); | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment