example of using multiple voices

master
Fabien Benetou 14 years ago
parent 100e0df5ef
commit 233a4fd9d8
  1. 4
      pmwiki_recipes/pim_functions.php

@ -168,8 +168,8 @@ textFont(font);
/*
details at http://fabien.benetou.fr/MemoryRecalls/ImprovingPIM#AudioPIM
generated via e.g.
P=ReadingNotes.TheThingsWeDo; grep ^text= $P | sed "s/%0a/\\n/g" | sed "s/[^a-zA-Z]/ /g" > $P.txt && espeak -f $P.txt -w ../pub/audio/$P.wav && oggenc ../pub/audio/$P.wav && rm ../pub/audio/$P.wav $P.txt
note that the output could be improved by better parsing and exploring SSML/HTML support
P=ReadingNotes.TheThingsWeDo; grep ^text= $P | sed "s/%0a/\\n/g" | sed 's/^!/TITLE /' | sed "s/[^a-zA-Z]/ /g" | sed "s/^TITLE\(.*\)/<voice gender=\"female\">\1<\/voice>/" > $P.txt && espeak -m $P.txt -w ../pub/audio/$P.wav && oggenc ../pub/audio/$P.wav && rm ../pub/audio/$P.wav $P.txt
the output should be improved by better parsing
details on the HTML markup
https://developer.mozilla.org/en/HTML/Element/audio
http://www.w3.org/TR/html5/video.html#attr-media-controls

Loading…
Cancel
Save