Initial commit
This commit is contained in:
21
LICENSE
Normal file
21
LICENSE
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2026 Vladimir "hdkv" Hodakov
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
4
README.md
Normal file
4
README.md
Normal file
@@ -0,0 +1,4 @@
|
||||
# Experimental espeak wrapper to OpenJTalk
|
||||
|
||||
This wrapper calls OpenJTalk if you want to use Japanese voice and
|
||||
resorts back to the espeak-ng with you want to use any other voice.
|
||||
133
espeak
Executable file
133
espeak
Executable file
@@ -0,0 +1,133 @@
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
set -x
|
||||
|
||||
# This wrapper is a drop-in replacement for espeak, which does the following:
|
||||
# 1. If the language is not Japanese, it calls espesk from the system directly.
|
||||
# 2. If the language is Japanese, it calls open_jtalk. Models and voice are
|
||||
# provided in the japanese/ folder. They're licensed under BSD-3-Clause, so
|
||||
# we can redistribute them with the game.
|
||||
# 3. If open_jtalk is not available, fall back to espeak.
|
||||
|
||||
ROOT="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
REAL_ESPEAK="$(command -v espeak-ng || true)"
|
||||
if [[ -z "${REAL_ESPEAK}" ]]; then
|
||||
REAL_ESPEAK="$(command -v /usr/bin/espeak || command -v espeak)"
|
||||
fi
|
||||
|
||||
if [[ -z "${REAL_ESPEAK}" ]]; then
|
||||
echo "ERROR: could not find espeak or espeak-ng in PATH" >&2
|
||||
exit 127
|
||||
fi
|
||||
|
||||
OPENJTALK="$(command -v open_jtalk || true)"
|
||||
if [[ -z "${OPENJTALK}" ]]; then
|
||||
echo "WARNING: could not find open_jtalk in PATH" >&2
|
||||
echo "Falling back to espeak for all languages, including Japanese." >&2
|
||||
fi
|
||||
|
||||
PLAYER="$(command -v paplay || command -v aplay || true)"
|
||||
if [[ -z "${PLAYER}" ]]; then
|
||||
echo "WARNING: could not find paplay or aplay in PATH" >&2
|
||||
echo "Falling back to espeak for all languages, including Japanese." >&2
|
||||
fi
|
||||
|
||||
JTALK_DIC="${ROOT}/japanese/dict"
|
||||
JTALK_VOICE="${ROOT}/japanese/voice/nitech_jp_atr503_m001.htsvoice"
|
||||
|
||||
voice=""
|
||||
declare -a passthrough=()
|
||||
text=""
|
||||
|
||||
while (($#)); do
|
||||
case "$1" in
|
||||
-v)
|
||||
shift
|
||||
voice="${1:-}"
|
||||
;;
|
||||
-v*)
|
||||
voice="${1#-v}"
|
||||
;;
|
||||
# keep other flags for espeak fallback (-a is used by Ren'Py)
|
||||
-*)
|
||||
passthrough+=("$1")
|
||||
# capture arg for flags like -a <amp>
|
||||
if [[ "$1" == "-a" && $# -ge 2 ]]; then
|
||||
shift
|
||||
passthrough+=("$1")
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
# Ren'Py appends the full text as one argument.
|
||||
# If something else adds extra args, last one wins.
|
||||
text="$1"
|
||||
;;
|
||||
esac
|
||||
shift || true
|
||||
done
|
||||
|
||||
|
||||
fallback() {
|
||||
echo "ERROR: OpenJTalk failed; falling back to espeak" >&2
|
||||
}
|
||||
|
||||
voice_openjtalk() {
|
||||
[[ -n "${OPENJTALK}" && -x "${OPENJTALK}" ]] || return 2
|
||||
[[ -d "${JTALK_DIC}" ]] || return 3
|
||||
[[ -f "${JTALK_VOICE}" ]] || return 4
|
||||
[[ -n "${text}" ]] || return 5
|
||||
|
||||
local tmpwav
|
||||
tmpwav="$(mktemp --suffix=.wav)"
|
||||
|
||||
set +e
|
||||
printf "%s" "${text}" | "${OPENJTALK}" \
|
||||
-x "${JTALK_DIC}" \
|
||||
-m "${JTALK_VOICE}" \
|
||||
-ow "${tmpwav}" \
|
||||
>/dev/null 2>&1
|
||||
local rc=$?
|
||||
set -e
|
||||
|
||||
# If a generated wav file is empty, fallback.
|
||||
if [[ $rc -ne 0 || ! -s "${tmpwav}" ]]; then
|
||||
rm -f "${tmpwav}"
|
||||
return 10
|
||||
fi
|
||||
|
||||
# If there is no player, fallback to espeak.
|
||||
if [[ -z "${PLAYER}" ]]; then
|
||||
rm -f "${tmpwav}"
|
||||
return 11
|
||||
fi
|
||||
|
||||
set +e
|
||||
"${PLAYER}" "${tmpwav}" >/dev/null 2>&1
|
||||
local prc=$?
|
||||
set -e
|
||||
|
||||
rm -f "${tmpwav}"
|
||||
[[ $prc -eq 0 ]] || return 12
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
if [[ "${voice}" == "ja" ]]; then
|
||||
if voice_openjtalk; then
|
||||
exit 0
|
||||
else
|
||||
fallback
|
||||
fi
|
||||
fi
|
||||
|
||||
# Fallback to espeak.
|
||||
if [[ -n "${voice}" ]]; then
|
||||
exec "${REAL_ESPEAK}" -v "${voice}" "${passthrough[@]}" "${text}"
|
||||
else
|
||||
exec "${REAL_ESPEAK}" "${passthrough[@]}" "${text}"
|
||||
fi
|
||||
100
japanese/dict/COPYING
Normal file
100
japanese/dict/COPYING
Normal file
@@ -0,0 +1,100 @@
|
||||
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 the names of its contributors may be used to endorse or
|
||||
promote products derived from this software without specific prior
|
||||
written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
||||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
Copyright (c) 2011-2017, The UniDic Consortium
|
||||
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 UniDic Consortium nor the names of its
|
||||
contributors may be used to endorse or promote products derived
|
||||
from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
/* ----------------------------------------------------------------- */
|
||||
/* The Japanese TTS System "Open JTalk" */
|
||||
/* developed by HTS Working Group */
|
||||
/* http://open-jtalk.sourceforge.net/ */
|
||||
/* ----------------------------------------------------------------- */
|
||||
/* */
|
||||
/* Copyright (c) 2008-2016 Nagoya Institute of Technology */
|
||||
/* Department of Computer Science */
|
||||
/* */
|
||||
/* 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 HTS working group nor the names of its */
|
||||
/* contributors may be used to endorse or promote products derived */
|
||||
/* from this software without specific prior written permission. */
|
||||
/* */
|
||||
/* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND */
|
||||
/* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, */
|
||||
/* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */
|
||||
/* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE */
|
||||
/* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS */
|
||||
/* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, */
|
||||
/* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED */
|
||||
/* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, */
|
||||
/* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON */
|
||||
/* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, */
|
||||
/* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY */
|
||||
/* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE */
|
||||
/* POSSIBILITY OF SUCH DAMAGE. */
|
||||
/* ----------------------------------------------------------------- */
|
||||
BIN
japanese/dict/char.bin
Normal file
BIN
japanese/dict/char.bin
Normal file
Binary file not shown.
1377
japanese/dict/left-id.def
Normal file
1377
japanese/dict/left-id.def
Normal file
File diff suppressed because it is too large
Load Diff
BIN
japanese/dict/matrix.bin
Normal file
BIN
japanese/dict/matrix.bin
Normal file
Binary file not shown.
69
japanese/dict/pos-id.def
Normal file
69
japanese/dict/pos-id.def
Normal file
@@ -0,0 +1,69 @@
|
||||
その他,間投,*,* 0
|
||||
フィラー,*,*,* 1
|
||||
感動詞,*,*,* 2
|
||||
記号,アルファベット,*,* 3
|
||||
記号,一般,*,* 4
|
||||
記号,括弧開,*,* 5
|
||||
記号,括弧閉,*,* 6
|
||||
記号,句点,*,* 7
|
||||
記号,空白,*,* 8
|
||||
記号,読点,*,* 9
|
||||
形容詞,自立,*,* 10
|
||||
形容詞,接尾,*,* 11
|
||||
形容詞,非自立,*,* 12
|
||||
助詞,格助詞,一般,* 13
|
||||
助詞,格助詞,引用,* 14
|
||||
助詞,格助詞,連語,* 15
|
||||
助詞,係助詞,*,* 16
|
||||
助詞,終助詞,*,* 17
|
||||
助詞,接続助詞,*,* 18
|
||||
助詞,特殊,*,* 19
|
||||
助詞,副詞化,*,* 20
|
||||
助詞,副助詞,*,* 21
|
||||
助詞,副助詞/並立助詞/終助詞,*,* 22
|
||||
助詞,並立助詞,*,* 23
|
||||
助詞,連体化,*,* 24
|
||||
助動詞,*,*,* 25
|
||||
接続詞,*,*,* 26
|
||||
接頭詞,形容詞接続,*,* 27
|
||||
接頭詞,数接続,*,* 28
|
||||
接頭詞,動詞接続,*,* 29
|
||||
接頭詞,名詞接続,*,* 30
|
||||
動詞,自立,*,* 31
|
||||
動詞,接尾,*,* 32
|
||||
動詞,非自立,*,* 33
|
||||
副詞,一般,*,* 34
|
||||
副詞,助詞類接続,*,* 35
|
||||
名詞,サ変接続,*,* 36
|
||||
名詞,ナイ形容詞語幹,*,* 37
|
||||
名詞,一般,*,* 38
|
||||
名詞,引用文字列,*,* 39
|
||||
名詞,形容動詞語幹,*,* 40
|
||||
名詞,固有名詞,一般,* 41
|
||||
名詞,固有名詞,人名,一般 42
|
||||
名詞,固有名詞,人名,姓 43
|
||||
名詞,固有名詞,人名,名 44
|
||||
名詞,固有名詞,組織,* 45
|
||||
名詞,固有名詞,地域,一般 46
|
||||
名詞,固有名詞,地域,国 47
|
||||
名詞,数,*,* 48
|
||||
名詞,接続詞的,*,* 49
|
||||
名詞,接尾,サ変接続,* 50
|
||||
名詞,接尾,一般,* 51
|
||||
名詞,接尾,形容動詞語幹,* 52
|
||||
名詞,接尾,助数詞,* 53
|
||||
名詞,接尾,助動詞語幹,* 54
|
||||
名詞,接尾,人名,* 55
|
||||
名詞,接尾,地域,* 56
|
||||
名詞,接尾,特殊,* 57
|
||||
名詞,接尾,副詞可能,* 58
|
||||
名詞,代名詞,一般,* 59
|
||||
名詞,代名詞,縮約,* 60
|
||||
名詞,動詞非自立的,*,* 61
|
||||
名詞,特殊,助動詞語幹,* 62
|
||||
名詞,非自立,一般,* 63
|
||||
名詞,非自立,形容動詞語幹,* 64
|
||||
名詞,非自立,助動詞語幹,* 65
|
||||
名詞,非自立,副詞可能,* 66
|
||||
名詞,副詞可能,*,* 67
|
||||
連体詞,*,*,* 68
|
||||
94
japanese/dict/rewrite.def
Normal file
94
japanese/dict/rewrite.def
Normal file
@@ -0,0 +1,94 @@
|
||||
#
|
||||
# Feature(POS) to Internal State mapping
|
||||
#
|
||||
[unigram rewrite]
|
||||
# 読み,発音をとりのぞいて, 品詞1,2,3,4,活用形,活用型,原形,よみ を使う
|
||||
*,*,*,*,*,*,*,* $1,$2,$3,$4,$5,$6,$7,$8
|
||||
# 読みがない場合は無視
|
||||
*,*,*,*,*,*,* $1,$2,$3,$4,$5,$6,$7,*
|
||||
|
||||
[left rewrite]
|
||||
(助詞|助動詞),*,*,*,*,*,(ない|無い) $1,$2,$3,$4,$5,$6,無い
|
||||
(助詞|助動詞),終助詞,*,*,*,*,(よ|ヨ) $1,$2,$3,$4,$5,$6,よ
|
||||
(助詞|助動詞),終助詞,*,*,*,*,(な|なぁ|なあ|ナ) $1,$2,$3,$4,$5,$6,な
|
||||
(助詞|助動詞),終助詞,*,*,*,*,(ね|ねぇ|ねえ|ねェ|ねエ|ねっ|ねッ|ネ) $1,$2,$3,$4,$5,$6,ね
|
||||
(助詞|助動詞),接続助詞,*,*,*,*,(て|ちゃ|ちゃあ) $1,$2,$3,$4,$5,$6,て
|
||||
(助詞|助動詞),接続助詞,*,*,*,*,(ちゃあ|ちゃ) $1,$2,$3,$4,$5,$6,ちゃ
|
||||
(助詞|助動詞),接続助詞,*,*,*,*,(で|じゃ) $1,$2,$3,$4,$5,$6,で
|
||||
(助詞|助動詞),接続助詞,*,*,*,*,(けど|けれど) $1,$2,$3,$4,$5,$6,けれど
|
||||
(助詞|助動詞),*,*,*,*,*,* $1,$2,$3,$4,$5,$6,$7
|
||||
記号,(句点|括弧閉|括弧開),*,*,*,*,* $1,$2,$3,$4,$5,$6,BOS/EOS
|
||||
BOS/EOS,*,*,*,*,*,* $1,$2,$3,$4,$5,$6,BOS/EOS
|
||||
動詞,自立,*,*,*,*,(行う|行なう) $1,$2,$3,$4,$5,$6,行う
|
||||
動詞,自立,*,*,*,*,(いう|言う|云う) $1,$2,$3,$4,$5,$6,言う
|
||||
動詞,自立,*,*,*,*,(いく|行く) $1,$2,$3,$4,$5,$6,行く
|
||||
動詞,自立,*,*,*,*,する $1,$2,$3,$4,$5,$6,する
|
||||
動詞,自立,*,*,*,*,* $1,$2,$3,$4,$5,$6,*
|
||||
動詞,非自立,*,*,*,*,(ある|おる|かかる|きる|なる|まいる|まわる|やる|回る|終わる|切る|参る|いらっしゃる|らっしゃる|なさる|る|もらう|しまう|続く|いく|ゆく|行く|く|くれる|おく|する) $1,$2,$3,$4,$5,$6,$7
|
||||
動詞,非自立,*,*,*,*,(来る|くる) $1,$2,$3,$4,$5,$6,来る
|
||||
動詞,非自立,*,*,*,*,(ぬく|抜く) $1,$2,$3,$4,$5,$6,抜く
|
||||
動詞,非自立,*,*,*,*,(頂く|いただく) $1,$2,$3,$4,$5,$6,頂く
|
||||
動詞,非自立,*,*,*,*,(いたす|致す) $1,$2,$3,$4,$5,$6,致す
|
||||
動詞,非自立,*,*,*,*,(だす|出す) $1,$2,$3,$4,$5,$6,出す
|
||||
動詞,非自立,*,*,*,*,(つくす|尽くす|尽す) $1,$2,$3,$4,$5,$6,尽くす
|
||||
動詞,非自立,*,*,*,*,(直す|なおす) $1,$2,$3,$4,$5,$6,直す
|
||||
動詞,非自立,*,*,*,*,(込む|こむ) $1,$2,$3,$4,$5,$6,込む
|
||||
動詞,非自立,*,*,*,*,(くださる|下さる) $1,$2,$3,$4,$5,$6,下さる
|
||||
動詞,非自立,*,*,*,*,(合う|あう) $1,$2,$3,$4,$5,$6,合う
|
||||
動詞,非自立,*,*,*,*,* $1,$2,$3,$4,$5,$6,*
|
||||
形容詞,*,*,*,*,*,(ない|無い|いい|らしい) $1,$2,$3,$4,$5,$6,無い
|
||||
形容詞,接尾,*,*,*,*,(臭い|くさい) $1,$2,$3,$4,$5,$6,臭い
|
||||
形容詞,接尾,*,*,*,*,(欲しい|ほしい) $1,$2,$3,$4,$5,$6,欲しい
|
||||
形容詞,接尾,*,*,*,*,(ったらしい|たらしい|っぽい|ぽい) $1,$2,$3,$4,$5,$6,たらしい
|
||||
形容詞,接尾,*,*,*,*,* $1,$2,$3,$4,$5,$6,*
|
||||
形容詞,非自立,*,*,*,*,(難い|がたい|づらい|にくい|やすい) $1,$2,$3,$4,$5,$6,難い
|
||||
形容詞,非自立,*,*,*,*,(よい|良い) $1,$2,$3,$4,$5,$6,良い
|
||||
形容詞,非自立,*,*,*,*,(欲しい|ほしい) $1,$2,$3,$4,$5,$6,欲しい
|
||||
形容詞,非自立,*,*,*,*,(じまう|じゃう|でく|どく|でる|どる) $1,$2,$3,$4,$5,$6,でる
|
||||
形容詞,非自立,*,*,*,*,(ちまう|ちゃう|てく|とく|てる|とる) $1,$2,$3,$4,$5,$6,てる
|
||||
形容詞,非自立,*,*,*,*,* $1,$2,$3,$4,$5,$6,*
|
||||
接続詞,*,*,*,*,*,(及び|および|あるいは|或いは|或は|または|又は|ないし|ならびに|並びに|もしくは|若しくは) $1,$2,$3,$4,$5,$6,および
|
||||
*,*,*,*,*,*,* $1,$2,$3,$4,$5,$6,*
|
||||
|
||||
[right rewrite]
|
||||
(助詞|助動詞),*,*,*,*,*,(ない|無い) $1,$2,$3,$4,$5,$6,無い
|
||||
(助詞|助動詞),終助詞,*,*,*,*,(よ|ヨ) $1,$2,$3,$4,$5,$6,よ
|
||||
(助詞|助動詞),終助詞,*,*,*,*,(な|なぁ|なあ|ナ) $1,$2,$3,$4,$5,$6,な
|
||||
(助詞|助動詞),終助詞,*,*,*,*,(ね|ねぇ|ねえ|ねェ|ねエ|ねっ|ねッ|ネ) $1,$2,$3,$4,$5,$6,ね
|
||||
(助詞|助動詞),接続助詞,*,*,*,*,(て|ちゃ|ちゃあ) $1,$2,$3,$4,$5,$6,て
|
||||
(助詞|助動詞),接続助詞,*,*,*,*,(ちゃあ|ちゃ) $1,$2,$3,$4,$5,$6,ちゃ
|
||||
(助詞|助動詞),接続助詞,*,*,*,*,(で|じゃ) $1,$2,$3,$4,$5,$6,で
|
||||
(助詞|助動詞),接続助詞,*,*,*,*,(けど|けれど) $1,$2,$3,$4,$5,$6,けれど
|
||||
(助詞|助動詞),*,*,*,*,*,* $1,$2,$3,$4,$5,$6,$7
|
||||
記号,(句点|括弧閉|括弧開),*,*,*,*,* $1,$2,$3,$4,$5,$6,BOS/EOS
|
||||
BOS/EOS,*,*,*,*,*,* $1,$2,$3,$4,$5,$6,BOS/EOS
|
||||
動詞,自立,*,*,*,*,(行う|行なう) $1,$2,$3,$4,$5,$6,行う
|
||||
動詞,自立,*,*,*,*,(いう|言う|云う) $1,$2,$3,$4,$5,$6,言う
|
||||
動詞,自立,*,*,*,*,(いく|行く) $1,$2,$3,$4,$5,$6,行く
|
||||
動詞,自立,*,*,*,*,する $1,$2,$3,$4,$5,$6,する
|
||||
動詞,自立,*,*,*,*,* $1,$2,$3,$4,$5,$6,*
|
||||
動詞,非自立,*,*,*,*,(ある|おる|かかる|きる|なる|まいる|まわる|やる|回る|終わる|切る|参る|いらっしゃる|らっしゃる|なさる|る|もらう|しまう|続く|いく|ゆく|行く|く|くれる|おく|する) $1,$2,$3,$4,$5,$6,$7
|
||||
動詞,非自立,*,*,*,*,(来る|くる) $1,$2,$3,$4,$5,$6,来る
|
||||
動詞,非自立,*,*,*,*,(ぬく|抜く) $1,$2,$3,$4,$5,$6,抜く
|
||||
動詞,非自立,*,*,*,*,(頂く|いただく) $1,$2,$3,$4,$5,$6,頂く
|
||||
動詞,非自立,*,*,*,*,(いたす|致す) $1,$2,$3,$4,$5,$6,致す
|
||||
動詞,非自立,*,*,*,*,(だす|出す) $1,$2,$3,$4,$5,$6,出す
|
||||
動詞,非自立,*,*,*,*,(つくす|尽くす|尽す) $1,$2,$3,$4,$5,$6,尽くす
|
||||
動詞,非自立,*,*,*,*,(直す|なおす) $1,$2,$3,$4,$5,$6,直す
|
||||
動詞,非自立,*,*,*,*,(込む|こむ) $1,$2,$3,$4,$5,$6,込む
|
||||
動詞,非自立,*,*,*,*,(くださる|下さる) $1,$2,$3,$4,$5,$6,下さる
|
||||
動詞,非自立,*,*,*,*,(合う|あう) $1,$2,$3,$4,$5,$6,合う
|
||||
動詞,非自立,*,*,*,*,* $1,$2,$3,$4,$5,$6,*
|
||||
形容詞,*,*,*,*,*,(ない|無い|いい|らしい) $1,$2,$3,$4,$5,$6,無い
|
||||
形容詞,接尾,*,*,*,*,(臭い|くさい) $1,$2,$3,$4,$5,$6,臭い
|
||||
形容詞,接尾,*,*,*,*,(欲しい|ほしい) $1,$2,$3,$4,$5,$6,欲しい
|
||||
形容詞,接尾,*,*,*,*,(ったらしい|たらしい|っぽい|ぽい) $1,$2,$3,$4,$5,$6,たらしい
|
||||
形容詞,接尾,*,*,*,*,* $1,$2,$3,$4,$5,$6,*
|
||||
形容詞,非自立,*,*,*,*,(難い|がたい|づらい|にくい|やすい) $1,$2,$3,$4,$5,$6,難い
|
||||
形容詞,非自立,*,*,*,*,(よい|良い) $1,$2,$3,$4,$5,$6,良い
|
||||
形容詞,非自立,*,*,*,*,(欲しい|ほしい) $1,$2,$3,$4,$5,$6,欲しい
|
||||
形容詞,非自立,*,*,*,*,(じまう|じゃう|でく|どく|でる|どる) $1,$2,$3,$4,$5,$6,でる
|
||||
形容詞,非自立,*,*,*,*,(ちまう|ちゃう|てく|とく|てる|とる) $1,$2,$3,$4,$5,$6,てる
|
||||
形容詞,非自立,*,*,*,*,* $1,$2,$3,$4,$5,$6,*
|
||||
接続詞,*,*,*,*,*,(及び|および|あるいは|或いは|或は|または|又は|ないし|ならびに|並びに|もしくは|若しくは) $1,$2,$3,$4,$5,$6,および
|
||||
*,*,*,*,*,*,* $1,$2,$3,$4,$5,$6,*
|
||||
1377
japanese/dict/right-id.def
Normal file
1377
japanese/dict/right-id.def
Normal file
File diff suppressed because it is too large
Load Diff
BIN
japanese/dict/sys.dic
Normal file
BIN
japanese/dict/sys.dic
Normal file
Binary file not shown.
BIN
japanese/dict/unk.dic
Normal file
BIN
japanese/dict/unk.dic
Normal file
Binary file not shown.
87
japanese/voice/COPYING
Normal file
87
japanese/voice/COPYING
Normal file
@@ -0,0 +1,87 @@
|
||||
# ----------------------------------------------------------------- #
|
||||
# The Nitech Japanese Speech Database "NIT ATR503 M001" #
|
||||
# released by HTS Working Group #
|
||||
# http://hts.sp.nitech.ac.jp/ #
|
||||
# ----------------------------------------------------------------- #
|
||||
# #
|
||||
# Copyright (c) 2003-2012 Nagoya Institute of Technology #
|
||||
# Department of Computer Science #
|
||||
# #
|
||||
# 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. #
|
||||
# ----------------------------------------------------------------- #
|
||||
|
||||
# ----------------------------------------------------------------- #
|
||||
# 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. #
|
||||
# ----------------------------------------------------------------- #
|
||||
12
japanese/voice/INSTALL
Normal file
12
japanese/voice/INSTALL
Normal file
@@ -0,0 +1,12 @@
|
||||
Installation Instructions
|
||||
*************************
|
||||
|
||||
1. After unpacking the tar.gz file, cd to the HTS voice directory.
|
||||
|
||||
2. Run engine with appropriate options.
|
||||
|
||||
% hts_engine -m nitech_jp_atr503_m001.htsvoice \
|
||||
-ow output.wav input.lab
|
||||
|
||||
% open_jtalk -m nitech_jp_atr503_m001.htsvoice \
|
||||
-ow output.wav -x dic_dir input.txt
|
||||
102
japanese/voice/README
Normal file
102
japanese/voice/README
Normal file
@@ -0,0 +1,102 @@
|
||||
===============================================================================
|
||||
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/
|
||||
===============================================================================
|
||||
BIN
japanese/voice/nitech_jp_atr503_m001.htsvoice
Normal file
BIN
japanese/voice/nitech_jp_atr503_m001.htsvoice
Normal file
Binary file not shown.
Reference in New Issue
Block a user