Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: Changing TTS Voices - How?? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
smarty
Super User
Super User
Avatar

Joined: May 21 2006
Location: United States
Online Status: Offline
Posts: 728
Posted: May 10 2007 at 20:30 | IP Logged Quote smarty

I'll start this thread here rather than in the bug section (since it is likely "operator error" rather than a bug).

I am using NeoSpeach's "VM Kate" and "VM Paul". I can get either of them to work in PH (when I selected the voice through the Win Xp Control Panel) , but I cannot switch them on the fly through PH functions.

I am using the function:

ph_ttssetvoice("VM Paul")
or
ph_ttssetvoice("VM Kate")

Am I doing this right? Do I have to specify a more complete path? If so, what? The voices are loacted at c:\program files\neospeach\kate16 or paul16

P.S.
ph_ttssetvoice("c:\program files\neospeech\Paul16")
doesn't seem to work either.

Thoughts??

__________________
Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
Back to Top View smarty's Profile Search for other posts by smarty
 
smarty
Super User
Super User
Avatar

Joined: May 21 2006
Location: United States
Online Status: Offline
Posts: 728
Posted: May 10 2007 at 20:40 | IP Logged Quote smarty

Better yet, if I set up my TTS engine to be SAPI5 w/ Alert (under the PH's SETUP, TTS section), how do I specify the different voice for the "alert" engine?

__________________
Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
Back to Top View smarty's Profile Search for other posts by smarty
 
nadler
Super User
Super User


Joined: February 25 2006
Location: United States
Online Status: Offline
Posts: 354
Posted: May 11 2007 at 07:24 | IP Logged Quote nadler

I do this in many of my macros and it works correctly for me.
ph_ttssetvoice("VW Paul")

Are you using it in a formula?

I installed the voices to the default directory and haven't changed it.

I've also noticed that the voices are sometimes changed as the last thing in a macro no matter what line they are placed in, in the macro. So if you play the macro a second time, the voice would change. This has to do with the immediate and post settings, I've found.

BTW I have found these voices to be amazing.
Back to Top View nadler's Profile Search for other posts by nadler
 
smarty
Super User
Super User
Avatar

Joined: May 21 2006
Location: United States
Online Status: Offline
Posts: 728
Posted: May 11 2007 at 12:05 | IP Logged Quote smarty

OK....Found part of mt error. I was using "VM Kate/VM Paul". The "M" should have been a "W".

I still would like to set up the alert TTS engine with a different voice. From the help file:

Quote:

"ph_ttsctrl"

Allows control over both the normal TTS engine and Alert TTS engine.

Syntax
ph_ttsctrl ( cmd, control, data )
Argument Description
cmd Integer. The particular command you wish to issue to an engine. Use 0 to speak the data parameter asynchronously. Use 1 to speak the data parameter synchronously with no timeout. Use 2 to set the voice TTS voice to the value in the data parameter. Use 3 to pause the TTS engine. Use 4 to resume the TTS engine. Use 5 to wait until the TTS engine is done speaking with the timeout specified in the data parameter. Use 6 to get the current status of the TTS engine.
control Integer. The engine you wish to control. Use 0 for the default TTS engine. Any other value for the Alert TTS engine.
data String. Optional data to be passed depending upon the command type. Commands 0 and 2 will speak the text in the data parameter. Command 2 will set the TTS engine to the voice contained in the data parameter. Commands 3, 4, and 6 should have this value set as the empty string (""). Command 5 will convert the data parameter to a number and use that as the timeout value.

Return value
Integer. Returns a 0 on commands 0, 1, 2, 3, 4, and 5. Returns the status of the TTS engine on command 6. With command 6, a return of 0 means the TTS engine is not currently speaking. A value of 1 means that the TTS engine is currently speaking or is paused in speaking.
Usage
The Alert TTS engine allows you override the default TTS engine. If the default TTS engine is in the middle of speaking, you can issue an Alert TTS command and the default engine will be paused, the Alert TTS will be spoken and when done, will resume speaking where it left off in the default TTS engine. The default and alert TTS engines may have different voices. In order to use the Alert TTS engine, you must have your TTS engine in the Setup section of PowerHome set to "SAPI 5/w Alert".


I believe I have SAPI 5.1 set up on my machine. I downloaded and installed SAPI 5.1 speech SDK available from here

What else might I need to do?

EDIT: I have deteremined (from using another machine with PH loaded on it) that you DO NOT need to install the SAPI 5.1 speech SDK to change voices (or to even play the voices...it does allow you to do some speech recognition however).

Edited by smarty - May 11 2007 at 20:01


__________________
Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
Back to Top View smarty's Profile Search for other posts by smarty
 
jpcurcio
Senior Member
Senior Member
Avatar

Joined: April 01 2007
Location: United States
Online Status: Offline
Posts: 119
Posted: May 13 2007 at 00:25 | IP Logged Quote jpcurcio

I'm not able to help here, but this does bring up a question. My SAPI included only Microsoft Sam... and it sucks. Where can I download other voices? Web searching yields very little...

Thanks...
Back to Top View jpcurcio's Profile Search for other posts by jpcurcio
 
nadler
Super User
Super User


Joined: February 25 2006
Location: United States
Online Status: Offline
Posts: 354
Posted: May 13 2007 at 08:36 | IP Logged Quote nadler

I've had good luck with NeoSpeech voices which can be purchased here.
Back to Top View nadler's Profile Search for other posts by nadler
 
smarty
Super User
Super User
Avatar

Joined: May 21 2006
Location: United States
Online Status: Offline
Posts: 728
Posted: May 13 2007 at 09:50 | IP Logged Quote smarty

Ditto...

The Neospeech Kate and Paul voices are very nice.

I plan to have Kate be the normal voice and use Paul for alerts.

__________________
Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
Back to Top View smarty's Profile Search for other posts by smarty
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum