Philip Bennefall Posted November 18, 2005 Share Posted November 18, 2005 Hello everyone. I have come across a problem that I would really need some help with. Basically, I am programming an audio based game, and I want to add in a function to speak the current score that the user has, with pre recorded wave files for each number. What I need is a function that will convert a number to it's equivalent in the English language, so for example, if I pass 341 to the function, it would return Three Hundred Forty One. I have been trying and trying to make a such script, but I find it really complex, because it needs to go all the way up to 9 digits, that is to say, it needs to be able to return any number between 0 and 999999999. If anyone would be willing to write a such script for me, I'd be really glad. I'd even be willing to pay for it if that is so. Please send me an email instead of replying here in the forum. My address is: philip_bennefall@pb-games.com Regards Philip Bennefall Link to comment Share on other sites More sharing options...
Xenobiologist Posted November 18, 2005 Share Posted November 18, 2005 HI, what about something like this... Dim $voice = ObjCreate("Sapi.SpVoice") Speak($cmdLine[1], 1, 100) Func Speak($Text, $Rate, $Vol) $voice.Rate = $Rate $voice.Volume = $Vol $voice.Speak ($Text) EndFunc ;==>Speak So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
CyberSlug Posted November 18, 2005 Share Posted November 18, 2005 I remember posting something before:http://www.autoitscript.com/forum/index.ph...68&hl=recursionHope that helps Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now