View unanswered posts | View active topics It is currently Sun May 19, 2013 9:51 pm



Reply to topic  [ 3 posts ] 
 Constructing Text to Speech? 
Author Message

Joined: Nov 26, 2009
Posts: 923
Location: Kalispell, MT
Post Constructing Text to Speech?
I was a long time user of Mark Gilmore's ECS, Event Control System, (PC based) before coming to Indigo and was hoping
to set up something similar to what I was able to do in terms of "constructing" text to be spoken.

For example if I have a variable that contains "68", I could construct a text sentence to be spoken, "The current inside temperature
is 68 degrees".

Thanks,

Carl


Tue Feb 23, 2010 7:07 pm
Profile
Site Admin
User avatar

Joined: Mar 19, 2008
Posts: 6642
Location: Austin, Texas
Post Re: Constructing Text to Speech?
Create an embedded AppleScript action with the following script:

Code: Select all
set theText to "The current inside temperature is " & (value of variable "VARNAMEHERE") & " degrees."
say theText


be sure to change VARNAMEHERE to the actual name of your variable.

You could of course combine the lines into a single line as well - I just wanted to illustrate first how to concatenate strings together in AppleScript then illustrate how the say command works.

_________________
Jay (Indigo Support)
Image


Tue Feb 23, 2010 7:34 pm
Profile WWW

Joined: Nov 26, 2009
Posts: 923
Location: Kalispell, MT
Post Re: Constructing Text to Speech?
This is what I love about Indigo...and it's support.

Thanks Jay.

Carl


Tue Feb 23, 2010 8:53 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.   Template designed by STSoftware.