speech synth

BlitzMax Forums/BlitzMax Programming/speech synth

Chris C(Posted 2006) [#1]
http://free.hostdepartment.com/c/chrisc/

enjoy!


EOF(Posted 2006) [#2]
Nice!
Reminds me of the Amiga 'Say' program.
Can you control stuff like WPM, frequency, female/male voice?


Chris C(Posted 2006) [#3]
the voice is synth'd so its niether female or male
I guess the WPM could be hacked...
Frequency is also changable

have a look through the C source its fairly easy to see whats happening you just need to write you own extended say function


xlsior(Posted 2006) [#4]
Doesn't seem to compile for me:

Building speak
Compiling:charset.c
Build Error: failed to compile d:/test6/rsynth/charset.c




GA(Posted 2006) [#5]
I take it this is windows only then.

"21: windows.h: No such file or directory"

Mac OS 14.4.4


Chris C(Posted 2006) [#6]
no d/load rsynth and hack in a sound driver tho I'm not sure theres one of mac

@xlsior - gizza clue it must have said something more than that...


Physt(Posted 2006) [#7]
Does anyone have an demo with an .exe?


CS_TBL(Posted 2006) [#8]
@ windows:

Compiling:charset.c
Build Error: failed to compile C:/Bmaxdev/speech/rsynth/charset.c


Chris C(Posted 2006) [#9]
@ xlsior and CS_TBL try installing mingw properly can you compile modules?

see Marks instructions for mingw installation...


RepeatUntil(Posted 2006) [#10]
Hi,

Yes, I had the same error messages, but it worked perfectly after I installed MinGW. See post of Mark here: http://www.blitzmax.com/Community/posts.php?topic=53442

Here is the same example for people who do not have MaxGui:
Import "rsynth\charset.c"
Import "rsynth\darray.c"
Import "rsynth\getarg.c"
Import "rsynth\holmes.c"
Import "rsynth\hplay.c"
Import "rsynth\opsynth.c"
Import "rsynth\phones.c"
Import "rsynth\phtoelm.c"
Import "rsynth\say.c"
Import "rsynth\text.c"
Import "rsynth\trie.c"
Import "rsynth\elements.c"
Import "rsynth\english.c"

Extern 
	Function say(s:Byte Ptr)
EndExtern

Local txt$ 
Repeat
	txt = Input("Enter your text: ")
	say(txt.toCstring())
Until KeyHit(KEY_ESCAPE)


Very nice lib by the way!!


Chris C(Posted 2006) [#11]
thank the rsynth author not me!

I just butchered (and I really do mean butchered) his code to get the bare minimum of it working!

I may look at this again to replace the sythesis bit with wav files of allophones, it might improve the understandability of it

in addition it will allow it to work on minority platforms like the mac ;p ( waits for flames )

Anyone think this is worth bothering with?


RepeatUntil(Posted 2006) [#12]
If you can improve the quality of the sound/voice, sure it will be useful for the community!! And if you are able to do that cross-platform, you will have a hit!!


Physt(Posted 2006) [#13]
That sound quality is about the best you're going to get with that method of speech generation. I wouldn't expect it to get any better.


Chris C(Posted 2006) [#14]
we'll see, i have acunning plan...


Physt(Posted 2006) [#15]
Well unless your cunning plan involves ripping out the synthesis code and replacing it, it won't help. None the less, I'm interesting in seeing any improvements.


TartanTangerine (was Indiepath)(Posted 2006) [#16]
I could not get it to compile with Ming or the lastest version of BMAX :(


Chris C(Posted 2006) [#17]
Give us some kinda clue as to what it said...

what happens if you type gcc --version from the command line (not in mingw directory)?

Can you compile modules?

Its win32 only for the time being


Regular K(Posted 2006) [#18]
Very primitive but a good start.

Keep going :D