Jump to content
(Public Beta) HyperSpin 2 is now available for everyone ×

HyperSpeech: Text-to-speech addon for HyperSpin 1.x 0.9


BoOgieman

Recommended Posts

  • Replies 536
  • Created
  • Last Reply
Posted

Hey Guys I have a problem. I have been trying to get HyperSpeech working on a computer I am setting up for my cabinet. I have read all 31 pages of this thread to no avail. When I run HyperSpin, HyperSpeech doesn't start. I have checked and rechecked settings and such but can't get it to work. After setting up all my emulators and roms and such in HyperLaunchHQ I thought this would be a breeze but for the life of me I can't get it to work. Any insights on why HyperSpeech will not start. I have manually started it before Hyperspin and get nothing either way. I did the cmd prompt and pasted my results in a notepad and get the ......\MAME.mp4 line returned. This is frustrating because it is a cool feature but I can't get it to work. You would think that programming controls systems for a living would help me out but it's a no go. Thanks in advance.

Posted

Face Palm..... :P I didn't even think to look at the log. I had renamed LEDBlinky incorrectly. All seems to be working now! Now just changing the voices from the default and I'll be dipped in batter and golden fried! Thanks for the ah-ha moment ninja.

Posted
How do you go about changingh the voice mate?

Use this code to change the voice if using a 64bit OS, once installed.

C:\Windows\SysWOW64\Speech\SpeechUX\sapi.cpl

Posted

I translated much the word GAME Spanish but can not make the rule correctly. where is this word ? the two words in HyperSpeech.DAT GAME and change but still says it wrong.

Posted
I translated much the word GAME Spanish but can not make the rule correctly. where is this word ? the two words in HyperSpeech.DAT GAME and change but still says it wrong.

The problem is that an English voice does not pronounce Spanish very well and vica versa.

You need to decide whether you want a Spanish voice or a English voice

1. You should install a spanish text-to-speech voice in Windows

2. copy a command line tool like say.exe to you Windows\System32 folder

3. open a command box and type "say.exe" and then type all the varioius text you want to test for pronouncation

say Hola...

say Muy Bien

4. edit the HyperSpeech.dat file or the HyperSpeech.ini file

You will have to test every game and comment and edit the dat file for the corrections.

It is a lot of work, I know because I've check almost about 90% of all my games...

Good luck!

Posted

ok perfect I 'm trying. can you tell me what is the exact code I should modify that data can not erase

I remember well because I 'm at work but it was something

eg

/bgame/=bgeim

thanks.

Posted
I remember now that I've tried to change several times but the numbers atari 2600 pronounces it wrong .. I can do ?

Man, if you really want to translate everything in Spanish, you're up for a pretty heavy task...

Below is the code in de HyperSpeech.dat file that takes care of pronouncation of your '2600'

### Correct hundreds (21)00

\b([1-9][1-9])00(\w*)\b=$1 hundred $2

  • 4 weeks later...
Posted

Boogie, I got a question. I know your not around much anymore but I think there is a problem with the ahk source code.

Anyway, I'm trying to get Hyperspeech to use mameinfo.dat to speak game descriptions for systems other than MAME. Like alot of us run the Capcom Classics, Midway Classics wheels, and those are mame rom names so it will def. find info to speak about them. Even system's like Atomiswave, Naomi...even though they are different emus, they use roms from the MAME set, and they as well are documented in the mameinfo.dat.

So I dove into the source code and found the piece of code to add more systems. Looks like this is the section. Obviously, I added all my systems I would like to have Hyperspeech speak game descriptions for:

	If ( MAMEBioEnabled = "true" && HSMainActive = 0 && currentGame != "" )
	{
		If ( currentSystem = "American Laser Games" || currentSystem = "Daphne" || currentSystem = "Gaelco" 
                       || currentSystem = "MAME HyperSpin Arcade" || currentSystem = "Mame Atari Classics" || currentSystem = "MAME Capcom Classics" 
                       || currentSystem = "MAME Cave Classics" || currentSystem = "MAME Data East Classics" || currentSystem = "MAME Irem Classics" 
                       || currentSystem = "MAME Konami Classics" || currentSystem = "MAME" || currentSystem = "MAME Midway Classics" || currentSystem = "MAME Namco Classics"
                       || currentSystem = "MAME Nintendo Classics" || currentSystem = "MAME Sega Classics" || currentSystem = "MAME SNK Classics" || currentSystem = "MAME Taito Classics" 
                       || currentSystem = "Nintendo Arcade Systems" || currentSystem = "PC Games" || currentSystem = "Sammy Atomiswave" || currentSystem = "Sega Model 2" || currentSystem = "Sega Model 3" 
                       || currentSystem = "Sega Naomi" || currentSystem = "Sega ST-V" || currentSystem = "Taito Type X" )
		{
			DebugPopup( MAMEHistoryDat )
			RegExMatch( MAMEHistoryDat, "SsmU)^\$info(?=[=,]" . currentGame . "\b[\w\d*\,]*[\r\n]+)(.*)^\$bio[\r\n]+(.*)- (TECHNICAL|TRIVIA|SERIES|STAFF|POSOURCES) -[\r\n]+(.*)end$[\r\n]+", gameHistory)
			strMAMEBio := gameHistory2
			If trim( ( strMAMEBio != "") )
			{
				StopSpeech()
				SpeakAsync( RegExClean( strMAMEBio ) )
				DebugPopup( "Bio: `n" . strMAMEBio )
			}
		}
	}
}	
Return

