|
|
|
@ -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 |
|
|
|
|