benoitfragit / google2ubuntu

1.1.5 publcation Nedd Translation
https://plus.google.com/u/0/communities/103854623082229435165
133 stars 33 forks source link

Time command returns 404: Not Found #52

Open hotice opened 10 years ago

hotice commented 10 years ago

Using Google2Ubuntu 1.1.4: I triggered the time command via "what time" and here's the terminal output:

/usr/share/google2ubuntu/google2ubuntu.py
/usr/share/google2ubuntu/resources/sound.wav:

 File Size: 55.0k     Bit Rate: 708k
  Encoding: Signed PCM    
  Channels: 2 @ 16-bit   
Samplerate: 22050Hz      
Replaygain: off         
  Duration: 00:00:00.62  

In:100%  00:00:00.62 [00:00:00.00] Out:13.7k [ -====|====- ]        Clip:0    
Done.
config file: /home/andrei/.config/google2ubuntu/google2ubuntu.xml
key internal
command time
it is 19 hour 34 minute
.HTTP Error 404: Not Found
False
play FAIL formats: can't open input file `/tmp/tts.mp3': 
benoitfragit commented 10 years ago

I found why :

try: http://translate.google.com/translate_tts?ie=UTF-8&tl=en_EN&q=it+is+20hour+20minute&total=1&idx=0

then

http://translate.google.com/translate_tts?ie=UTF-8&tl=en_US&q=it+is+20hour+20minute&total=1&idx=0

en_EN is no more supported by Google it has worked before but now, it doesn(t. So I don(t know if it is a temporarry bug or a definitive change so I will spend some times. If the bug persists everything will change from en_EN to en_US

thanks andrew you are the best to find issue :)

2014-03-03 18:38 GMT+01:00 Andrew notifications@github.com:

Using Google2Ubuntu 1.1.4: I triggered the time command via "what time" and here's the terminal output:

/usr/share/google2ubuntu/google2ubuntu.py /usr/share/google2ubuntu/resources/sound.wav:

File Size: 55.0k Bit Rate: 708k Encoding: Signed PCM Channels: 2 @ 16-bit Samplerate: 22050Hz Replaygain: off Duration: 00:00:00.62

In:100% 00:00:00.62 [00:00:00.00] Out:13.7k [ -====|====- ] Clip:0 Done. config file: /home/andrei/.config/google2ubuntu/google2ubuntu.xml key internal command time it is 19 hour 34 minute .HTTP Error 404: Not Found False play FAIL formats: can't open input file `/tmp/tts.mp3':

Reply to this email directly or view it on GitHubhttps://github.com/benoitfragit/google2ubuntu/issues/52 .