Text to speech would open lots of scenarios. Different voices can be selected. For more advanced, there are animations that can speak to text, with matching lips. Use of a counter and random function would always make it a mystery as what would be said next. A database could be used, or a simple If/Then.
If/Then can be used for up to 100 commands/responses, after that it gets unwieldy. This is an idea that can be quite simple that spruces up the software with about 30 lines of code, or quite complex.
The code for Visual Basic for text to speech would be as shown below.
Dim SAPI
SAPI = CreateObject("SAPI.spvoice")
SAPI.Speak(txtOrder.Text)
End
See this link, this is what I am talking about, but have a bondage theme.
http://www.youtube.com/watch?v=WnzlbyTZsQY
Code for Text to Speech
Moderators: Riddle, Shannon SteelSlave
- Dark_Lizerd
- *****
- Posts: 2418
- Joined: 22 Oct 2006, 11:30
- Location: New Mexico
Re: Code for Text to Speech
Yea, if/then works for some, but...
Select/case works very well for long chains...
IE: for those that don't know:
Select case WordToSay
case 1: say "1"
case 2: say "2"
...
case else: Say "What??"
end select
But unlike if/then, select will stop looking (read case lines) when there is a match...
... now to check out the text to speech...
Select/case works very well for long chains...
IE: for those that don't know:
Select case WordToSay
case 1: say "1"
case 2: say "2"
...
case else: Say "What??"
end select
But unlike if/then, select will stop looking (read case lines) when there is a match...
... now to check out the text to speech...
All advice is checked, re-checked and verified to be questionable...
Don't ask, we both wont understand the answer...
http://www.mediafire.com/download/09dtr ... e_V2_2.exe Not just for nubies any more...
Don't ask, we both wont understand the answer...
http://www.mediafire.com/download/09dtr ... e_V2_2.exe Not just for nubies any more...