|
|
|
@ -10,7 +10,6 @@ |
|
|
|
|
# doing so for the *whole* wiki takes time and might not be that useful |
|
|
|
|
# consider adding a filter to restrict only on a group e.g. ReadingNotes |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
WIKIPATH=. |
|
|
|
|
|
|
|
|
|
if [ $# -gt 0 ] |
|
|
|
@ -18,13 +17,15 @@ then |
|
|
|
|
WIKIPATH=$1 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
GROUP_FILTER=ReadingNotes. |
|
|
|
|
|
|
|
|
|
DEFAULT_TR=~/bin/pmwiki-to-ssml-default |
|
|
|
|
|
|
|
|
|
for P in `ls $WIKIPATH -IPmWiki.* -I*RecentChanges -Itotalcounter.stat -I*,del-*`; |
|
|
|
|
for P in `ls $WIKIPATH -IPmWiki.* -I*RecentChanges -Itotalcounter.stat -I*,del-* | grep $GROUP_FILTER`; |
|
|
|
|
do |
|
|
|
|
GROUP=`echo $P | sed "s/.*\/\(.*\)\..*$/\1/"` |
|
|
|
|
# test in ssml translation for this group exist else default |
|
|
|
|
grep ^text= $WIKIPATH/$P | sed "s/%0a/\\n/g" | sed -f $DEFAULT_TR > $WIKIPATH/../pub/audio/$P.ssml |
|
|
|
|
espeak -m -f $P.ssml -w $WIKIPATH/../pub/audio/$P.wav |
|
|
|
|
espeak -m -f $WIKIPATH/../pub/audio/$P.ssml -w $WIKIPATH/../pub/audio/$P.wav |
|
|
|
|
oggenc $WIKIPATH/../pub/audio/$P.wav |
|
|
|
|
done |
|
|
|
|