Jump to content


Photo

Game Maker Sapi Interface Aka Gmsapi


  • Please log in to reply
15 replies to this topic

#1 freaked

freaked

    freak up!

  • New Member
  • 890 posts

Posted 17 March 2008 - 12:11 PM

This is my second dll which I made after lots of hard work.
Basically, this dll wraps up the Microsoft Speech APIs and to be usable on the GM side.
There's only 1 single function,
sapi_say(string)
Use whenever you want!
GmSapi's DrawBacks -
The games are sort of paused when a certain thing is being said.
Games are thus oblivious to input, even with
keyboard check direct ^_^
This prevents me from adding functions like
pause, resume , etc.

GmSapi's Usefulness
This is GREAT for character speech in Role Playing Games or will even suffice for in-game story narration between, say when you usually display a loading screen between levels
Absolutely no overhead on your games as SAPI support is there on the clients PC already!
Very tiny - 18 kbs only

Download GmSapi
Please reply...

Edited by freaked, 17 March 2008 - 12:39 PM.

  • 0

#2 Konochi

Konochi

    GMC Member

  • New Member
  • 629 posts

Posted 17 March 2008 - 04:14 PM

COOL!!!!!!!!
5/5!!!!
^_^
This is amazing :3
  • 0

#3 posva

posva

    GMC Member

  • New Member
  • 610 posts
  • Version:GM8

Posted 17 March 2008 - 04:58 PM

i try it but it doesn't work...
  • 0

#4 BigB0ss

BigB0ss

    GMC Member

  • New Member
  • 103 posts

Posted 17 March 2008 - 05:51 PM

Doesn't work for me too, using Windows XP SP2.
  • 0
(\ /)
( . .) ~Copy & Paste To Help
C(")(") Bunny Take Over The World~


Add me to MSN: ajax_3963@hotmail.com

#5 posva

posva

    GMC Member

  • New Member
  • 610 posts
  • Version:GM8

Posted 17 March 2008 - 08:31 PM

i alsop use that
  • 0

#6 freaked

freaked

    freak up!

  • New Member
  • 890 posts

Posted 18 March 2008 - 08:48 AM

You're supposed to press <space> after you run the game.
  • 0

#7 BigB0ss

BigB0ss

    GMC Member

  • New Member
  • 103 posts

Posted 18 March 2008 - 12:21 PM

You're supposed to press <space> after you run the game.

<{POST_SNAPBACK}>


Dooh, I know.
  • 0
(\ /)
( . .) ~Copy & Paste To Help
C(")(") Bunny Take Over The World~


Add me to MSN: ajax_3963@hotmail.com

#8 freaked

freaked

    freak up!

  • New Member
  • 890 posts

Posted 18 March 2008 - 01:25 PM

Is your speaker active, then?
What exactly do you do?
As Konochi confirmed, this dll works and it is most likely a problem on your and posva's end.
  • 0

#9 Knightmare

Knightmare

    OMGLOLWTFZORZ!1!1!!11

  • New Member
  • 867 posts
  • Version:Unknown

Posted 24 March 2008 - 08:35 PM

You could try using threading to avoid the freezing problem.
  • 0


#10 freaked

freaked

    freak up!

  • New Member
  • 890 posts

Posted 25 March 2008 - 04:43 AM

Yeah, thought of using threads first.
But I got absolutely bogged down after looking through the thread commands in the API manual!
  • 0

#11 Knightmare

Knightmare

    OMGLOLWTFZORZ!1!1!!11

  • New Member
  • 867 posts
  • Version:Unknown

Posted 26 March 2008 - 06:11 AM

It's not as hard as you think it is. xD

This is a basic threading example in C#

using System.Threading;

namespace BeepBoop
{

	static void CreateThread()
	{
		Thread t = new Thread(new ThreadStart(testfunc));
		t.Start();
	}

	static void testfunc()
	{
		MessageBox.Show("Hai there!");
	}

}

  • 0


#12 icuurd12b42

icuurd12b42

    Self Formed Sentient

  • GMC Elder
  • 18181 posts
  • Version:GM:Studio

Posted 27 March 2008 - 02:51 AM

Does not work for me... And I did press space. Do we need to install some other components?
  • 0

gmcbanner.pnggmcbanner_tools.png

ICU Live Tutoring Through Slack or Skype | My Tools Page follow.png

I FRANTICALLY MADE MY 18000 POST TOPIC BEFORE MIKE ANNOUNCED A DELAY...
Now I'm squirming not to hit that reply button


#13 Konochi

Konochi

    GMC Member

  • New Member
  • 629 posts

Posted 11 April 2008 - 01:51 AM

could you please add a female voice there too?
  • 0

#14 norman...

norman...

    GMC Member

  • GMC Member
  • 21 posts

Posted 11 April 2008 - 01:17 PM

NIce one! 9/10!
  • 0

#15 freaked

freaked

    freak up!

  • New Member
  • 890 posts

Posted 13 April 2008 - 02:53 AM


For all those having problems -

Go to start -> run -> type in "C:\Program Files\Common Files\Microsoft Shared\Speech\sapi.dll".
Including quotes!
Hit enter.
If a dialog box comes up, telling you that opening or editing dll files is dangerous, it means Speech API is there.
Again go to start -> run and type regsvr32 "C:\Program Files\Common Files\Microsoft Shared\Speech\sapi.dll" and then try the example again.
If you get a "FILE NOT FOUND DIALOG" it means there's no Speech API support.
You could also implement it in your game via "execute_shell()"
Hope that solves it!

Konochi -
I can do it, but then you wont be able to run it on XP computers.

norman...
Thanks!
  • 0

#16 ashkan_gc

ashkan_gc

    GMC Member

  • New Member
  • 5 posts

Posted 16 April 2008 - 02:50 PM

hi people
i have created an exe file that speak the textwith you default TTS engine choosed in control panel
you can download the file in gm resources at yoyogames.com and resources page
search for TTS

good lock
  • 0