On Fri, April 27, 2007 11:00 am, Daniel Brown wrote: > Even beyond the scope of what this small project will be, I was > thinking > (for once!) that it probably will not be too horribly difficult to > incorporate some code into PHP itself that would allow functions such > as > text2wav(), et al. After all, the Festival TTS engine itself, which > we'll > be using as a foundation (and first floor even), is already written in > C++, > so hopefully back-porting it to PHP's native C language core won't > prove to > be too much of a nightmare. Ah! You're thinking you need to rewrite it in C to make it tie in to PHP. Not so, I think. You simply need to write "wrapper" functions in C that let PHP talk to the compiled library which can just be straight from its C++ source -- Or *any* language that builds a compiled library. PHP is just a "glue" that is written in C (not C++) to tie together the various extensions that can be written in ANY language. In theory, you could take a COBOL program and make a PHP extension out of it, without re-writing the dang thing in C. At least, that's how I understand it, having stumbled my way through writing one silly extension myself... -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php