Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Speech Plug-In (V1.5) In Development  (Read 12749 times)

0 Members and 1 Guest are viewing this topic.

loadman

  • Moderator
  • Trade Count: (+3)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4305
  • Last login:August 17, 2020, 03:23:55 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Speech Plug-In (V1.5) In Development
« 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



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
« Last Edit: April 20, 2007, 01:29:07 am by loadman »

youki

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1612
  • Last login:November 19, 2016, 01:07:33 pm
  • Atomic Front End Creator
    • Atomic Front End
Re: Speech Plugin for MaLa
« Reply #1 on: October 30, 2006, 05:49:07 am »
 :)

Really good idea that things.  Should be funny. 

 :applaud:

loadman

  • Moderator
  • Trade Count: (+3)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4305
  • Last login:August 17, 2020, 03:23:55 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: Speech Plugin for MaLa
« Reply #2 on: October 30, 2006, 06:53:48 am »
:)

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);

youki

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1612
  • Last login:November 19, 2016, 01:07:33 pm
  • Atomic Front End Creator
    • Atomic Front End
Re: Speech Plugin for MaLa
« Reply #3 on: October 30, 2006, 08:01:25 am »
Quote
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...   ;)


headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Speech Plugin for MaLa
« Reply #4 on: October 30, 2006, 03:00:28 pm »
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?

loadman

  • Moderator
  • Trade Count: (+3)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4305
  • Last login:August 17, 2020, 03:23:55 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: Speech Plugin for MaLa
« Reply #5 on: October 30, 2006, 05:16:27 pm »
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

:-)

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Speech Plugin for MaLa
« Reply #6 on: October 30, 2006, 05:23:25 pm »
* 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"?

loadman

  • Moderator
  • Trade Count: (+3)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4305
  • Last login:August 17, 2020, 03:23:55 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: Speech Plugin for MaLa
« Reply #7 on: October 30, 2006, 05:25:52 pm »
* 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

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Speech Plugin for MaLa
« Reply #8 on: October 30, 2006, 06:22:00 pm »
Okay I cheated and had a look in a hex editor  ;D

loadman

  • Moderator
  • Trade Count: (+3)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4305
  • Last login:August 17, 2020, 03:23:55 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: Speech Plugin for MaLa
« Reply #9 on: October 30, 2006, 06:48:10 pm »
Okay I cheated and had a look in a hex editor  ;D

You are just scared you will like MaLa  (Joke) 

diverdown

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 277
  • Last login:December 10, 2023, 12:40:05 am
Re: Speech Plugin for MaLa
« Reply #10 on: October 31, 2006, 07:01:00 pm »
Will add it tonight



And the cabs still going great guns thanks  :notworthy:
If it ain't broke give it to me...i'll soon fix that

loadman

  • Moderator
  • Trade Count: (+3)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4305
  • Last login:August 17, 2020, 03:23:55 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: Speech Plugin for MaLa
« Reply #11 on: October 31, 2006, 07:38:38 pm »
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'   

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Speech Plugin for MaLa
« Reply #12 on: October 31, 2006, 08:13:38 pm »
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.

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:

Code: [Select]
rundll32.exe shell32.dll,Control_RunDLL "C:\Program Files\Common Files\Microsoft Shared\Speech\sapi.cpl",Speech

loadman

  • Moderator
  • Trade Count: (+3)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4305
  • Last login:August 17, 2020, 03:23:55 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: Speech Plugin for MaLa
« Reply #13 on: October 31, 2006, 08:42:56 pm »
Quote
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

Quote
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'.   
« Last Edit: October 31, 2006, 09:41:06 pm by loadman »

loadman

  • Moderator
  • Trade Count: (+3)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4305
  • Last login:August 17, 2020, 03:23:55 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: Speech Plugin for MaLa 1(RC8)or above *FINISHED*
« Reply #14 on: November 09, 2006, 04:34:46 am »
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
« Last Edit: November 09, 2006, 04:36:17 am by loadman »

swindus

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 391
  • Last login:July 28, 2021, 05:52:50 am
    • MaLa - M.A.M.E. Launcher
