The NEW Build Your Own Arcade Controls
Front End Support => MaLa Frontend => Topic started by: loadman on October 30, 2006, 04:15:05 am
-
[EDIT] This Plug-in is now being updated. See this post (and Beyond)http://forum.arcadecontrols.com/index.php?topic=59589.msg664148#msg664148 (http://forum.arcadecontrols.com/index.php?topic=59589.msg664148#msg664148)
Here is a plug-in I quickly made just for fun. :P
MaLa Speech Plug-In
It reminds me of the Voice on the game 'BEZERK'
My windows XP has the speech feature installed by default.
If your windows has not maybe you could download the package from the folowing link:
http://www.microsoft.com/reader/developers/downloads/tts.asp (http://www.microsoft.com/reader/developers/downloads/tts.asp)
-
:)
Really good idea that things. Should be funny.
:applaud:
-
:)
Really good idea that things. Should be funny.
:applaud:
You could try it with Atomic if you want... Very Easy :P
uses
SysUtils,
Classes,
Comobj;
var
voice: OLEVariant;
begin
voice := CreateOLEObject('SAPI.SpVoice');
voice.Speak('Maa. Laa', 0);
-
You could try it with Atomic if you want... Very Easy
uses
SysUtils,
Classes,
Comobj;
var
voice: OLEVariant;
begin
voice := CreateOLEObject('SAPI.SpVoice');
voice.Speak('Maa. Laa', 0);
There is a big bug in your program... on the last row... ;)
-
Great idea loadman! I like cool things like this :)
How does it work exactly? Does it say the name of the game when you run it? Can you configure different voices?
-
Great idea loadman! I like cool things like this :)
How does it work exactly? Does it say the name of the game when you run it? Can you configure different voices?
It uses 'text to speech' built in XP (not sure about 2000) either way it looks like you can download it from MS for other versions. And yes you can change voices languages via windows control panel it seems.
At the moment it is very simple
* It says MaLa on start
* It says the game name on launch
* It says (NOT TELLING) On MaLa quit/shutdown. You will have to try it
:-)
-
* It says (NOT TELLING) On MaLa quit/shutdown. You will have to try it
Can I take a guess? "All your base are belong to us"?
-
* It says (NOT TELLING) On MaLa quit/shutdown. You will have to try it
Can I take a guess? "All your base are belong to us"?
:laugh2: I'm not that creative. (good idea though..Attitude)
Think American
-
Okay I cheated and had a look in a hex editor ;D
-
Okay I cheated and had a look in a hex editor ;D
You are just scared you will like MaLa (Joke)
-
Will add it tonight
And the cabs still going great guns thanks :notworthy:
-
Will add it tonight
And the cabs still going great guns thanks :notworthy:
cool... and as i said I am open to any fun ideas for the final version, but my opinion is 'less is more'
-
You can download more Text-to-Speech Engines for SAPI5.Microsoft Mary, Mike and Sam 5.0 (68MB) (http://download.microsoft.com/download/speechSDK/SDK/5.1/WXP/EN-US/speechsdk51.exe). I'm pretty sure they should work with this plugin.
One thing I would add to your plugin would be a button to open the Speech Properties window from Control Panel. The command line to launch it is:
rundll32.exe shell32.dll,Control_RunDLL "C:\Program Files\Common Files\Microsoft Shared\Speech\sapi.cpl",Speech
-
You can download more Text-to-Speech Engines for SAPI5.Microsoft Mary, Mike and Sam 5.0 (68MB). I'm pretty sure they should work with this plugin.
Thanks.. I will try those
One thing I would add to your plugin would be a button to open the Speech Properties window from Control Panel. The command line to launch it is:
Good Idea, The Plug-in only gets triggered when appropriate on certain evens so I doubt I would add that to it when MaLa can do it anyway...EG
You can launch things from MaLa with a user set-key. I have mine to bring up control panel if I hit the letter 'P'.
-
The MaLa Speech Plugin is finished
I sent it to Swindus so it should be available for download from the MaLa Website ...soonish.
Speech activated on:
MaLa Start (Custom)
Game Start (Will say launched game name)
MaLa Quit (Custom)
It has a separate ini file that you can edit to customise it for your cab for MaLa Start and MaLa Quit. This file needs to be in the plugin directory. Just edit it with notepad.
eg
[Settings]
MaLa_Start=THE MAME TABLE IS ALIVE
MaLa_Quit=PUT YOUR EMPTY BEER BOTTLE IN THE TRASH
-
Can be downloaded from the plugin page:
http://mala.arcadezentrum.com/plugins.html#Speech
-
Nice job, loadman. You are a plugin-in machine now. :notworthy:
I can't wait to get back home to try out all this new stuff. (I am still away for training. :cry:)
-
Nice job, loadman. You are a plugin-in machine now. :notworthy:
I can't wait to get back home to try out all this new stuff. (I am still away for training. :cry:)
ta , That one was very easy
But hurry up and be trained already, I need your help, although it is forcing me to learn more Delphi
-
It tells me that speech.ini file not found, it reads the games allright but startup and quit doesnīt work.
any ideas?
-
It tells me that speech.ini file not found, it reads the games allright but startup and quit doesnīt work.
any ideas?
That was a 'cute' idea of mine for it to 'say' the error rather than a pop-up window.
It will do that if the ini file is not in the mala 'plug-in' directory with the speech plug-in. A base ini file is provided with the plug-in. The plug-in does not create it
Let me know if that does not fix it
-
it is a "cute" idea ;D
the ini is in the plugin dir.
???
-
it is a "cute" idea ;D
the ini is in the plugin dir.
???
OK.. If you have changed the ini file can you post the text here?
Also What OS are you using etc
I want to try and re-create the problem
-
Solved, I was starting MaLa from a shortcut and thats why it didnīt work.
It works perfectly when I start direcly from the exe file.
thanks
BULL
-
Solved, I was starting MaLa from a shortcut and thats why it didnīt work.
It works perfectly when I start direcly from the exe file.
thanks
BULL
Thanks for letting me know.
Try putting the path to mala in the 'start in' section of your short-cut properties (the same as in target bit but without '\mala.exe' at the end
-
yep, that fixed it
thanks
BULL
-
yep, that fixed it
thanks
BULL
:cheers:
-
haha fun little plugin. Dr. Sbaitso meets really difficult to pronounce ROM titles ;)
-
Try putting the path to mala in the 'start in' section of your short-cut properties (the same as in target bit but without '\mala.exe' at the end
yep, that fixed it
thanks
BULL
Bull,
Would you mind trying the following version 'without' having anything in the 'start-in' section of your shortcut please? I think I fixed it
HERE (http://mala.arcadezentrum.com/plugins.html#Speech)
Replace your existing plug-in file with this one but keep your existing 'speech.ini' file .. as you know both files need to be in the plugins directory.
Thanks for testing
-
it works but it plays the speech twice.
BULL
-
it works but it plays the speech twice.
BULL
Thanks Bull
I just downloaded that version to make sure I did not make a mistake.
It does not so that for me. The only thing I changed in the Plugin was how it searches for the Ini file
What and how many *.mplugin files do you have in the Plugins directory?
Is it possible you have two (one renamed?) and effectively it is running two speech-plugins?
-
sorry, didnt think. yes i renamed the first file, so mala played both files.
now that i removed the old plugin it works as it should.
thanks
BULL
-
sorry, didnt think. yes i renamed the first file, so mala played both files.
now that i removed the old plugin it works as it should.
thanks
BULL
Thanks for testing Bull. :cheers:
I will send the Plug-in to Swindus to replace the one on the MaLa Website
[EDIT] This is now on the MaLa website HERE (http://mala.arcadezentrum.com/plugins.html#Speech)
-
very cool plug loadman. ill have to try it when i get mala up and running..
Neil
-
Oooh dang! I just found this. Thanks guys!
-
sounds like fun!
I use the windows text to speech in Unreal Tournament 2004 (not a cab game) to read the chat text from other players.
This sounds like a nice feature to have.
I need to give Mala a try (yeah more cab work, this thing will never ever be finished).
-
This sounds like a nice feature to have.
This very simple Plug-in can give your Cab a early '80's feel
-
This is a very sweet plugin, and like it.
It do have one problem:
Try to run Q*Bert, wich say it very funny (Q Astrerix Bert). All other chars than letters should been removing before speeching that.
-
This is a very sweet plugin, and like it.
It do have one problem:
Try to run Q*Bert, wich say it very funny (Q Astrerix Bert). All other chars than letters should been removing before speeching that.
He he . I will 'Astrerix' fix that 'Astrerix' up for the next 'Astrerix' version ;) which is a couple of weeks away ;)
-
sorry for the spelling, but I guess you known I was talk about. It just diddent like *.
-
sorry for the spelling, but I guess you known I was talk about. It just diddent like *.
COOL :D
-
Thanks for the PM.
I was know it was a joke about the * (since I say that it was funny to hear that).
He He.
Should been very simple to fix that bug.
-
Ok this Plug-in needs a much needed update: ;D
* Speech to ignore special characters like * in Q*bert ::)
* Enable 'Light & Speak' for Led-Wiz mod/ MaLa hardware users (like the led-wiz plug-in does) :D Eg Say Buttons use and light it at the same time :applaud:
* Option to pause/resume music
* Shortcut button to speech on windows control panel
* Ability to test set-up before running MaLa
-
any benefit of using this if I use the ledwiz plugin?
-
any benefit of using this if I use the ledwiz plugin?
Nah.. Its for the rest of us :-)
(eg Cabs with No Led Controller or Mala Hardware/Led-Wiz Mod)
FYI
The Led-wiz plug-in will eventually have the option to also have speech on Start-up and Shutdown I think
-
One thing I would add to your plugin would be a button to open the Speech Properties window from Control Panel. The command line to launch it is:
rundll32.exe shell32.dll,Control_RunDLL "C:\Program Files\Common Files\Microsoft Shared\Speech\sapi.cpl",Speech
I am finally updating this plug-in but I am having trouble implimenting this idea without the use of a batch file.
I need a way of launching sapi.cpl from a delphi command.
I can launch other .cpls from delphi using the following but it does not seem to work with sapi
procedure Control_RunDLL(
hwnd: THandle;
hInst: THandle;
CmdLine: PChar;
CmdShow: integer
); stdcall; external 'Shell32.dll';
// Here are some examples:
//call the "Game Controllers" Applet
Control_RunDLL(Application.Handle, 0, PChar('joy.cpl'), SW_SHOW)
//call the "Keyboard Properties" Applet (contained inside the Main.cpl file)
Control_RunDLL(Application.Handle, 0, PChar('Main.cpl,Keyboard'), SW_SHOW)
//call the "Mouse Properties" Applet (contained inside the Main.cpl file)
Control_RunDLL(Application.Handle, 0, PChar('Main.cpl,Mouse'), SW_SHOW)
//call the Screen Saver tab of the "Display Properties" Applet
Control_RunDLL(Application.Handle, 0, PChar('Desk.cpl,,1'), SW_SHOW)
So I thought I would just use a command line but that does not work for sapi either
ShellExecute(Handle, 'open', 'C:\Program Files\Common Files\Microsoft Shared\Speech\sapi.cpl',nil,nil,SW_SHOWNORMAL) ;
So I have it working by Shell executing a batch file...But's it's ugly have the dos box pop up
Delphi Command:
ShellExecute(Handle, 'open', 'C:\sapi.bat) ;
Batch File:
cd C:\Program Files\Common Files\Microsoft Shared\Speech\
sapi.cpl
Anyone fould a better way to lauche sapi.cpl from Delphi? :banghead:
-
You can load other CPL files by using Windows' control.exe. For example:
Start>Run>control main.cpl
So how about:
ShellExecute(Handle, 'open', 'control C:\Program Files\Common Files\Microsoft Shared\Speech\sapi.cpl',nil,nil,SW_SHOWNORMAL) ;
Edit:
Nope, control.exe doesn't like that path apparently as the string has spaces being parsed as parameters.
Start>Run>control "C:\Program Files\Common Files\Microsoft Shared\Speech\sapi.cpl"
Works
And
Start>Run>control C:\Progra~1\Common~1\Micros~1\Speech\sapi.cpl
Works
So what about:
ShellExecute(Handle, 'open', 'control C:\Progra~1\Common~1\Micros~1\Speech\sapi.cpl',nil,nil,SW_SHOWNORMAL) ;
-
So what about:
ShellExecute(Handle, 'open', 'control C:\Progra~1\Common~1\Micros~1\Speech\sapi.cpl',nil,nil,SW_SHOWNORMAL) ;
Thanks for trying. That should work but it doesn't
Nope ... Nuthin :'(
-
Seems like I'm batting -1000 lately. Here's my last attempt. According to this link:
http://delphi.about.com/od/windowsshellapi/a/executeprogram.htm
this works:
ShellExecute(Handle,'open', 'c:\windows\notepad.exe','c:\SomeText.txt', nil, SW_SHOWNORMAL) ;
therefore this should work:
ShellExecute(Handle,'open', 'c:\windows\system32\control.exe','c:\progra~1\common~1\micros~1\speech\sapi.cpl', nil, SW_SHOWNORMAL) ;
or this:
ShellExecute(Handle,'open', 'c:\windows\system32\control.exe','c:\Program Files\Common Files\Microsoft Shared\speech\sapi.cpl', nil, SW_SHOWNORMAL) ;
-
This one works!!! :cheers:
therefore this should work:
ShellExecute(Handle,'open', 'c:\windows\system32\control.exe','c:\progra~1\common~1\micros~1\speech\sapi.cpl', nil, SW_SHOWNORMAL) ;
The other version didn't, but who cares. ;)
It's weird how you have to treat this .cpl differently :dizzy:
Thanks SGT. I owe you one ;D
(http://www.ruggedelegantliving.com/a/images/Sean.Connery.007.jpg)
Here is screenshot of config maker (in progress)
(http://www.members.optushome.com.au/backwash/spss2.JPG)
-
The other version didn't, but who cares.
Looks like Delphi would give you a way to add embedded quotes so that the string submitted to control.exe is enclosed in quotes.
Maybe this was what was needed (not that it matters now):
ShellExecute(Handle,'open', 'c:\windows\system32\control.exe','"c:\Program Files\Common Files\Microsoft Shared\speech\sapi.cpl"', nil, SW_SHOWNORMAL) ;
It's weird how you have to treat this .cpl differently
I guess its just because this cpl is not in a folder that is part of the current PATH?
Thanks SGT. I owe you one
No you don't. I use the speech plug-in.
:notworthy:
Here is screenshot of config maker (in progress)
Looking good! Great job!
:cheers:
-
I would say it was the double quotes too. That's why the DOS 6.3 way worked I guess. Glad you got it sorted :)
-
So when can we test this out :applaud:
-
I'll have to try that!!
-
So when can we test this out :applaud:
If the wife gives me some more code time ::)
In a couple of weeks
-
If the wife gives me some more code time
Do we have the same wife ??? ???
:laugh2:
-
If the wife gives me some more code time
Do we have the same wife ??? ???
:laugh2:
That would explain why we never have any 'special cuddles' anymore. You must be wearing her out :laugh2:
-
If the wife gives me some more code time
Do we have the same wife ??? ???
:laugh2:
That would explain why we never have any 'special cuddles' anymore. You must be wearing her out :laugh2:
Comon guys don't get creepy on me! :o
-
So when can we test this out :applaud:
If the wife gives me some more code time ::)
In a couple of weeks
Beta version will be posted this weekend. :) Soon (but looking good :) )
-
You found some free time? Your wife must be out of town. Where's Youki? ;D
-
You found some free time? Your wife must be out of town. Where's Youki? ;D
She's having a 'Girls night out' so while the Kids sleep I will work on PC and have a beer :cheers:
-
You found some free time? Your wife must be out of town. Where's Youki? ;D
That's the problem. Honnestly, i prefer when she is with loadman... i have more time to work on Atomic! ;D
But the good thing, is that she said me that she find Atomic more sexy! ;)... She loves my "bling bling"! :laugh2:
-
You found some free time? Your wife must be out of town. Where's Youki? ;D
That's the problem. Honnestly, i prefer when she is with loadman... i have more time to work on Atomic! ;D
But the good thing, is that she said me that she find Atomic more sexy! ;)... She loves my "bling bling"! :laugh2:
Yeah... I guess you are saying Atomic is for Girls :laugh2:
-
Yeah... I guess you are saying Atomic is for Girls :laugh2:
Oooh.......burn. :laugh2:
-
:laugh2: good one!
In fact, Atomic helps you to catch girls! 8)
Be sexy, Be Atomic! ;)
-
:laugh2: good one!
In fact, Atomic helps you to catch girls! 8)
Be sexy, Be Atomic! ;)
Beta version release on this thread:
http://forum.arcadecontrols.com/index.php?topic=71503.0 (http://forum.arcadecontrols.com/index.php?topic=71503.0)