Jump to content



Photo

TinyClipToSpeech v 1.0.0.9 Update of 2012-07-01

clipboard text to speech sapi voice

  • Please log in to reply
13 replies to this topic

#1 wakillon

wakillon

    Tiny Tools Coder

  • Active Members
  • PipPipPipPipPipPip
  • 2,481 posts

Posted 30 January 2012 - 08:59 AM

TinyClipToSpeech v 1.0.0.9

Read Clipboard Text Content using Sapi Voice

Posted Image


Access to all commands by Tray menu.

If you doesn't have Sapi5 installed, script ask for download it.
I know there is already some Text to speech scripts,
but i wanted an easy access ( clipboard content and tray menu )
and the possibility to change voice and settings while reading.
Text can be displayed on desktop gradually as what is read.
You can also save text to mp3 without need of read it.
My preference goes to Scansoft voices, easy to found and install and with a good pronunciation qualty.

As usual, some externals files are downloaded at first execution.

Previous download : 112

Update of 2012-07-01

Attached File  TinyClipToSpeech v 1.0.0.9.au3   27.8K   253 downloads

Scripts and executables with full embeded files are available on GoogleCode ( link is in my signature. )

Tested on XP, Vista and Seven 32 bit.
Hope you like it ! :)

Edited by wakillon, 01 July 2012 - 04:15 PM.

  AutoIt Version : 3.3.8.1/3.3.9.4 SciTE 3.3.0 Language:040C OS:WIN_7/ CPU:X64 OS:X64 

  Last updated Scripts and executables with full embedded files are available on : GoogleCode 








#2 Mikeman27294

Mikeman27294

    Insert Member Title Here

  • Active Members
  • PipPipPipPipPipPip
  • 469 posts

Posted 30 January 2012 - 09:09 AM

Nice little script, well done.
Spoiler


#3 wakillon

wakillon

    Tiny Tools Coder

  • Active Members
  • PipPipPipPipPipPip
  • 2,481 posts

Posted 01 February 2012 - 08:52 AM

Nice little script, well done.


Thanks, glad you like it :)

  AutoIt Version : 3.3.8.1/3.3.9.4 SciTE 3.3.0 Language:040C OS:WIN_7/ CPU:X64 OS:X64 

  Last updated Scripts and executables with full embedded files are available on : GoogleCode 


#4 joseLB

joseLB

    Polymath

  • Active Members
  • PipPipPipPip
  • 210 posts

Posted 10 June 2012 - 11:13 PM

Hi wakillon,
Do you know if there is portuguese from Brazil on this sapi5 or Scansoft voices of wherever?
Thanks
Jose

#5 wakillon

wakillon

    Tiny Tools Coder

  • Active Members
  • PipPipPipPipPipPip
  • 2,481 posts

Posted 11 June 2012 - 06:41 AM

Hi wakillon,
Do you know if there is portuguese from Brazil on this sapi5 or Scansoft voices of wherever?
Thanks
Jose


Hi joseLB

Yes, there is one named "NextUp-ScanSoft Raquel Brazilian Portuguese Voice.msi"
You can find it easily ;)

  AutoIt Version : 3.3.8.1/3.3.9.4 SciTE 3.3.0 Language:040C OS:WIN_7/ CPU:X64 OS:X64 

  Last updated Scripts and executables with full embedded files are available on : GoogleCode 


#6 wakillon

wakillon

    Tiny Tools Coder

  • Active Members
  • PipPipPipPipPipPip
  • 2,481 posts

Posted 01 July 2012 - 04:17 PM

Updated

Added my own Sapi5 Voice installer for Xp users who don't have it installed.

  AutoIt Version : 3.3.8.1/3.3.9.4 SciTE 3.3.0 Language:040C OS:WIN_7/ CPU:X64 OS:X64 

  Last updated Scripts and executables with full embedded files are available on : GoogleCode 


#7 joseLB

joseLB

    Polymath

  • Active Members
  • PipPipPipPip
  • 210 posts

Posted 06 November 2012 - 11:49 PM

Hi wakilon,
#Include <WinAPIEx.au3> and #Include <APIConstants.au3> where not found on my includes file. It´s a new version of au3 that I need?
Thanks again,
Jose

#8 wakillon

wakillon

    Tiny Tools Coder

  • Active Members
  • PipPipPipPipPipPip
  • 2,481 posts

Posted 07 November 2012 - 08:16 AM

Hi wakilon,
#Include <WinAPIEx.au3> and #Include <APIConstants.au3> where not found on my includes file. It´s a new version of au3 that I need?
Thanks again,
Jose


Hi joselB