Re: Speech Plugin for MaLa 1(RC8)or above *FINISHED*
« Reply #15 on: November 09, 2006, 04:51:15 am »
Can be downloaded from the plugin page:
http://mala.arcadezentrum.com/plugins.html#Speech

edge

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 370
  • Last login:November 30, 2023, 11:56:46 am
  • AttractMode and GroovyArcade rock!
Re: Speech Plugin for MaLa 1(RC8)or above *FINISHED*
« Reply #16 on: November 09, 2006, 05:36:31 pm »
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:)

loadman

  • Moderator
  • Trade Count: (+3)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4305
  • Last login:August 17, 2020, 03:23:55 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: Speech Plugin for MaLa 1(RC8)or above *FINISHED*
« Reply #17 on: November 09, 2006, 05:39:00 pm »
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

BULL

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 44
  • Last login:March 03, 2011, 02:18:08 am
  • GAUNTLET FOREVER
Re: Speech Plugin for MaLa 1(RC8)or above *FINISHED*
« Reply #18 on: November 10, 2006, 12:48:15 pm »
It tells me that speech.ini file not found, it reads the games allright but startup and quit doesn´t work.

any ideas?

loadman

  • Moderator
  • Trade Count: (+3)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4305
  • Last login:August 17, 2020, 03:23:55 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: Speech Plugin for MaLa 1(RC8)or above *FINISHED*
« Reply #19 on: November 10, 2006, 03:51:19 pm »
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
« Last Edit: November 10, 2006, 03:53:40 pm by loadman »

BULL

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 44
  • Last login:March 03, 2011, 02:18:08 am
  • GAUNTLET FOREVER
Re: Speech Plugin for MaLa 1(RC8)or above *FINISHED*
« Reply #20 on: November 10, 2006, 09:52:19 pm »
it is a "cute" idea  ;D

the ini is in the plugin dir.

 ???

loadman

  • Moderator
  • Trade Count: (+3)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4305
  • Last login:August 17, 2020, 03:23:55 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: Speech Plugin for MaLa 1(RC8)or above *FINISHED*
« Reply #21 on: November 10, 2006, 10:39:54 pm »
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

BULL

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 44
  • Last login:March 03, 2011, 02:18:08 am
  • GAUNTLET FOREVER
Re: Speech Plugin for MaLa 1(RC8)or above *FINISHED*
« Reply #22 on: November 11, 2006, 03:22:40 am »
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

loadman

  • Moderator
  • Trade Count: (+3)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4305
  • Last login:August 17, 2020, 03:23:55 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: Speech Plugin for MaLa 1(RC8)or above *FINISHED*
« Reply #23 on: November 11, 2006, 05:09:38 am »
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

BULL

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 44
  • Last login:March 03, 2011, 02:18:08 am
  • GAUNTLET FOREVER
Re: Speech Plugin for MaLa 1(RC8)or above *FINISHED*
« Reply #24 on: November 11, 2006, 05:43:11 am »
yep, that fixed it


thanks

BULL

loadman

  • Moderator
  • Trade Count: (+3)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4305
  • Last login:August 17, 2020, 03:23:55 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: Speech Plugin for MaLa 1(RC8)or above *FINISHED*
« Reply #25 on: November 11, 2006, 07:59:03 am »

CM

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 243
  • Last login:January 02, 2012, 08:59:17 pm
  • The internet?!? Is that thing still around?
Re: Speech Plugin for MaLa 1(RC8)or above *FINISHED*
« Reply #26 on: November 15, 2006, 09:16:54 pm »
haha fun little plugin.     Dr. Sbaitso meets really difficult to pronounce ROM titles  ;)

loadman

  • Moderator
  • Trade Count: (+3)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4305
  • Last login:August 17, 2020, 03:23:55 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: Speech Plugin for MaLa 1(RC8)or above *FINISHED*
« Reply #27 on: December 11, 2006, 08:02:24 pm »
Quote
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

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
« Last Edit: December 19, 2006, 07:17:51 pm by loadman »

BULL

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 44
  • Last login:March 03, 2011, 02:18:08 am
  • GAUNTLET FOREVER
