Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Speech ?? Help me I'm stuck

Author
Message
Omega Online
21
Years of Service
User Offline
Joined: 26th Oct 2002
Location: United Kingdom
Posted: 26th Oct 2002 17:57
Hello everyone, how are ya doing ?

Well I would first like to say how great DBP is and I hope to make great games/apps with it in the future.

Well I've just got one problem so far...
For my first game I hope to add speech, ie synthetic speech. Problem is I don't have a clue how to do this.

So if anyone has any info, source etc please post.

Your name will appear in credits if you sumbit anything.
Shock
AGK Developer
21
Years of Service
User Offline
Joined: 24th Oct 2002
Location: United Kingdom
Posted: 26th Oct 2002 20:04
dunno about dbpro (never read up on any of the extras), but in db1 you create the speech yourself, i.e. getting a microphone and using sound recorder, or sound forge. There are some text-to-speech programs which let you save the outcome as wav, if i find one i'll post it for ya

www.shockforge.com ShockForge Software
www.havochost.com Unlim bandwdith, unlim space, you.havochost.com, you.s8i.com, visit site for more details.
...::::ShockForge::::...
Shock
AGK Developer
21
Years of Service
User Offline
Joined: 24th Oct 2002
Location: United Kingdom
Posted: 26th Oct 2002 20:10
http://www.tucows.com/mmedia/preview/193526.html
http://www.share2.com/texttospeech/

both trial

www.shockforge.com ShockForge Software
www.havochost.com Unlim bandwdith, unlim space, you.havochost.com, you.s8i.com, visit site for more details.
...::::ShockForge::::...
Omega Online
21
Years of Service
User Offline
Joined: 26th Oct 2002
Location: United Kingdom
Posted: 26th Oct 2002 21:58
Thanks for the links ShockForge
but not what I really want.

The game I'm creating is going to use synthetic speech. So when the user types in some text the computer will convert that into speech.

Perhaps something like:

input "Type text to be spoken";text_to_speech$

I have the Speech Application Programming Interface from microsoft and speech engines installed. I'm thinking of using a dll. But I don't know which one to use or what the function is for tts.

Anyone else have any more ideas,source or another way...?
Omega Online
21
Years of Service
User Offline
Joined: 26th Oct 2002
Location: United Kingdom
Posted: 27th Oct 2002 09:33
Anyone please...
This will mean a lot to me if you can help.
Super Teo
21
Years of Service
User Offline
Joined: 18th Sep 2002
Location: Sweden
Posted: 27th Oct 2002 11:46
This Might be alittle advanced or something...
But you could record some voice that says every single char, then analyse each char that the user type in and if it is a 'a' then play the sound 'a', if it is a 'b' then play the sound 'b' etc. etc.
That way you probably get some sort of robot speech
Shock
AGK Developer
21
Years of Service
User Offline
Joined: 24th Oct 2002
Location: United Kingdom
Posted: 27th Oct 2002 12:38
it'll be better than robot, that actually sounds fun, to see what it'll sound like. Maybe thats the next project. Maybe i'll do it now...

www.shockforge.com ShockForge Software
www.havochost.com Unlim bandwdith, unlim space, you.havochost.com, you.s8i.com, visit site for more details.
...::::ShockForge::::...
Shock
AGK Developer
21
Years of Service
User Offline
Joined: 24th Oct 2002
Location: United Kingdom
Posted: 27th Oct 2002 12:51
actually i cant be bothered right now, but i was bored so i made a sample using 'h e l o' and typing hello.

'Ha-eh-la-la-oh' Is what it sounded like

www.shockforge.com ShockForge Software
www.havochost.com Unlim bandwdith, unlim space, you.havochost.com, you.s8i.com, visit site for more details.
...::::ShockForge::::...
Shadow
21
Years of Service
User Offline
Joined: 17th Oct 2002
Location: In the shadows
Posted: 27th Oct 2002 19:36
I've made a program that does just that. At first it said 'Ha-eh-la-la-oh' for hello, but that is because the sound file contains unnecessary sound - gap before you speak, gap after you speed and extra sound (e.g. the 'a' on 'Ha'). If the sound files are longer than 0.2 seconds, they probably contain unwanted sound. My sound for 'd' is only 0.03 seconds.
The Darthster
21
Years of Service
User Offline
Joined: 25th Sep 2002
Location: United Kingdom
Posted: 27th Oct 2002 22:25
You need more sound samples than simply alphabet sounds, think about how you would say the words. For example the word 'book', you wouldn't say it bee-oh-oh-kay, etc. Also special sounds like ph and ch. I had some source code for this but I lost it. Try searching for the phonetic alphabet.

