diff --git a/pmwiki_recipes/pim_functions.php b/pmwiki_recipes/pim_functions.php index ef24d09..02b1485 100644 --- a/pmwiki_recipes/pim_functions.php +++ b/pmwiki_recipes/pim_functions.php @@ -168,7 +168,7 @@ 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/^!/TITLE /' | sed "s/[^a-zA-Z]/ /g" | sed "s/^TITLE\(.*\)/\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 + P=ReadingNotes.TheThingsWeDo; grep ^text= $P | sed "s/%0a/\\n/g" | sed 's/^!/TITLE /' | sed "s/[^a-zA-Z]/ /g" | sed "s/^TITLE\(.*\)/\1<\/voice>/" > $P.txt && espeak -m -f $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