It is currently April 16th, 2024, 10:29 am

Speaking Google News...

RSS, ATOM and other feeds, GMail, Stocks, any information retrieved from the internet
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Speaking Google News...

Post by jsmorley »

Hey, why not...

Left click launches the news item, right click speaks it...
Pre_JSGoogleNews.png
JSGoogleNews.zip
User avatar
karmat
Posts: 329
Joined: July 7th, 2009, 11:10 pm
Location: Canada

Re: Speaking Google News...

Post by karmat »

Ha, good one!
vindurriel
Posts: 11
Joined: December 18th, 2009, 8:24 am

Re: Speaking Google News...

Post by vindurriel »

I wonder how nircmd did this.
Maybe it recalls windows' text-to-speech tool?
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Speaking Google News...

Post by jsmorley »

vindurriel wrote:I wonder how nircmd did this.
Maybe it recalls windows' text-to-speech tool?
It's not nimrod, but Autoit3, and it just uses a new feature of Google Translate. ;-)

Code: Select all

#NoTrayIcon

If $CmdLine[0] = 1 Then
	$Url = "http://translate.google.com/translate_tts?q=" & $CmdLine[1]
	$SavePath = ".\"
	InetGet($Url, $SavePath & "SpeakTime.mp3",1)
	SoundPlay(".\SpeakTime.mp3",1)
	Sleep(1000)
	FileDelete(".\SpeakTime.mp3")
EndIf

[attachment=0]12-29-2009 3-28-24 AM.jpg[/attachment]
User avatar
kenz0
Developer
Posts: 263
Joined: July 31st, 2009, 2:23 pm
Location: Tokyo, JPN

Re: Speaking Google News...

Post by kenz0 »

We also have way to use native windows SAPI as same your concept.
The following code is the script to call SAPI. (argument is executed as a phrase. )

Code: Select all

Set objArg = WScript.Arguments
Set sp=CreateObject("SAPI.SpVoice")
sp.Speak objArg(0)
You can save this script as "say.vbs", then execute it with Rainmeter like the following examples.

Code: Select all

[Rainmeter]
BackgroundMode=2
DynamicWindowSize=1
OnRefreshAction=!Execute ["#CURRENTPATH#say.vbs" "Hello, [USERNAME]"]

[USERNAME]
Measure=Plugin
Plugin=Plugins\SysInfo.dll
SysInfoType=USER_NAME

[TIME]
Measure=Time
Format=%#H:%#M

[MeterUserName]
MeasureName=USERNAME
Meter=STRING
FontSize=15
Text="TALK!"
LeftMouseDownAction=!Execute ["#CURRENTPATH#say.vbs" "It's [TIME]"]
(Though I know Google's english intonation is much better... :)
.
Image
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Speaking Google News...

Post by jsmorley »

kenz0 wrote:We also have way to use native windows SAPI as same your concept.
The following code is the script to call SAPI. (argument is executed as a phrase. )

(Though I know Google's english intonation is much better... :)
Thanks for this info kenz0, it's a good alternative.

The pros and cons are:

cons:
- Using the google approach means you have to be online
- The google feature has a limit of 100 characters
- Microsoft Sam sounds like a stroke victim

pros:
- The voice google uses is very clear and sounds like my fantasy woman. I sometimes click the news feed just cause I get lonely. ;-)
User avatar
kenz0
Developer
Posts: 263
Joined: July 31st, 2009, 2:23 pm
Location: Tokyo, JPN

Re: Speaking Google News...

Post by kenz0 »

jsmorley wrote:
Thanks for this info kenz0, it's a good alternative.

The pros and cons are:

cons:
- Using the google approach means you have to be online
- The google feature has a limit of 100 characters
- Microsoft Sam sounds like a stroke victim

pros:
- The voice google uses is very clear and sounds like my fantasy woman. I sometimes click the news feed just cause I get lonely. ;-)
hahaha, you're right. I'm sure that Sam's voice never becomes a comfort of our loneliness.
.
Image
MattKing
Developer
Posts: 98
Joined: August 6th, 2009, 3:03 pm

Re: Speaking Google News...

Post by MattKing »

jsmorley wrote: pros:
- The voice google uses is very clear and sounds like my fantasy woman. I sometimes click the news feed just cause I get lonely. ;-)
Rainmeter just got creepier.
vindurriel
Posts: 11
Joined: December 18th, 2009, 8:24 am

Re: Speaking Google News...

Post by vindurriel »

jsmorley wrote: The voice google uses is very clear and sounds like my fantasy woman. I sometimes click the news feed just cause I get lonely.
Mac OSX's TTS system has dozens types of voice, some like "fantasy", some are "fnatic"
User avatar
BinaryInk
Posts: 7
Joined: November 24th, 2009, 12:28 am

Re: Speaking Google News...

Post by BinaryInk »

"Microsoft Sam sounds like a stroke victim" - Quote of the week nominee right there, I had to stop for a minute and laugh