Thanks for the feedback!
On 1/23/06, Sara Golemon <pollita@xxxxxxx> 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@xxxxxxx
|