Giter Club home page Giter Club logo

polyvoxcord's Introduction

PolyVoxCord

LICENSE Discord bot Python3.11.0 SQLite VSCode

これはなに

Discordの読み上げbot VOICEROID2,VOICEVOX,SofTalkを使用し、音声を作成し、読み上げをしてくれる

機能,仕様

  • VOICEROID2,VOICEVOX,SofTalkを使用したDiscord上のテキストを読み上げを行う
  • txtファイル読み上げ
  • ユーザー,サーバー事のボイスモデルを設定
  • ユーザー独自のサーバー事の辞書
  • サーバー事読み上げ文字数制限
  • URLはそのまま読み上げせず置き換える
  • MeCabによる単語の読みを推測(お好きなコーパスを指定出来ます。)

コマンド

コマンド名 説明
help ヘルプコマンド
read_start 読み上げ開始
read_end 読み上げ終了
softalk_list Softalkの声の一覧を見る
voiceroid_list VOICEROIDの声の一覧を見る
voicevox_list VOICEVOXの声の一覧を見る
set_softalk SofTalkの声を設定する
set_voiceroid VOICEROIDの声を設定する
set_voicevox VOICEVOXの声を設定する
set_other_user_softalk 他のユーザーのSofTalkの声を設定する(管理者権限が必要です)
set_other_user_voiceroid 他のユーザーのVOICEROIDの声を設定する(管理者権限が必要です)
set_other_user_voicevox 他のユーザーのVOICEVOXの声を設定する(管理者権限が必要です)
set_limit 読み上げ上限数を設定
add_dict 辞書を追加
del_dict 辞書を削除

環境変数

envファイルについて

変数名 役割 デフォルト値
TOKEN Discordのトークン
DB_NAME SQLiteデータベース名 PolyVoxCord.db
SOFTALK SofTalkのインストールパス
VOICEVOX_HOST VOICEVOXを動かしているホスト localhost
VOICEVOX_PORT VOICEVOXを動かしているホストのポート 50021
MECAB_USER_DICT MeCabのコーパスのパス

初期設定,実行

  1. VOICEVOXを起動する
  2. poetry installを行いpoetryで仮想環境を作成
  3. .env.sampleファイルを.envにリネーム
  4. .envファイルのTOKENなどを埋める
  5. poetry shellで仮想環境に入る
  6. python app/init_db.pyを実行し、dbフォルダにdbファイルが作成される事を確認する
  7. python app/main.pyを実行する

動かない時試す事

  • VOICEROID2を64bitに上げる
  • VOICEVOXを起動する

改修時にする事

フォーマッターを実行する

isort .
black .

polyvoxcord's People

Contributors

somakai-sumasi avatar

Stargazers

 avatar

Watchers

 avatar  avatar

polyvoxcord's Issues

[質問]<MeCabを指定しているのに読み上げることができない>

type:<class 'RuntimeError'>
args:('\n----------------------------------------------------------\n\nFailed initializing MeCab. Please see the README for possible solutions:\n\n    https://github.com/SamuraiT/mecab-python3#common-issues\n\nIf you are still having trouble, please file an issue here, and include the\nERROR DETAILS below:\n\n    https://github.com/SamuraiT/mecab-python3/issues\n\nissueを英語で書く必要はありません。\n\n------------------- ERROR DETAILS ------------------------\narguments: -u"C:/Program Files (x86)/MeCab/dic/ipadic/sys.dic"  -F"%M\\\\t%c,%H\\\\n"\ndefault dictionary path: None\n) [tokenizer_->open(param)] tokenizer.cpp(128) [d->type() == 1] not a user dictionary: C:/Program Files (x86)/MeCab/dic/ipadic/sys.dic \n----------------------------------------------------------\n',)

こちらですが、ファイルの指定する形式がそもそも間違っているのでしょうか?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.