Now it compiles fine. But, when I run HS, it speaks the system names and system bios fine but when I enter a system, I get a popup message box saying "cannot find C:\Hyperspin\Hyperspeech\...\Databases\Chinese Writing\Chinese Writing.xml"

But here's the thing. Even when I grab a fresh copy of the source without my modifications and compile it still gives me that message. Any precompiled version by you works fine, but I am unable to add systems to it.

My Hyperspeech folder is C:\Hyperspin\Hyperspeech. I tried running the program by dropping the exe and all all the other files directly into the root without the Hyperspeech folder and still getting that error.

Any ideas?

EDIT:

Never mind, looks like you were using the standalone compiler available on the AHK website instead of the right click method.

Compiled with that one and everything works, Hyperspeech now speaks mame bios for all system wheels that use roms from the MAME set. Sweet.

I am......Machine

Posted
Boogie, I got a question. I know your not around much anymore but I think there is a problem with the ahk source code.

Anyway, I'm trying to get Hyperspeech to use mameinfo.dat to speak game descriptions for systems other than MAME. Like alot of us run the Capcom Classics, Midway Classics wheels, and those are mame rom names so it will def. find info to speak about them. Even system's like Atomiswave, Naomi...even though they are different emus, they use roms from the MAME set, and they as well are documented in the mameinfo.dat.

So I dove into the source code and found the piece of code to add more systems. Looks like this is the section. Obviously, I added all my systems I would like to have Hyperspeech speak game descriptions for:

Now it compiles fine. But, when I run HS, it speaks the system names and system bios fine but when I enter a system, I get a popup message box saying "cannot find C:\Hyperspin\Hyperspeech\...\Databases\Chinese Writing\Chinese Writing.xml"

But here's the thing. Even when I grab a fresh copy of the source without my modifications and compile it still gives me that message. Any precompiled version by you works fine, but I am unable to add systems to it.

My Hyperspeech folder is C:\Hyperspin\Hyperspeech. I tried running the program by dropping the exe and all all the other files directly into the root without the Hyperspeech folder and still getting that error.

Any ideas?

EDIT:

Never mind, looks like you were using the standalone compiler available on the AHK website instead of the right click method.

Compiled with that one and everything works, Hyperspeech now speaks mame bios for all system wheels that use roms from the MAME set. Sweet.

Is this something we could all benefit from? If so how would go about it, would we need to add more systems or modify what you've done?

I do love Hyperspeech and anything that can make it better makes me very happy.

56uIzxg.png

Posted
Is this something we could all benefit from? If so how would go about it, would we need to add more systems or modify what you've done?

I do love Hyperspeech and anything that can make it better makes me very happy.

Well it can benefit anyone who wants to hear an available game description for arcade systems other than MAME providing it uses a MAME rom or MAME rom name. I'm surprised no one ever requested this feature.

It's very simple Giga, look at the code snippet I pasted. Just add your system names in the same fashion and it'll work.

On another note, I'm not sure how many games the mess info.dat holds but that's basically the console version of mameinfo.dat. If the info inside the dat is displayed exactly the same then, then if somehow we can combine contents of the two, we can theoretically have console game bios spoken as well. I'm pretty sure mess info.dat uses no intro names.

I am......Machine

Posted
Have you updated the dat lately? My original is quite a lot smaller than this one.

http://www.arcade-history.com/?page=download

Yea I have the 155 one...actually it looks like the dats are already combined. I thought they used to be seperate?

Well regardless I would bet if you added Sega Genesis to the Hyperspeech source code and recompiled it would speak game info for Genesis games.

I use Hyperspeech only for my cab currently, so I can't test but like I said I'll betcha it would work.

I am......Machine

Posted
Boogie, I got a question. I know your not around much anymore but I think there is a problem with the ahk source code.

Anyway, I'm trying to get Hyperspeech to use mameinfo.dat to speak game descriptions for systems other than MAME. Like alot of us run the Capcom Classics, Midway Classics wheels, and those are mame rom names so it will def. find info to speak about them. Even system's like Atomiswave, Naomi...even though they are different emus, they use roms from the MAME set, and they as well are documented in the mameinfo.dat.

