Revision: 71e4af067739
Author: Stefan Schliebs
Date: Sun Nov 27 16:43:36 2011
Log: Fixed voice bug
http://code.google.com/p/open-allure-ds/source/detail?r=71e4af067739
Modified:
/wikitospeech/BeautifulSoup.pyc
/wikitospeech/objects.pyc
/wikitospeech/scriptParser.pyc
/wikitospeech/voice.py
/wikitospeech/voice.pyc
=======================================
--- /wikitospeech/BeautifulSoup.pyc Fri Nov 11 23:49:48 2011
+++ /wikitospeech/BeautifulSoup.pyc Sun Nov 27 16:43:36 2011
Binary file, no diff available.
=======================================
--- /wikitospeech/objects.pyc Fri Nov 11 23:49:48 2011
+++ /wikitospeech/objects.pyc Sun Nov 27 16:43:36 2011
Binary file, no diff available.
=======================================
--- /wikitospeech/scriptParser.pyc Fri Nov 11 23:49:48 2011
+++ /wikitospeech/scriptParser.pyc Sun Nov 27 16:43:36 2011
@@ -1,5 +1,5 @@
Ñò
- WtNc @ sØ d d k l Z d d k Z d d k Z d d k Z d d k Z d d k Z d d k Z d d k Z d d k l
Z
l
+ÜÖÒNc @ sØ d d k l Z d d k Z d d k Z d d k Z d d k Z d d k Z d d k Z d d k Z d d k l
Z
l
Z
d „ Z d „ Z d „ Z
d „ Z d „ Z d „ Z d
@@ -26,7 +26,6 @@
HTTP_PROXYt s http://cache.aut.ac.nz:3128R t proxiest divt postbodyt classi u "initialAttributedText":{"text"i! u ,"attribs":i s \n( t ost environt urllibt urlopenR t readR t strt UnicodeDecodeErrorR t lenR t splitt
parseText(
R t proxyR
t urlOpent soupR t
- soupStringt cleanUnicodeTextStrR R ( ( s= /Users/johngraves/open-allure-ds/wikitospeech/scriptParser.pyR C s,
c C sÎ y t i d } Wn
@@ -42,11 +41,9 @@
S( NR
R
s http://cache.aut.ac.nz:3128R R
- s .txts
s <br />
s <br />R s debug.txtt ws test run at
s %d %b %Y %H:%M( R" R# R$ R% R R& R* R t preR R' t replaceR t joint findAllt Truet
splitlinest opent writeR R t typeR) t stript closeR+ ( R R, R
- R- t urlTextR. t
taggedPret taggedPreStrt ft lR ( ( s= /Users/johngraves/open-allure-ds/wikitospeech/scriptParser.pyR a s8
@@ -79,6 +76,8 @@
t } n | d
j o
t } qx qx qû | d j o: | i t i ƒ p | t i 7} n | } |
| _ qx qû q | d | i d
+ | d j oL | i t i ƒ p | i d ƒ o | t i 7} n |
} | | _ qx q
+ q | d | i d
ƒ !| _ q | i
ƒ } | t j o× t | ƒ d j oÀ | i d ƒ pP | i d ƒ p@ |
i d ƒ p0 | i d ƒ p | i d ƒ p | i d ƒ oL t |
i ƒ d j o) | i i
| ƒ t i ƒ } | | _ n | | _ që | i i
@@ -115,7 +114,7 @@
-
+ %
@@ -144,10 +143,10 @@
responseSideLinks
responseTexts
action( R6 R8 R9 R R R' Rt R Rm Rn Rl Rj Rs Ro Rq Rr Rp R< ( Rx Rw R@ t it qRA t jt a( ( s= /Users/johngraves/open-allure-ds/wikitospeech/scriptParser.pyRv
- s(
" " " 0 t __main__s
20110819b.txt( R R Rf R" R
RN RH R$ t timeR R R R R R R R+ Rv t __name__( ( ( s= /Users/johngraves/open-allure-ds/wikitospeech/scriptParser.pyt <module> s"
+ R R R R, Rw t __name__( ( ( sA /home/stefan/software/open-allure-ds/wikitospeech/scriptParser.pyt <module> s"
% }
=======================================
--- /wikitospeech/voice.py Wed Aug 24 19:13:11 2011
+++ /wikitospeech/voice.py Sun Nov 27 16:43:36 2011
@@ -60,7 +60,12 @@
return
else:
- subprocess.Popen( ['espeak', '"' + phrase + '"' ] )
+ f = open('debug3.txt','w')
+ f.write("test run at " + strftime("%d %b %Y %H:%M", gmtime())
+ "\n"+phrase)
+ f.close()
+
+ proc = subprocess.Popen( ['espeak', '"' + phrase + '"' ] )
+ proc.wait()
def testVoice():
=======================================
--- /wikitospeech/voice.pyc Fri Nov 11 23:49:48 2011
+++ /wikitospeech/voice.pyc Sun Nov 27 16:43:36 2011
@@ -1,5 +1,5 @@
Ñò
-\[[Nc @ s{ d Z d d k Z d d k Z d d k Z d d k l Z l Z d e f d „ ƒ YZ d „ Z
e
+ÚØÒNc @ s{ d Z d d k Z d d k Z d d k Z d d k l Z l Z d e f d „ ƒ YZ d „ Z
e
d j o e ƒ n d S( sŒ
voice.py
a component of openallure.py
@@ -20,6 +20,7 @@
| d
g ƒ d S( sÿ Say or print phrase using text-to-speech engine or
stdout.
+
An empty phrase returns without calling the speech engine.
espeak (engine) could take an optional Voice:language parameter
@@ -28,13 +29,15 @@
s
http://www.t i Ns [next]t darwint Alexs say
-v s "t "t shelli t win32s
SayStatic s Call to SayStatic
failedt espeak( t stript replacet lent syst platformR t
subprocesst Popent Truet pidt ost waitpidt OSErrort wait( R t phraset systemVoicet commandLinet proc( ( s6 /Users/johngraves/open-allure-ds/wikitospeech/voice.pyt speak s0
+t espeak( t stript replacet lent syst platformR t
+ subprocesst Popent Truet pidt ost waitpidt OSErrort waitt opent writeR R t close( R t phraset systemVoicet commandLinet proct f( ( s: /home/stefan/software/open-allure-ds/wikitospeech/voice.pyt speak s8
- ( t __name__t
- __module__t __doc__R R
+ %
+
+ ( t __name__t
( ( ( s6 /Users/johngraves/open-allure-ds/wikitospeech/voice.pyR s
c C s
t ƒ } | i d d ƒ d S( s9
Create a Voice instance and check that it works
s This is a testR N( R R
- ( t voice( ( s6 /Users/johngraves/open-allure-ds/wikitospeech/voice.pyt
testVoiceB s
t __main__( R! R R R t timeR R t objectR R# R ( ( ( s6 /Users/johngraves/open-allure-ds/wikitospeech/voice.pyt <module> s 0