Re: Speech Plugin for MaLa 1(RC8)or above *FINISHED*
« Reply #28 on: December 12, 2006, 03:19:58 am »
it works but it plays the speech twice.

BULL

loadman

  • Moderator
  • Trade Count: (+3)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4305
  • Last login:August 17, 2020, 03:23:55 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: Speech Plugin for MaLa 1(RC8)or above *FINISHED*
« Reply #29 on: December 12, 2006, 06:57:56 am »
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?

BULL

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 44
  • Last login:March 03, 2011, 02:18:08 am
  • GAUNTLET FOREVER
Re: Speech Plugin for MaLa 1(RC8)or above *FINISHED*
« Reply #30 on: December 12, 2006, 09:20:10 am »
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

loadman

  • Moderator
  • Trade Count: (+3)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4305
  • Last login:August 17, 2020, 03:23:55 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: Speech Plugin for MaLa 1(RC8)or above *FINISHED*
« Reply #31 on: December 12, 2006, 03:27:48 pm »
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
« Last Edit: December 19, 2006, 07:18:47 pm by loadman »

Neilyboy

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 501
  • Last login:January 18, 2024, 04:15:46 pm
  • what day is it...
Re: Speech Plugin for MaLa 1(RC8)or above *FINISHED*
« Reply #32 on: December 14, 2006, 09:45:42 am »
very cool plug loadman. ill have to try it when i get mala up and running..

Neil

Timoe

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1662
  • Last login:July 14, 2009, 09:50:12 am
  • Team-Oh-tAy-Oh
    • Rattlin' Trash
Re: Speech Plugin for MaLa 1(RC8)or above *FINISHED*
« Reply #33 on: January 03, 2007, 12:02:01 am »
Oooh dang!  I just found this.  Thanks guys!

papaschtroumpf

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 972
  • Last login:July 23, 2013, 11:41:10 pm
  • Have a Cow!
Re: Speech Plugin for MaLa 1(RC8)or above *FINISHED*
« Reply #34 on: January 03, 2007, 12:01:56 pm »
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).

loadman

  • Moderator
  • Trade Count: (+3)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4305
  • Last login:August 17, 2020, 03:23:55 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: Speech Plugin for MaLa 1(RC8)or above *FINISHED*
« Reply #35 on: January 03, 2007, 04:00:13 pm »
Quote
This sounds like a nice feature to have.

This very simple Plug-in can give your Cab a early '80's  feel

Space Fractal

  • Wiki Master
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 1888
  • Last login:September 26, 2023, 11:32:13 am
  • Space Fractal
    • Space Fractal
Re: Speech Plugin for MaLa 1(RC8)or above *FINISHED*
« Reply #36 on: March 28, 2007, 06:18:06 pm »
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.
Decade Old Work: MultiFE, ArcadeMusicBox
Today Works: Various Spectrum Next games from Rusty Pixels and html5 games.

loadman

  • Moderator
  • Trade Count: (+3)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4305
  • Last login:August 17, 2020, 03:23:55 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: Speech Plugin for MaLa 1(RC8)or above *FINISHED*
« Reply #37 on: March 28, 2007, 08:21:46 pm »
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  ;)

Space Fractal

  • Wiki Master
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 1888
  • Last login:September 26, 2023, 11:32:13 am
  • Space Fractal
    • Space Fractal
Re: Speech Plugin for MaLa 1(RC8)or above *FINISHED*
« Reply #38 on: March 29, 2007, 10:32:38 am »
sorry for the spelling, but I guess you known I was talk about. It just diddent like *.
Decade Old Work: MultiFE, ArcadeMusicBox
Today Works: Various Spectrum Next games from Rusty Pixels and html5 games.

loadman

  • Moderator
  • Trade Count: (+3)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4305
  • Last login:August 17, 2020, 03:23:55 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: Speech Plugin for MaLa 1(RC8)or above *FINISHED*
« Reply #39 on: March 29, 2007, 11:56:20 am »
sorry for the spelling, but I guess you known I was talk about. It just diddent like *.


COOL  :D