openjtalkBot

command module
v0.0.0-...-23d15fc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2023 License: MIT Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

openjtalkBot

OpenJtalkを使用してdiscordのTTSを動かすプログラム

Golangで自分のために作成
開発環境:rpi4(8gb) golang(go1.17.8 linux/arm64) ffmpeg(testing 7:4.1.6-1~deb10u1+rpt2 arm64)

-必要permission-

OAuth2:

BOT

Bot:

General
 View Channels
Text
 Send Messages
 Embed Links
 Read Message History
 Add Reactions
Voice
 Connect
 Speak

招待リンク https://discord.com/api/oauth2/authorize?client_id=<Your Bot Application ID>&permissions=3230784&scope=bot

-起動-

go run main.go -prefix=<prefix> -token=<bot token> -dic=<open-jtalk dictionary> -voice=<open-jtalk voice>

-botコマンド-

<prefix> join :VCに参加します
<prefix> get :読み上げ設定を表示します(User単位)
<prefix> set <Alpha> <Speed> <Pitch> <Accent> : 読み上げ設定を変更します(User単位)
<prefix> word <元>,<先> : 辞書を登録します(Guild単位)
<prefix> limit <1-100> : 読み上げ文字数の上限を設定します(Guild単位)
<prefix> bot : botのメッセージを読み上げるかをトグルします(Guild単位)
<prefix> leave : VCから切断します

コード元:

Bot Souce Code : https://github.com/takanakahiko/discord-tts
Bot API Code : https://github.com/bwmarrin/discordgo
Bot Language : https://golang.org/

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL