|
|
|
Page 1 of 1
|
[ 4 posts ] |
|
How do I 'speak' some text in my plugin?
| Author |
Message |
|
Swancoat
Joined: Nov 20, 2009 Posts: 182 Location: Houston
|
 How do I 'speak' some text in my plugin?
Does anyone know how to make a plugin 'speak' some text? Much like the option available in the Action dialog boxes... except I want to build it all into one action that does some stuff, speaks the text, and then does some other stuff -- so I need to know how to 'speak' in Python (and also wait until the speaking is done).
Thanks!
_________________ http://nerdhome.jimdo.com
|
| Fri May 04, 2012 9:51 pm |
|
 |
|
matt (support)
Site Admin
Joined: Jan 27, 2003 Posts: 11698 Location: Texas
|
 Re: How do I 'speak' some text in my plugin?
indigo.server.speak("Hello World", waitUntilDone=True)
_________________
|
| Sat May 05, 2012 8:27 am |
|
 |
|
Swancoat
Joined: Nov 20, 2009 Posts: 182 Location: Houston
|
 Re: How do I 'speak' some text in my plugin?
Perfect. On a related note, I'm looking for some documentation somewhere on using variables in strings or text fields. I think I needed to do something to my code to be able to handle this if I'm not mistaken.
I've been searching around for a while now and can't remember where it is. Can you point me to that?
(Basically, I have a text field, and I want users to be able to put a variable in it too...)
_________________ http://nerdhome.jimdo.com
|
| Sat May 05, 2012 12:00 pm |
|
 |
|
jay (support)
Site Admin
Joined: Mar 19, 2008 Posts: 6665 Location: Austin, Texas
|
 Re: How do I 'speak' some text in my plugin?
Check out the substituteVariable() method described in the plugin.py section of the Developer's Guide (in the last table in that section).
_________________ Jay (Indigo Support)
|
| Sat May 05, 2012 4:48 pm |
|
|
|
Page 1 of 1
|
[ 4 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 2 guests |
|
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
|
|