So I dove into the source code and found the piece of code to add more systems. Looks like this is the section. Obviously, I added all my systems I would like to have Hyperspeech speak game descriptions for:

	If ( MAMEBioEnabled = "true" && HSMainActive = 0 && currentGame != "" )
	{
		If ( currentSystem = "American Laser Games" || currentSystem = "Daphne" || currentSystem = "Gaelco" 
                       || currentSystem = "MAME HyperSpin Arcade" || currentSystem = "Mame Atari Classics" || currentSystem = "MAME Capcom Classics" 
                       || currentSystem = "MAME Cave Classics" || currentSystem = "MAME Data East Classics" || currentSystem = "MAME Irem Classics" 
                       || currentSystem = "MAME Konami Classics" || currentSystem = "MAME" || currentSystem = "MAME Midway Classics" || currentSystem = "MAME Namco Classics"
                       || currentSystem = "MAME Nintendo Classics" || currentSystem = "MAME Sega Classics" || currentSystem = "MAME SNK Classics" || currentSystem = "MAME Taito Classics" 
                       || currentSystem = "Nintendo Arcade Systems" || currentSystem = "PC Games" || currentSystem = "Sammy Atomiswave" || currentSystem = "Sega Model 2" || currentSystem = "Sega Model 3" 
                       || currentSystem = "Sega Naomi" || currentSystem = "Sega ST-V" || currentSystem = "Taito Type X" )
		{
			DebugPopup( MAMEHistoryDat )
			RegExMatch( MAMEHistoryDat, "SsmU)^\$info(?=[=,]" . currentGame . "\b[\w\d*\,]*[\r\n]+)(.*)^\$bio[\r\n]+(.*)- (TECHNICAL|TRIVIA|SERIES|STAFF|POSOURCES) -[\r\n]+(.*)end$[\r\n]+", gameHistory)
			strMAMEBio := gameHistory2
			If trim( ( strMAMEBio != "") )
			{
				StopSpeech()
				SpeakAsync( RegExClean( strMAMEBio ) )
				DebugPopup( "Bio: `n" . strMAMEBio )
			}
		}
	}
}	
Return

Now it compiles fine. But, when I run HS, it speaks the system names and system bios fine but when I enter a system, I get a popup message box saying "cannot find C:\Hyperspin\Hyperspeech\...\Databases\Chinese Writing\Chinese Writing.xml"

But here's the thing. Even when I grab a fresh copy of the source without my modifications and compile it still gives me that message. Any precompiled version by you works fine, but I am unable to add systems to it.

My Hyperspeech folder is C:\Hyperspin\Hyperspeech. I tried running the program by dropping the exe and all all the other files directly into the root without the Hyperspeech folder and still getting that error.

Any ideas?

EDIT:

Never mind, looks like you were using the standalone compiler available on the AHK website instead of the right click method.

Compiled with that one and everything works, Hyperspeech now speaks mame bios for all system wheels that use roms from the MAME set. Sweet.

Hey man,

You're right I'm not much around lately but just noticed your post...

Good to hear that you figured out my source code and got the result you were looking for.

I tried to keep the code fairly clean for other to dig in to so I guess that worked out nice.

I noticed the history.dat is rather large these days and contain a lot more systems, so what could that bring us?

Posted
Hey man,

You're right I'm not much around lately but just noticed your post...

Good to hear that you figured out my source code and got the result you were looking for.

I tried to keep the code fairly clean for other to dig in to so I guess that worked out nice.

I noticed the history.dat is rather large these days and contain a lot more systems, so what could that bring us?

Spoken game descriptions for any console game that is documented in the dat file.

Picture going into your genesis wheel and having Hyperspeech speak the game description to Quackshot or Sonic the Hedgehog.

Once again dependent on if there is an entry in there for the game.

I am......Machine

Posted
Spoken game descriptions for any console game that is documented in the dat file.

Picture going into your genesis wheel and having Hyperspeech speak the game description to Quackshot or Sonic the Hedgehog.

Once again dependent on if there is an entry in there for the game.

Exactly ;-)

The greatest challenge to face is to create a mapping between your rom files (entries in the HS database) and the entries in the history.dat file.

So for instance if you want to have a bio spoken for the Atari 2600 game "Crazy Climber (USA)" we need a reference for "cclimber" as is used in the history.dat file.

I would suggest to keep to the history.dat as is and create and maintain some sort of reference table for the mapping of the above...

  • 2 months later...
Posted

I would ask boogieman_nl or at least look in his folder

Sent from my SM-G900F using Tapatalk

The Hyperspin Report writer/editor <br />resident grouch, Hyperspin facebook modorator<br />for those who want to read my work <br /><a href='http://thehyperspinreport.blogspot.co.uk' class='bbc_url' title='External link' rel='nofollow external'>http://thehyperspinreport.blogspot.co.uk</a>

Posted
Was the first place I looked bu I can't see boogiemans folder :(

Great, some dork deleted all my stuff!!!

This is what you get for sharing your work and source code here...

Also my method and code for checking the HS events and reading out the main menu wheel has been adopted by several people now, which is fantastic.

The strange thing is that these people never mentioned where the idea come from or give any credits for it.

Hey whatever... I believe Karma will get them eventually...

Any chance of restoring my files on the FTP?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...