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 12766 times)

0 Members and 1 Guest are viewing this topic.

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 #40 on: March 30, 2007, 05:30:19 am »
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.
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 #41 on: April 20, 2007, 01:19:13 am »
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

« Last Edit: August 12, 2007, 02:52:08 am by loadman »

squirrellydw

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1584
  • Last login:April 12, 2021, 11:30:22 am
Re: Speech Plug-In (V1.5) In Development
« Reply #42 on: April 20, 2007, 08:41:27 pm »
any benefit of using this if I use the ledwiz plugin?
I b**ch. People listen!!

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 Plug-In (V1.5) In Development
« Reply #43 on: April 20, 2007, 09:13:06 pm »
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
« Last Edit: April 20, 2007, 09:53:35 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
« Reply #44 on: August 11, 2007, 10:12:07 pm »
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

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

Code: [Select]
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

Code: [Select]
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:
Code: [Select]
ShellExecute(Handle, 'open', 'C:\sapi.bat) ;Batch File:
Code: [Select]
cd C:\Program Files\Common Files\Microsoft Shared\Speech\
sapi.cpl

Anyone fould a better way to lauche sapi.cpl from Delphi?  :banghead:

 


SGT

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1145
  • Last login:April 17, 2023, 08:29:42 pm
Re: Speech Plug-In (V1.5) In Development
« Reply #45 on: August 11, 2007, 10:35:35 pm »
You can load other CPL files by using Windows' control.exe.  For example:
Start>Run>control main.cpl


So how about:

Code: [Select]
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:
Code: [Select]
ShellExecute(Handle, 'open', 'control C:\Progra~1\Common~1\Micros~1\Speech\sapi.cpl',nil,nil,SW_SHOWNORMAL) ;
« Last Edit: August 11, 2007, 11:03:37 pm by SGT »

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 Plug-In (V1.5) In Development
« Reply #46 on: August 11, 2007, 11:40:39 pm »
So what about:
Code: [Select]
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   :'(

SGT

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1145
  • Last login:April 17, 2023, 08:29:42 pm
Re: Speech Plug-In (V1.5) In Development
« Reply #47 on: August 12, 2007, 12:16:38 am »
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:
Code: [Select]
ShellExecute(Handle,'open', 'c:\windows\notepad.exe','c:\SomeText.txt', nil, SW_SHOWNORMAL) ;
therefore this should work:
Code: [Select]
ShellExecute(Handle,'open', 'c:\windows\system32\control.exe','c:\progra~1\common~1\micros~1\speech\sapi.cpl', nil, SW_SHOWNORMAL) ;
or this:
Code: [Select]
ShellExecute(Handle,'open', 'c:\windows\system32\control.exe','c:\Program Files\Common Files\Microsoft Shared\speech\sapi.cpl', nil, SW_SHOWNORMAL) ;
« Last Edit: August 12, 2007, 12:18:52 am by SGT »

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 Plug-In (V1.5) In Development
« Reply #48 on: August 12, 2007, 01:30:45 am »
This one works!!!   :cheers:

therefore this should work:
Code: [Select]
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



Here is screenshot of config maker (in progress)
« Last Edit: August 12, 2007, 03:43:12 am by loadman »

SGT

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1145
  • Last login:April 17, 2023, 08:29:42 pm
Re: Speech Plug-In (V1.5) In Development
« Reply #49 on: August 12, 2007, 03:30:01 am »
Quote
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):
Code: [Select]
ShellExecute(Handle,'open', 'c:\windows\system32\control.exe','"c:\Program Files\Common Files\Microsoft Shared\speech\sapi.cpl"', nil, SW_SHOWNORMAL) ;

Quote
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?


Quote
Thanks SGT.  I owe you one   
No you don't.  I use the speech plug-in.
 :notworthy:


Quote
Here is screenshot of config maker (in progress)

Looking good!  Great job!
 :cheers:


« Last Edit: August 12, 2007, 03:45:32 am by SGT »

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Speech Plug-In (V1.5) In Development
« Reply #50 on: August 12, 2007, 03:54:20 am »
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 :)

lettuce

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1900
  • Last login:December 31, 2021, 01:46:10 pm
  • Make It So!
Re: Speech Plug-In (V1.5) In Development
« Reply #51 on: August 12, 2007, 05:27:30 am »
So when can we test this out  :applaud:

ARTIFACT

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 754
  • Last login:May 30, 2018, 12:32:23 am
    • ARTIFACT - my scratch designed & built arcade cabinet
Re: Speech Plug-In (V1.5) In Development
« Reply #52 on: August 13, 2007, 03:39:28 pm »
I'll have to try 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 Plug-In (V1.5) In Development
« Reply #53 on: August 13, 2007, 06:39:19 pm »
So when can we test this out  :applaud:

If the wife gives me some more code time  ::)

In a couple of weeks

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 Plug-In (V1.5) In Development
« Reply #54 on: August 14, 2007, 03:09:36 am »
Quote
If the wife gives me some more code time 

 
Do we have the same wife  ??? ???

 :laugh2:

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 Plug-In (V1.5) In Development
« Reply #55 on: August 14, 2007, 04:57:00 am »
Quote
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:

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Speech Plug-In (V1.5) In Development
« Reply #56 on: August 14, 2007, 07:26:22 am »
Quote
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

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 Plug-In (V1.5) In Development
« Reply #57 on: August 30, 2007, 05:51:14 pm »
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  :) )
« Last Edit: September 02, 2007, 07:08:04 am by loadman »

SGT

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1145
  • Last login:April 17, 2023, 08:29:42 pm
Re: Speech Plug-In (V1.5) In Development
« Reply #58 on: August 30, 2007, 05:56:12 pm »
You found some free time? Your wife must be out of town.   Where's Youki? ;D
« Last Edit: August 30, 2007, 05:58:56 pm by SGT »

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 Plug-In (V1.5) In Development
« Reply #59 on: August 30, 2007, 11:07:43 pm »
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:

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 Plug-In (V1.5) In Development
« Reply #60 on: August 31, 2007, 07:45:50 am »
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:

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 Plug-In (V1.5) In Development
« Reply #61 on: August 31, 2007, 09:25:07 am »
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:

SGT

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1145
  • Last login:April 17, 2023, 08:29:42 pm
Re: Speech Plug-In (V1.5) In Development
« Reply #62 on: August 31, 2007, 09:27:51 am »
Yeah...  I guess you are saying Atomic is for Girls   :laugh2:

Oooh.......burn.   :laugh2:

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 Plug-In (V1.5) In Development
« Reply #63 on: August 31, 2007, 09:51:57 am »
 :laugh2: good one!


In fact, Atomic helps you to catch girls!   8)

Be sexy, Be Atomic!   ;)     




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 Plug-In (V1.5) In Development
« Reply #64 on: August 31, 2007, 06:38:14 pm »
: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
« Last Edit: September 20, 2007, 07:50:57 am by loadman »