Download the WinAPIEx UDF of Yashield and copy all the files in your include dir ;)

  AutoIt Version : 3.3.8.1/3.3.9.4 SciTE 3.3.0 Language:040C OS:WIN_7/ CPU:X64 OS:X64 

  Last updated Scripts and executables with full embedded files are available on : GoogleCode 


#9 joseLB

joseLB

    Polymath

  • Active Members
  • PipPipPipPip
  • 210 posts

Posted 05 February 2013 - 11:18 PM

Hi Wakillon
My PC is speaking in portuguese :thumbsup: Great! Thanks for sharing!
It´s win7, 64 bits...

I have some extra questions/points:
1- at start, your program tries to write in registry. Do you know why? I didn´t allow but it worked OK.
2- option "open ...panel" opens no window
3- you told "...and the possibility to change voice and settings while reading ...". I too. There are any "commands" whe can insert at text to control speech?

I found Loquendo at least in protuguese has a much better speech. Probably in other languages too, it´s more natural.
If you want, give a try live at http://www.oddcast.com/home/demos/tts/tts_example.php?sitepal

Do you believe that your program would work with Loquendo?
Thanks
Jose

Edited by joseLB, 05 February 2013 - 11:33 PM.


#10 wakillon

wakillon

    Tiny Tools Coder

  • Active Members
  • PipPipPipPipPipPip
  • 2,481 posts

Posted 06 February 2013 - 08:33 PM

HI joseLB

RegWrite with EnableBalloonTips key is for enable traytip display.
It seems the reg key i use for get sapi.cpl path doesn't exists on x64, so you can replace _OpenSpeechProperties function by this one :

Func _OpenSpeechProperties ( )        TrayItemSetState ( $_SpeechItem, $TRAY_UNCHECKED )     Local $_SapiCplPath = RegRead ( 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Control Panel\Cpls', 'Speech' )     If FileExists ( $_SapiCplPath ) Then         ShellExecute ( $_SapiCplPath )         Return     EndIf     If StringInStr ( @OSArch, 64 ) Then ShellExecute ( @WindowsDir & '\SysWOW64\Speech\SpeechUX\sapi.cpl' ) EndFunc ;==> _OpenSpeechProperties ( )


i have tried text to speech of oddcast.com and the Loquendo Démo TTS Interactive and you are right, voices ( french for me ) are better.
But oddcast is based on Flash and Loquendo returns wav files, so no chances to get it working with my script !

Thanks. ;)

Edited by wakillon, 06 February 2013 - 08:34 PM.

  AutoIt Version : 3.3.8.1/3.3.9.4 SciTE 3.3.0 Language:040C OS:WIN_7/ CPU:X64 OS:X64 

  Last updated Scripts and executables with full embedded files are available on : GoogleCode 


#11 joseLB

joseLB

    Polymath

  • Active Members
  • PipPipPipPip
  • 210 posts

Posted 11 February 2013 - 04:05 AM

Thanks wakillon!

#12 joseLB

joseLB

    Polymath

  • Active Members
  • PipPipPipPip
  • 210 posts

Posted 27 February 2013 - 09:26 PM

Hi wakillon

I´m starting to use your code... it´s a great contribution, thanks
But as always, we need something else...

Do you know how I can know when it finish the talk? I mean, I don´t want to sotp waiting it to finish, but from time to time "ask" if it finished the talk?

second, what about to do an UDF with these functions?
Thanks
Jose

#13 wakillon

wakillon

    Tiny Tools Coder

  • Active Members
  • PipPipPipPipPipPip
  • 2,481 posts

Posted 28 February 2013 - 07:39 PM

Do you know how I can know when it finish the talk? I mean, I don´t want to stop waiting it to finish, but from time to time "ask" if it finished the talk?

second, what about to do an UDF with these functions?

Hi joseLB :)

You can do like this for ask if it finished to talk.

If $ospeech.Status.RunningState = $SRSEIsSpeaking Then     ; is talking Else     ; is not talking EndIf


And If i remember well there is already several Udf for sapi voice ! ;)
  • joseLB likes this

  AutoIt Version : 3.3.8.1/3.3.9.4 SciTE 3.3.0 Language:040C OS:WIN_7/ CPU:X64 OS:X64 

  Last updated Scripts and executables with full embedded files are available on : GoogleCode 


#14 joseLB

joseLB

    Polymath

  • Active Members
  • PipPipPipPip
  • 210 posts

Posted 17 March 2013 - 04:06 AM

thanks wakillon !
Jose

Edited by joseLB, 17 March 2013 - 04:07 AM.






Also tagged with one or more of these keywords: clipboard, text to speech, sapi, voice

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users