Re: Proposed Extension: Flite (a small, fast run time synthesis engine)

From: Date: Tue, 24 Jan 2006 07:19:33 +0000
Subject: Re: Proposed Extension: Flite (a small, fast run time synthesis engine)
References: 1 2 3 4 5 6 7  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-3438@lists.php.net to get a copy of this message
Thanks for the feedback! On 1/23/06, Sara Golemon <pollita@php.net> wrote: > 1) __construct() should have ZEND_ACC_CTOR in its flags field. What does that do specifically? 2) Speaking of __construct(), you could save some memory/cpu by storing your > resource in an extended zend_object struct using an overrided object_ctor > method and tossing out __construct() since you don't need any parameters > anyway. True, I just found it a handy place to store the voice pointer which I knew worked from prior code I had written. Do you happen to have a short code snippet illustrating your suggestion. 3) A save_to_file() method would seem appropriate Agreed, I just needed to learn more about that first to make sure I was doing it the "PHP" way. 4) Are there other voices? Is there a way (planned) to change them? Not by default, but it's possible to have additional voices if converted. I'm still exploring this and once I have something working I will start tying that in. 5) It'd be handy to be able to fetch metadata about the wave (num channels, > samples per second, etc...) Are the samples always a particular format? > (16bit, signed/unsigned, big/little endian) Currently they are always little endian. I haven't built big endian support in yet. It would be a simple matter to have getters for num channels, samples per second, etc so I will add them later this week. 6) Would you like some exports in oggvorbis so that TTS data can be pumped > striaght into an ogg/vorbis output file? That would be awesome! I was looking into doing mp3, but ogg/vorbis would be much better due to licensing issues. Thanks! -Jeremy -- --------------------------- Jeremy Johnstone http://www.jeremyjohnstone.com jsjohnst@php.net

« previous php.pecl.dev (#3438) next »