Code Monkey home page Code Monkey logo

yomi-kai's Introduction

yomi-KAI

GitHub release (latest by date including pre-releases) GitHub stars GitHub license

概要

yomi-KAIはDiscordのテキストチャンネルに送られた文章をボイスチャンネルで読み上げるbotです。
自分のPC上で実行できるため、他の公開されている読み上げbotと比べて負荷が集中しにくく、安定して動作します。

デモ

準備中

環境

  • Python 3.9以上
  • FFmpeg 4.4以上

依存ライブラリ

  • discord.py 2.0以上
  • python-voicetext

導入方法

Windows

  1. Discord Developer Portalからbotを作成し、 Privileged Gateway Intents の権限をすべて付与。
  2. VoiceText Web APIに登録し、APIキーを受け取る。
  3. Google Cloud Platform(GCP)でプロジェクトを作成し、Cloud Text-to-Speech APIを有効化してサービスアカウントのキー(JSONファイル)を受け取る。
  4. Releasesから yomi-KAI-v***.zip をダウンロードして解凍。
  5. config.ini.example を開き、DiscordのトークンVoiceTextのAPIキー、GCPのキーのディレクトリ(ファイル名も含む)を入力。
  6. config.ini で名前をつけて保存。
  7. windows_setup.batを実行

Linux

  1. Windowsの6. まで同じ
  2. Python, FFmpeg, portaudio19-devをインストール
  3. pip install -r requirements.txt

起動方法

Windows

yomi-KAI.exe を実行。

Linux

yomi-KAI.py を実行。

コマンド

y.c

発言者と同じボイスチャンネルに接続します。

y.dc

ボイスチャンネルから切断します。

y.dict

辞書に関する操作です。詳しくはy.dict helpを参照してください。

y.help

このヘルプを表示します。

機能

  • 辞書
  • プレフィックスの変更
  • 自動切断

設定

config.ini から設定を変更できます。現在設定可能な項目は以下の通りです。

  • プレフィックス
  • 話者(声質)
  • ピッチ
  • スピード

補足

  • 本プログラムをアップデートする際には、辞書データを手動で引き継いでください。辞書データの場所は ./dict/ です。
  • discord.py v1.7.3では動作しません。
  • exeで起動した場合、pythonでの起動と比較して、若干の遅延が発生します。

サポート

サポートサーバーはこちら。要望や質問はこのDiscordサーバーで受け付けています。試用もできます。

支援

サーバー運営費等が毎月発生しています。皆様のご支援をお待ちしております。開発のモチベーションにも繋がります!
[Fantia]

作者

GardenTree [Twitter]

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.