Jump to content


Photo

Gm Text-to-speech


  • Please log in to reply
40 replies to this topic

#1 Bram Buurlage

Bram Buurlage

    GMC Member

  • New Member
  • 51 posts

Posted 04 January 2008 - 06:19 PM

this gex adds text to speech to your game
link:
v1.0 Posted Imagev1.1 Posted Image

if it doesnt work you might need the .NET framework...

btw, josh462365 made an example for this:example

Edited by Bram Buurlage, 09 January 2008 - 04:36 PM.

  • 0

#2 toelle

toelle

    GMC Member

  • New Member
  • 123 posts

Posted 05 January 2008 - 04:05 PM

That's awesome! i used it in a chat box.

Edit: how do you do so it's says a string? And how do you use the "talk" thing in gml?

Edited by toelle, 05 January 2008 - 04:22 PM.

  • 0

#3 13bgarli

13bgarli

    GMC Member

  • New Member
  • 177 posts

Posted 06 January 2008 - 07:11 PM

u should make it so u can change the voice. if u have any other voices on the computer like me runing vista i have a lot of different voices. but i like this it works fine. great job

13bgarli
  • 0

#4 Bram Buurlage

Bram Buurlage

    GMC Member

  • New Member
  • 51 posts

Posted 08 January 2008 - 04:28 PM

i made it using the default voice of your computer, so if you want to use a diffrent voice, set it to default. (i use the default voice because not every computer has the same voices, wich can cause errors if you post your game)
  • 0

#5 Bram Buurlage

Bram Buurlage

    GMC Member

  • New Member
  • 51 posts

Posted 08 January 2008 - 04:36 PM

That's awesome! i used it in a chat box.

Edit: how do you do so it's says a string? And how do you use the "talk" thing in gml?

<{POST_SNAPBACK}>

the talk thingy is called play_string(string); in gml.
and thats directly how you can make it say a string, or else there's something wrong
  • 0

#6 josh462365

josh462365

    GMC Member

  • GMC Member
  • 826 posts
  • Version:Unknown

Posted 09 January 2008 - 12:35 PM

Hey I hope you don't mind, but I made a pretty straight forward example if you want to showcase it. Great extension by the way. The example includes volume and speed control.

http://willhostforfo...hp?fileid=12601
^If you want me to take it down just PM me and let me know.

Edited by josh462365, 09 January 2008 - 12:35 PM.

  • 0

#7 Bram Buurlage

Bram Buurlage

    GMC Member

  • New Member
  • 51 posts

Posted 09 January 2008 - 04:34 PM

nice example, ill put in the first post -_-
  • 0

#8 hotshotscott

hotshotscott

    GMC Member

  • New Member
  • 3483 posts

Posted 10 January 2008 - 07:43 AM

Can you please create a quick exe out of it, just with a textbox and it saying the words. ACTUALLY, can you please put in the exe a button that you click and then you type in what you want it to say, and it says it? I want to check it out, but i don't have gm7.

Thanks,

Scotty
  • 0

#9 Bram Buurlage

Bram Buurlage

    GMC Member

  • New Member
  • 51 posts

Posted 10 January 2008 - 11:46 AM

i've got an example here: http://www.willhostf...hp?fileid=12352
type something and press enter :)
  • 0

#10 Creative Fusion

Creative Fusion

    GMC Member

  • New Member
  • 55 posts

Posted 10 January 2008 - 04:09 PM

I take it you have to have the latest version of the framework, since this doesn't speak for me with 2.0 and 1.1 installed?
  • 0

#11 Bram Buurlage

Bram Buurlage

    GMC Member

  • New Member
  • 51 posts

Posted 10 January 2008 - 04:28 PM

well, i think so....
VC++2008 sucks...;)
  • 0

#12 Creative Fusion

Creative Fusion

    GMC Member

  • New Member
  • 55 posts

Posted 10 January 2008 - 04:33 PM

Ok, thanks.

But you could make one compatible with earlier versions of the framework though?

And beyond that, could something be done to allow users to select different voices from their machine?

Edited by Creative Fusion, 10 January 2008 - 04:48 PM.

  • 0

#13 Fyeregg

Fyeregg

    Fyeregg Productions

  • New Member
  • 763 posts

Posted 10 January 2008 - 07:13 PM

1,000,000/10! Great work, Two digital thumbs up!
  • 0

#14 hotshotscott

hotshotscott

    GMC Member

  • New Member
  • 3483 posts

Posted 11 January 2008 - 05:39 AM

Didn't work on my computer <_< There was just nothing to be heard (I tried the exe)

Scotty
  • 0

#15 Bram Buurlage

Bram Buurlage

    GMC Member

  • New Member
  • 51 posts

Posted 11 January 2008 - 08:13 AM

@creative fusion: no VC++2005 doesnt work on my computer, so i cant.
@Fyeregg: thanks! :GM044:
@hotshotscott: <_< :GM122: :GM048:
  • 0

#16 josh462365

