amu0 / yomiage-chan Goto Github PK
View Code? Open in Web Editor NEWVOICEVOXとdiscord.jsを利用した読み上げBOTです
License: GNU Lesser General Public License v2.1
VOICEVOXとdiscord.jsを利用した読み上げBOTです
License: GNU Lesser General Public License v2.1
discord.js Guide
CommandHandling
EventHandling
初歩的な質問ですみません。
botが読み上げ時に
Error: FFmpeg/avconv not found!
at FFmpeg.getInfo (/app/node_modules/prism-media/src/core/FFmpeg.js:143:11)
at FFmpeg.create (/app/node_modules/prism-media/src/core/FFmpeg.js:156:38)
at new FFmpeg (/app/node_modules/prism-media/src/core/FFmpeg.js:45:27)
at Object.transformer (/app/node_modules/@discordjs/voice/dist/index.js:8:13814)
at /app/node_modules/@discordjs/voice/dist/index.js:8:16735
at Array.map (<anonymous>)
at Object.We (/app/node_modules/@discordjs/voice/dist/index.js:8:16726)
at /app/src/connectionManager.js:243:32
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
とエラーを吐き出し読み上げない状態です
https://goody-jp.com/static%E3%81%AAffmpeg%E3%81%8C%E3%81%A8%E3%81%A6%E3%82%82useful%E3%81%A0%E3%81%A3%E3%81%9F%E8%A9%B1/
このサイトを参考しコテンナ内のbot_app_1のCLIから
wget https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-arm64-static.tar.xz
tar Jxvf ./ffmpeg-release-arm64-static.tar.xz
cp ./ffmpeg-5.0.1-arm64-static/ffmpeg /usr/local/bin/
と打ち、再起動を行ってみましたが。変わりませんでした。
TTS接続中に7.66MBの辞書ファイル(.dict)を投げたら、エラー落ちした。
/app/src/connectionManager.js:70
if (type.startsWith("image")) {
^
TypeError: Cannot read properties of null (reading 'startsWith')
at /app/src/connectionManager.js:70:16
at r.forEach (<anonymous>)
at connectionManager.messageProcessor (/app/src/connectionManager.js:68:30)
at Client.<anonymous> (/app/index.js:189:24)
at Client.emit (node:events:527:28)
at MessageCreateAction.handle (/app/node_modules/discord.js/src/client/actions/MessageCreate.js:26:14)
at module.exports [as MESSAGE_CREATE] (/app/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (/app/node_modules/discord.js/src/client/websocket/WebSocketManager.js:351:31)
at WebSocketShard.onPacket (/app/node_modules/discord.js/src/client/websocket/WebSocketShard.js:444:22)
at WebSocketShard.onMessage (/app/node_modules/discord.js/src/client/websocket/WebSocketShard.js:301:10)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.