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
My special: Visual Effects

Need the most awesome Visual Special Effects, custom made specially for you? Just PM me! Im at your service! I can create any visual effect, shooting effects, particles, fractals, sprites, Hud, explosions, anything! No problem! And it's of course 100% FREE!

#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

TEAM ODDBOX

Did I try your game or help you out with yours?? Please return the favour and try out my game! NOT just another Halo Clone!!

Posted Image


#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
I think I am done with Game Maker, so if I was working on any projects, they will most likely never get finished.

I am moving on to...

C++
Java

#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

TEAM ODDBOX

Did I try your game or help you out with yours?? Please return the favour and try out my game! NOT just another Halo Clone!!

Posted Image


#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

TEAM ODDBOX

Did I try your game or help you out with yours?? Please return the favour and try out my game! NOT just another Halo Clone!!

Posted Image


#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

TEAM ODDBOX

Did I try your game or help you out with yours?? Please return the favour and try out my game! NOT just another Halo Clone!!

Posted Image


#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
Want Text-To-Speech in Lite/Unreg? Check out this topic then!

The Swedish Game making Community!

#22 hotshotscott

hotshotscott

    GMC Member

  • New Member
  • 3483 posts

Posted 14 January 2008 - 02:43 AM

HOW?

Scotty
  • 0

TEAM ODDBOX

Did I try your game or help you out with yours?? Please return the favour and try out my game! NOT just another Halo Clone!!

Posted Image


#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
Want Text-To-Speech in Lite/Unreg? Check out this topic then!

The Swedish Game making Community!

#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
Want Text-To-Speech in Lite/Unreg? Check out this topic then!

The Swedish Game making Community!

#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

#31 pedrosorio

pedrosorio

    GMC Member

  • GMC Member
  • 971 posts

Posted 05 June 2008 - 12:09 PM

play_text("global.name is "+global.name)

By the way, how do you use the xml commands? I'd like to know how to change the pitch.
  • 0
"Let's leave the classics for your parents." - KC LC

#32 IceMetalPunk

IceMetalPunk

    InfiniteIMPerfection

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

Posted 06 June 2008 - 08:44 AM

Odd. I downloaded the new .NET framework, but the example still doesn't work for me. I typed "Hello" and pressed ENTER, but nothing happened. No errors, but also no speech.

I'm on Windows XP (and as I said, the latest .NET framework). Any idea what's wrong?

-IMP :P ;)
  • 0

:GM123: Are you an artist who likes creating original creature designs? Maybe you can help out with Elementa here! Give it a look; you might like the idea :)

:bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny:


#33 Ryan PF

Ryan PF

    GMC Member

  • New Member
  • 23 posts

Posted 10 June 2008 - 02:13 PM

Is there a way to keep the voice from reading punctuation? Sometimes, the voice will say "He's going to... EAT CHICKEN!!!" as "He's going to dot dot dot eat chicken exclamation point exclamation point exclamation point"

But some sentences are read right. How does that work?
  • 0

#34 hiro-niro

hiro-niro

    GMC Member

  • New Member
  • 707 posts

Posted 10 June 2008 - 07:44 PM

dont work "error install extention package"
  • 0
Permanently left the Game Maker Community.

#35 hiro-niro

hiro-niro

    GMC Member

  • New Member
  • 707 posts

Posted 13 June 2008 - 12:03 PM

IT doens't work, can somebody help? A working link? Or maybe an alternate like Walter's?
  • 0
Permanently left the Game Maker Community.

#36 Pennythescripter123123

Pennythescripter123123

    GMC Member

  • New Member
  • 117 posts

Posted 25 June 2008 - 08:06 PM

I did the exe and tried it myself.
exe worked, mine didn't.
  • 0

#37 Pennythescripter123123

Pennythescripter123123

    GMC Member

  • New Member
  • 117 posts

Posted 29 June 2008 - 04:34 PM

How does this work?
What order do you put the stuff in?
  • 0

#38 hiro-niro

hiro-niro

    GMC Member

  • New Member
  • 707 posts

Posted 29 June 2008 - 06:14 PM

It simply says "Error can't install extention package." for me!!! WTF!
  • 0
Permanently left the Game Maker Community.

#39 aaaaa3000

aaaaa3000

    GMC Member

  • GMC Member
  • 663 posts

Posted 09 July 2008 - 06:12 PM

"An error occured installing the extention package"
  • 0

#40 Jax

Jax

    GMC Member

  • New Member
  • 232 posts

Posted 28 July 2008 - 06:11 AM

I have the same problem as IMP, but I am on Vista.
  • 0

#41 walter1996

walter1996

    GMC Member

  • New Member
  • 203 posts

Posted 29 July 2008 - 06:56 PM

Get new SAPI or something like that, google it, and use my way if you only have light ^^. See my sig...
  • 0
Want Text-To-Speech in Lite/Unreg? Check out this topic then!

The Swedish Game making Community!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users