[115154] trunk/dports/audio/open_jtalk
hum at macports.org
hum at macports.org
Thu Dec 26 19:19:41 PST 2013
Revision: 115154
https://trac.macports.org/changeset/115154
Author: hum at macports.org
Date: 2013-12-26 19:19:41 -0800 (Thu, 26 Dec 2013)
Log Message:
-----------
open_jtalk: update to 1.07; install additional documents; fix open_jtalk_demo script to specify htsvoice files.
Modified Paths:
--------------
trunk/dports/audio/open_jtalk/Portfile
trunk/dports/audio/open_jtalk/files/open_jtalk_demo
trunk/dports/audio/open_jtalk/files/patch-Makefile.diff
Modified: trunk/dports/audio/open_jtalk/Portfile
===================================================================
--- trunk/dports/audio/open_jtalk/Portfile 2013-12-27 01:56:06 UTC (rev 115153)
+++ trunk/dports/audio/open_jtalk/Portfile 2013-12-27 03:19:41 UTC (rev 115154)
@@ -4,7 +4,7 @@
PortSystem 1.0
name open_jtalk
-version 1.06
+version 1.07
categories audio japanese
platforms darwin
maintainers hum openmaintainer
@@ -18,8 +18,8 @@
master_sites sourceforge:project/open-jtalk/Open%20JTalk/open_jtalk-${version}
checksums ${distname}${extract.suffix} \
- rmd160 397e12e7366fd98a5e91ff887345d985c9608794 \
- sha256 cb0a17a5301458c7ea1992dbed61feb75a109af208ffdacf6a3459ecda980be7
+ rmd160 eee8278652bdcd6f0e93eb0d7d8ca27f7eea791a \
+ sha256 080efce34ba53b07f986fcc98e7bce54d08c42a7a9feb4dcd2bb0e88ce182ed1 \
depends_lib port:hts_engine_API \
port:libiconv
@@ -33,11 +33,19 @@
configure.args --with-hts-engine-header-path=${prefix}/include \
--with-hts-engine-library-path=${prefix}/lib
+post-destroot {
+ set docdir ${prefix}/share/doc/${name}
+ xinstall -d ${destroot}${docdir}
+ xinstall -m 644 -W ${worksrcpath} \
+ AUTHORS COPYING ChangeLog NEWS README \
+ ${destroot}${docdir}
+}
+
default_variants +voice
set voice_nitech hts_voice_nitech_jp_atr503_m001-1.05
#set voice_nitech hts_voice_nitech_jp_atr503_m001-${version}
-set voice_mei MMDAgent_Example-1.3.1
+set voice_mei MMDAgent_Example-1.4
set voice_nitech_dist ${voice_nitech}${extract.suffix}
set voice_mei_dist ${voice_mei}.zip
@@ -48,16 +56,16 @@
sourceforge:project/mmdagent/MMDAgent_Example/${voice_mei}/:mei
checksums-append ${voice_nitech_dist} \
- sha1 4298eaef57f86b7c502488aad2f95963da75f061 \
rmd160 0cbb453a8af84e30f840d174cd13ed30dcd9fe7d \
+ sha256 2e555c88482267b2931c7dbc7ecc0e3df140d6f68fc913aa4822f336c9e0adfc \
${voice_mei_dist} \
- rmd160 592277091d8ded3e7fe0f037e2d4d96f3ca85b5a \
- sha256 0521ae9b7fc4b300d2364ad7595acf3285fac517ed8496324c8df54af09aacd3
+ rmd160 f85fbb8e93505f60989452697d95418a3c2ed0cf \
+ sha256 44096d92a8d2aef0e6079dc18cf0ec25f557aa5df5476c8c8b099cba8019c11a
extract.only-delete ${voice_mei_dist}
post-extract {
ui_debug "Extracting ${voice_mei_dist}"
- system "unzip -q ${distpath}/${voice_mei_dist} -d ${workpath}"
+ system -W ${workpath} "unzip -q ${distpath}/${voice_mei_dist}"
}
post-destroot {
Modified: trunk/dports/audio/open_jtalk/files/open_jtalk_demo
===================================================================
--- trunk/dports/audio/open_jtalk/files/open_jtalk_demo 2013-12-27 01:56:06 UTC (rev 115153)
+++ trunk/dports/audio/open_jtalk/files/open_jtalk_demo 2013-12-27 03:19:41 UTC (rev 115154)
@@ -14,11 +14,11 @@
DIC_DIR=@prefix@/lib/open_jtalk/dic
VOICE_ROOT=@prefix@/lib/open_jtalk/voice
-VOICE_NITECH="$VOICE_ROOT/nitech"
-VOICE_MEI_BASE="$VOICE_ROOT/mei_"
+VOICE_NITECH="$VOICE_ROOT/nitech/nitech_jp_atr503_m001"
+VOICE_MEI_BASE="$VOICE_ROOT/mei/mei_"
VOICE_TONE=normal
VOICE_MEI="$VOICE_MEI_BASE$VOICE_TONE"
-VOICE_DIR="$VOICE_MEI"
+VOICE_BASE="$VOICE_MEI"
INFILE=/dev/stdin
@@ -26,8 +26,8 @@
case "$1" in
-h|--help) usage ;;
-i|--infile) INFILE="$2"; shift 2 ;;
- -v|--voice) [ "$2" == "nitech" ] && VOICE_DIR="$VOICE_NITECH"; shift 2 ;;
- -t|--tone) VOICE_DIR="$VOICE_MEI_BASE$2"; shift 2 ;;
+ -v|--voice) [ "$2" == "nitech" ] && VOICE_BASE="$VOICE_NITECH"; shift 2 ;;
+ -t|--tone) VOICE_BASE="$VOICE_MEI_BASE$2"; shift 2 ;;
"") INFILE=/dev/stdin ;;
*) INFILE="$1"; shift ;;
esac
@@ -38,27 +38,8 @@
while read LINE
do
echo $LINE | @prefix@/bin/iconv -t EUC-JP | \
- @prefix@/bin/open_jtalk -s 48000 -p 240 -a 0.55 \
- -td $VOICE_DIR/tree-dur.inf \
- -tf $VOICE_DIR/tree-lf0.inf \
- -tm $VOICE_DIR/tree-mgc.inf \
- -tl $VOICE_DIR/tree-lpf.inf \
- -md $VOICE_DIR/dur.pdf \
- -mf $VOICE_DIR/lf0.pdf \
- -mm $VOICE_DIR/mgc.pdf \
- -ml $VOICE_DIR/lpf.pdf \
- -df $VOICE_DIR/lf0.win1 \
- -df $VOICE_DIR/lf0.win2 \
- -df $VOICE_DIR/lf0.win3 \
- -dm $VOICE_DIR/mgc.win1 \
- -dm $VOICE_DIR/mgc.win2 \
- -dm $VOICE_DIR/mgc.win3 \
- -dl $VOICE_DIR/lpf.win1 \
- -cf $VOICE_DIR/gv-lf0.pdf \
- -cm $VOICE_DIR/gv-mgc.pdf \
- -ef $VOICE_DIR/tree-gv-lf0.inf \
- -em $VOICE_DIR/tree-gv-mgc.inf \
- -k $VOICE_DIR/gv-switch.inf \
+ @prefix@/bin/open_jtalk \
+ -m $VOICE_BASE.htsvoice \
-x $DIC_DIR \
-ow $WAVFILE && afplay $WAVFILE
done < "$INFILE"
Modified: trunk/dports/audio/open_jtalk/files/patch-Makefile.diff
===================================================================
--- trunk/dports/audio/open_jtalk/files/patch-Makefile.diff 2013-12-27 01:56:06 UTC (rev 115153)
+++ trunk/dports/audio/open_jtalk/files/patch-Makefile.diff 2013-12-27 03:19:41 UTC (rev 115154)
@@ -9,9 +9,9 @@
dic_DATA = char.bin matrix.bin sys.dic unk.dic left-id.def right-id.def rewrite.def pos-id.def
---- mecab-naist-jdic/Makefile.in.orig 2010-12-18 18:14:24.000000000 +0900
-+++ mecab-naist-jdic/Makefile.in 2011-04-10 16:31:36.000000000 +0900
-@@ -167,7 +167,7 @@
+--- mecab-naist-jdic/Makefile.in.orig 2013-12-24 23:26:07.000000000 +0900
++++ mecab-naist-jdic/Makefile.in 2013-12-27 11:15:12.000000000 +0900
+@@ -165,7 +165,7 @@
EXTRA_DIST = COPYING Makefile.mak naist-jdic.csv matrix.def left-id.def pos-id.def rewrite.def right-id.def char.def unk.def feature.def
DISTCLEANFILES = *.log *.out *~
MAINTAINERCLEANFILES = Makefile.in char.bin matrix.bin sys.dic unk.dic
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20131226/5fa80e23/attachment.html>
More information about the macports-changes
mailing list