$ su # aptitude install festival
To prove it works correctly, we log in as normal user and place.
For details type `(festival_warranty) '
If you hear the "Hi How are you" is a horrible robotic voice but it is good that there xD. Also you can pass a text file to read it. I have a friend who used one of these programs in windows and read the whole book of Kevin Mitnick "The art of intrusion" xD. To read a file is passed to this parameter. $ festival - English language - tts file.txt
can do many things like we read important news, horoscopes, traffic conditions etc. I put it when booting the system tells me how is the prognosis (and for me the same tired ja). Ah
the page where the prognosis is
out this
who-speak.pl
# / usr / bin / perl use
LWP:: Simple;
use utf8; no utf8;
$ ua = LWP:: UserAgent-> new (agent => 'Mozilla/5.0 (X11, U; Linux x86_64; is; rv: 1.9.1.8) Gecko/20100218 Firefox/3.0.3 (like Firefox/3.5.8) ');
$ ua-> default_header (' Accept-Language '=> "es-ar, is, q = 0.8, en-us; q = 0.5,, q = 0.3") # accept language English
$ ua-> timeout (7); # $ ua-> env_proxy;
$ response = $ ua-> get ($ page);
$ request = $ response-> content ;
# $ request = ~ m / \u0026lt;p align=center> \u0026lt;b> TODAY (.*?)\u0026lt; \\ / b> \u0026lt;\\ / p> / s;
# $ day = $ 1;
#-------------------------- Volume Date -------- Data ------------------------------------ # s #
$ request = ~ m / \u0026lt; p class = "ccWeatherTimeStamp"> Updated: \\ s *(.*?) Local Time \u0026lt;\\ / p> / s; # I take the data actulizacion
$ update = $ 1;
$ update = ~ s / \\ n / / gi, $ update = ~ s / \\ t / / gi; # clean the \\ n and \\ t
months #---------- Change to English ----- -------
$ update = ~ s / Jan / Jan / gi;
$ update = ~ s / Feb / Febreol / gi;
$ update = ~ s / Mar / Marzol / gi;
$ update = ~ s / April / April / gi;
$ update = ~ s / May / May / gi;
$ update = ~ s / June / June / gi;
$ update = ~ s / July / July / gi;
$ update = ~ s / Jul / Aug / gi;
$ update = ~ s / September / September / gi;
$ update = ~ s / October / October / gi;
$ update = ~ s / Nov / Nov / gi;
$ update = ~ s / Nov / Dec / gi;
#----------------- End-Month Change --------------------
#-------- take the temperature
-----------
$ request = ~ m / \u0026lt;div class="ccTemp"> (\\ d +) ° F \u0026lt;\\ / div> / s;
$ temp = $ 1;
$ celsius = ($ temp - 32) * 5 / 9, # step from F to C
$ Celsius = sprintf ("% .1 f" , $ celsius); # truncoo
number #------------- took the state
--------------- $ request = ~ m / \u0026lt;div class="ccdata"> \u0026lt;p> (.*?)\u0026lt; \\ / p> \u0026lt;\\ / div> / s;
$ status = $ 1;
# - I think the archivoi ---------------------- ------------------------- ---------------------- s #
($ sec, $ min, $ hour) = localtime (time);
open (AR ,">"." temp.txt ")
That's all .. Greetings
0 comments:
Post a Comment