josh462365

    GMC Member

  • GMC Member
  • 826 posts
  • Version:Unknown

Posted 11 January 2008 - 08:14 AM

Didn't work on my computer <_< There was just nothing to be heard (I tried the exe)

Scotty

<{POST_SNAPBACK}>


then you need to download the new .net framework.. i had to do it too it's not too big..like 55mb or something. there is a link to it in the first post.
  • 0

#17 hotshotscott

hotshotscott

    GMC Member

  • New Member
  • 3483 posts

Posted 11 January 2008 - 08:26 AM

But what if i was to put this into my game, and then another person that played my game didn't have the .net framework? It wouldn't work...

Scotty
  • 0

#18 josh462365

josh462365

    GMC Member

  • GMC Member
  • 826 posts
  • Version:Unknown

Posted 11 January 2008 - 10:35 AM

Add a readme that says you must download .net framework 3.5 for application to run properly. You can find it here

http://www.microsoft...;displaylang=en


Edited by josh462365, 11 January 2008 - 10:36 AM.

  • 0

#19 hotshotscott

hotshotscott

    GMC Member

  • New Member
  • 3483 posts

Posted 12 January 2008 - 01:03 AM

But there arn't many people who like to download a 55mb thing just for a 10 minutes game. Sorry, it's no good unless it works on every computer.

Scotty
  • 0

#20 Bram Buurlage

Bram Buurlage

    GMC Member

  • New Member
  • 51 posts

Posted 12 January 2008 - 10:45 AM

you could use it optional, it doesnt give errors if you dont have .net framework 3.5. So for the people who have it, they got a little extra
  • 0

#21 walter1996

walter1996

    GMC Member

  • New Member
  • 203 posts

Posted 13 January 2008 - 11:53 AM

Did you guys know that tts is possible without any .gex or any dll's, even in Lite? I've found a system but I think that this is better and easier^^ just say and i'll tell how... :rolleyes:
  • 0

#22 hotshotscott

hotshotscott

    GMC Member

  • New Member
  • 3483 posts

Posted 14 January 2008 - 02:43 AM

HOW?

Scotty
  • 0

#23 walter1996

walter1996

    GMC Member

  • New Member
  • 203 posts

Posted 15 January 2008 - 01:59 PM

Create a text file with this text:
Set d=CreateObject("SAPI.SpVoice")
Set d.Voice=d.GetVoices("Name=Microsoft Sam").Item(0)
d.Speak "This is the text to be said!"

Save it as speech.vbs!

Execute it with Gamemakers command:
execute_shell("speech.vbs","")

:D Walter
  • 0

#24 Creative Fusion

Creative Fusion

    GMC Member

  • New Member
  • 55 posts

Posted 15 January 2008 - 04:18 PM

Nice. For people that want more info on that, go here: http://www.microsoft...games/sapi.mspx
  • 0

#25 Bonko876

Bonko876

    GMC Member

  • New Member
  • 62 posts

Posted 17 January 2008 - 06:49 AM

Didn't work for me, I made a text file and named it speech.vbs and the executed it and it said:

ERROR in
action number 1
of Create Event
for object object0:

Cannot execute speech.vbs

What did I do wrong?
  • 0

#26 walter1996

walter1996

    GMC Member

  • New Member
  • 203 posts

Posted 17 January 2008 - 06:15 PM

Did you save speech.vbs in the same file as the game?
If you wrote it in Notepad are you sure that you saved it not as a textfile (you can change that under the filename when you save it :) )?



:P
  • 0

#27 Bram Buurlage

Bram Buurlage

    GMC Member

  • New Member
  • 51 posts

Posted 17 January 2008 - 07:25 PM

isnt this a little off-topic????
go ontopic please
  • 0

#28 Bonko876

Bonko876

    GMC Member

  • New Member
  • 62 posts

Posted 17 January 2008 - 09:09 PM

Okay, Bram Buurlage, I tried to example but it gave me an error. I delete the part it was complaining about then tried again, no sounds came out. I don't think I have the framework, so my fault, sound great though. :D

P.S. A big thank-you walter, that worked :lol: thank you, thank you, thank you.

Edited by Bonko876, 18 January 2008 - 10:03 PM.

  • 0

#29 WadeMcGillis

WadeMcGillis

    wademcgillis.com

  • GMC Member
  • 971 posts

Posted 24 January 2008 - 05:03 PM

When Game Maker was still made by Mark Overmars, there was a way to have tts in a game on any computer (that has tts capabilities). But, since gamemaker.nl is no longer has the download, a new place to find it would be on the site that copied gamemaker.nl http://gmnl.parahost...maker/voice.zip. Just make sure the person has the voice on their PC.

Edited by Whaddsoft, 24 January 2008 - 05:04 PM.

  • 0

#30 Amster

Amster

    GMC Member

  • New Member
  • 493 posts

Posted 28 May 2008 - 08:02 PM

How can we add variables?

Like if global.name="Charlie"

How can I make it say global.name
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users