Damare
DamareはDiscordで使える読み上げBotです。
Install / Use
/learn @Chipsnet/DamareREADME
⚠ 注意
v1.0.0以前には、脆弱性があります。必ず最新のバージョンを利用してください。
すでにダウンロード済みの場合、git pullを実行することでアップデートが可能です。
Damare
DamareはDiscord読み上げBotです。 Windowsでのみ動作して、Softalkに依存しています。
YouTube紹介動画
前提条件
- Windows
- Node.js
- Yarn
使い方
まずはこのリポジトリをクローンします
git clone https://github.com/Chipsnet/damare.git
リポジトリのディレクトリへ移動します
cd damare
依存関係をインストールします
yarn install
Softalkを使用する場合
以下の手順に従って、Softalkをセットアップします。
<details><summary>Softalkのセットアップ手順</summary>対象デバイス
- Windows
手順
このソフトウェアにはSoftalkが含まれていないので、まずはインストールします。
Softalkをダウンロードして、解凍、中から出てきた softalk フォルダを damare/softalk に配置します。
damare/softalk/SofTalk.exe を実行し、環境設定を開きます。

録音タブを開き、録音時は読み上げを省略するにチェックを入れます。

完了したらSoftalkを終了します。
</details>OpenJTalkを使用する場合
以下の手順に従って、OpenJTalkをセットアップします。
<details><summary>OpenJTalkのセットアップ手順</summary>対象デバイス
- Linux
- Windows
- Mac
手順
Linuxの場合
Ubuntuでは、以下のようにしてOpenJTalkをインストールします。
sudo apt install open-jtalk
Ubuntu以外でも同様にOpenJTalkをインストールします。
Windowsの場合
Windowsで音声合成Open JTalk - Qiita
こちらの記事を参考に、OpenJTalkをインストールします。
その後、OpenJTalkのフォルダにパスを通します。
Macの場合
Homebrewインストール環境下で
brew install open-jtalk
と実行して、OpenJTalkをインストールします。
</details>設定ファイル
damare/config.ymlを作成し、以下のように編集します。<br>
token
Discord Developer Portalにアクセスして、取得したアプリケーションのトークンを貼り付けてください
guildId
使用するサーバーのIDを入力してください。<br>
prefix
コマンドとして認識するための識別子を入力します。(例えばprefixに;を設定すると、Discord内でコマンドを使用する際に;helpのようになります。)
voiceclient
Damareが使用する音声合成エンジンを指定します。<br> | config | Engine | Available | |--------|-----------|--------------------------| | 1 | Softalk | Windows | | 2 | OpenJTalk | Mac/Winodws/Linux/Docker |
Mac/Linux/Dockerの場合は必ず2を指定してください<br>
指定しなかった場合は自動的にSoftalkが使用されます。
token: token
useguild: guildId
prefix: ";"
voiceclient: 1 #Softalk(Windows): 1 / OpenJTalk(Mac/Windows/Linux/Docker): 2
Dockerを使用していない場合は、以下のコマンドで実行します
yarn start
Dockerを使用する場合
リポジトリをクローンします
git clone https://github.com/Chipsnet/damare.git
リポジトリのディレクトリへ移動します
cd damare
設定ファイルにもとづいて設定します。
Dockerイメージをビルドします。
docker build -t damare .
Dockerコンテナを-dデーモンとして起動します。
docker run -d damare
以下のコマンドを打つとDamareコンテナ内のログを見ることができます。
docker logs (docker run後に表示されたuid)
Q&A
Botが読み上げなくなった
内部エラーによりキューの処理が正常にされなかった可能性があります。
resetコマンドを実行してみてください。それでも直らない場合はstopで一度停止してからtalkで再度読み上げ開始してみてください。
それでも直らない場合はお手数ですがBotを再起動してください。
Botを実行すると実行したPCがうるさい
使い方にある録音時は読み上げを省略するにチェックを入れたかどうか確認してください。
お布施
ライセンス
このソフトウェアに含まれるボイスデータや辞書データなどのライセンスを記載しています。
HTS Voice "NIT ATR503 M001" version 1.05
This work is licensed under the Creative Commons Attribution 3.0 license.
<details><summary>LICENSE</summary>===============================================================================
HTS Voice "NIT ATR503 M001" version 1.05
release December 25, 2012
HTS voice trained by using the Nitech Japanese Speech Database "NIT ATR503
M001" is released as a part of Open JTalk (http://open-jtalk.sourceforge.net/).
This voice consists of HMMs trained by using HMM-based Speech Synthesis System
(HTS) version 2.3 alpha (http://hts.sp.nitech.ac.jp/).
*******************************************************************************
Copying
*******************************************************************************
# ----------------------------------------------------------------- #
# HTS Voice "NIT ATR503 M001" #
# released by HTS Working Group #
# http://open-jtalk.sourceforge.net/ #
# ----------------------------------------------------------------- #
# #
# Copyright (c) 2003-2012 Nagoya Institute of Technology #
# Department of Computer Science #
# #
# 2003-2008 Tokyo Institute of Technology #
# Interdisciplinary Graduate School of #
# Science and Engineering #
# #
# Some rights reserved. #
# #
# This work is licensed under the Creative Commons Attribution 3.0 #
# license. #
# #
# You are free: #
# * to Share - to copy, distribute and transmit the work #
# * to Remix - to adapt the work #
# Under the following conditions: #
# * Attribution - You must attribute the work in the manner #
# specified by the author or licensor (but not in any way that #
# suggests that they endorse you or your use of the work). #
# With the understanding that: #
# * Waiver - Any of the above conditions can be waived if you get #
# permission from the copyright holder. #
# * Public Domain - Where the work or any of its elements is in #
# the public domain under applicable law, that status is in no #
# way affected by the license. #
# * Other Rights - In no way are any of the following rights #
# affected by the license: #
# - Your fair dealing or fair use rights, or other applicable #
# copyright exceptions and limitations; #
# - The author's moral rights; #
# - Rights other persons may have either in the work itself or #
# in how the work is used, such as publicity or privacy #
# rights. #
# * Notice - For any reuse or distribution, you must make clear to #
# others the license terms of this work. The best way to do this #
# is with a link to this web page. #
# #
# See http://creativecommons.org/ for details. #
# ----------------------------------------------------------------- #
See also "COPYING" file in the current directory for details.
*******************************************************************************
Installation
*******************************************************************************
See "INSTALL" in the same directory for details.
*******************************************************************************
Acknowledgements
*******************************************************************************
Keiichi Tokuda
Shinji Sako
Heiga Zen
Keiichiro Oura
*******************************************************************************
Who we are
*******************************************************************************
The HTS working group is a voluntary group for developing the HMM-Based Speech
Synthesis System. Current members are
Keiichi Tokuda http://www.sp.nitech.ac.jp/~tokuda/
(Produce and Design)
Keiichiro Oura http://www.sp.nitech.ac.jp/~uratec/
(Design and Development, Main Maintainer)
Kei Hashimoto http://www.sp.nitech.ac.jp/~bonanza/
Sayaka Shiota http://www.sp.nitech.ac.jp/~sayaka/
Shinji Takaki http://www.sp.nitech.ac.jp/~k-prr44/
Heiga Zen
Junichi Yamagishi http://homepages.inf.ed.ac.uk/jyamagis/
Tomoki Toda http://spalab.naist.jp/~tomoki/index_e.html
Takashi Nose
Shinji Sako http://www.mmsp.nitech.ac.jp/~sako/
Alan W. Black http://www.cs.cmu.edu/~awb/
and the members are dynamically changing. The current formal contact address of
HTS working group and a mailing list for HTS users can be found at
http://hts.sp.nitech.ac.jp/
===============================================================================
</details>
open_jtalk_dic_utf_8-1.11
Copyright (c) 2009, Nara Institute of Science and Technology, Japan.
All rights reserved.
<details><summary>LICENSE</summary>Copyright (c) 2009, Nara Institute of Science and Technology, Japan.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
Neither the name of the Nara Institute of Science and Technology
(NAIST) nor

