d-tts

2.0.1 • Public • Published

예시:

const { Client } = require("discord.js"),
    { getVoiceStream } = require("d-tts");
 
const client = new Client();
client.login("Token");
 
client.on("ready", () => {
    console.log("Bot is Ready.");
})
.on("message", m => {
    if (m.content === "test") {
        message.member.voice.channel.join().then(connection => {
            const stream = getVoiceStream("테스트 TTS", "ko-KR");
            const dispatcher = connection.play(stream);
            dispatcher.on("finish", () => message.member.voice.channel.leave());
        });
    }
});

필요한 모듈:

discord.js
@discordjs/opus
ffmpeg-static

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.1
    1
  • 2.0.0
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i d-tts

Weekly Downloads

1

Version

2.0.1

License

MIT

Unpacked Size

1.91 kB

Total Files

3

Last publish

Collaborators

  • ejlkr