Uncle Weevy uses a different system to this; it uses whole words, but it was still cool.
Shock
AGK Developer
21
Years of Service
User Offline
Joined: 24th Oct 2002
Location: United Kingdom
Posted: 27th Oct 2002 22:51
ohyea i forgot about uncle weevy that was soo kool. im just going to have to rake out the old db cd, i just need to hear more storys about lonely chicken soup's

www.shockforge.com ShockForge Software
www.havochost.com Unlim bandwdith, unlim space, you.havochost.com, you.s8i.com, visit site for more details.
...::::ShockForge::::...
Omega Online
21
Years of Service
User Offline
Joined: 26th Oct 2002
Location: United Kingdom
Posted: 27th Oct 2002 22:53
Thanks for the ideas,guys but not really what I'm really looking for. As I said, I want to use synthetic speech so to cut down on the sound files.

Perhaps there is a way I can add support for my game/app using a dll. However I don't have my knowledge in this field. So can anyone suggest how I can do this ?
John H
Retired Moderator
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 28th Oct 2002 13:47
Eh, this would be difficult. In the english language there are so many different sounds for letters, creating a library would take forever. For instance:
book
lock
"O" has a new sound. Well anyways making a library with your mic would take a little while but is probably your best bet. You would have to make separate sounds for "O" for like "Oh" and "Ooo"
Well good luck to you-
big project
RPGgamer

Final Fantasy, best series ever made.
Shock
AGK Developer
21
Years of Service
User Offline
Joined: 24th Oct 2002
Location: United Kingdom
Posted: 28th Oct 2002 22:00
***
You would have to make separate sounds for "O" for like "Oh" and "Ooo"
***

and also work out a way so your program knows which version of 'o' to use

www.shockforge.com ShockForge Software
www.havochost.com Unlim bandwdith, unlim space, you.havochost.com, you.s8i.com, visit site for more details.
...::::ShockForge::::...
The Darthster
21
Years of Service
User Offline
Joined: 25th Sep 2002
Location: United Kingdom
Posted: 29th Oct 2002 00:04
You mean make the sounds at run-time to minimise sound file useage? That's really quite hard, but it can be done using memblocks. I mean it's hard to write the arrays to store the sounds in.

http://www.codeproject.com/audio/

That site contains some c source code which does text to speech. Here are some of the sounds you should be using, taken from the site:
// Mouth Mapping Array (from Microsoft's TTSApp Example)

const int g_iMapVisemeToImage[22] = {
0, // SP_VISEME_0 = 0, // Silence
11, // SP_VISEME_1, // AE, AX, AH
11, // SP_VISEME_2, // AA
11, // SP_VISEME_3, // AO
10, // SP_VISEME_4, // EY, EH, UH
11, // SP_VISEME_5, // ER
9, // SP_VISEME_6, // y, IY, IH, IX
2, // SP_VISEME_7, // w, UW
13, // SP_VISEME_8, // OW
9, // SP_VISEME_9, // AW
12, // SP_VISEME_10, // OY
11, // SP_VISEME_11, // AY
9, // SP_VISEME_12, // h
3, // SP_VISEME_13, // r
6, // SP_VISEME_14, // l
7, // SP_VISEME_15, // s, z
8, // SP_VISEME_16, // SH, CH, JH, ZH
5, // SP_VISEME_17, // TH, DH
4, // SP_VISEME_18, // f, v
7, // SP_VISEME_19, // d, t, n
9, // SP_VISEME_20, // k, g, NG
1 // SP_VISEME_21, // p, b, m

This list compares mouth positions against sounds.

Look at this site for phonetic notation:
http://www.phon.ucl.ac.uk/home/sampa/english.htm

Hope that's some help.
Omega Online
21
Years of Service
User Offline
Joined: 26th Oct 2002
Location: United Kingdom
Posted: 29th Oct 2002 09:22
Thanks TheDarthster that's what I want, and thank you for others giving suggestions. I should be able to create a nice demo/app with this. So thanks again.
The Darthster
21
Years of Service
User Offline
Joined: 25th Sep 2002
Location: United Kingdom
Posted: 29th Oct 2002 23:12
No problem, glad to be of help. Let us know when the demo's done, I'd like to see it.
Madehra
21
Years of Service
User Offline
Joined: 19th Sep 2002
Location: Portugal
Posted: 31st Oct 2002 16:07
Yes me too
Anyone played an old game called Nomad?
It was a space rpg, similiar to star control 2 (ROCKS!) but with ugly 3d combat (ugly by today's standards, hehe).
That game used a very cool alien speech for the many alien races, anybody has any idea how they did it?
BOC4J
21
Years of Service
User Offline
Joined: 31st Oct 2002
Location: United Kingdom
Posted: 31st Oct 2002 23:40
i made one of those speech sythesisers years ago with div, but it sounded very robotic, i am planning on doing it again to use in a game

Login to post a reply

Server time is: 2024-04-24 17:03:31
Your offset time is: 2024-04-24 17:03:31