Re: How to...
Re: How to...
- Subject: Re: How to...
- From: Quincey Morris <email@hidden>
- Date: Thu, 09 Aug 2012 15:37:13 -0700
On Aug 9, 2012, at 15:05 , Charlie Dickman <email@hidden> wrote:
> I tried the Speech Synthesizer Manager too. It suffers from the same deficiency that NSSpeechSynthesizer does. I suspect that NSSpeechSynthesizer uses the Speech Synthesis Manager internally.
One alternative, if you're targeting 10.7+, is to use XPC instead of NSTask. That would allow you to have 2 processes *and* control both ends with your own code. By sealing your use of NSSpeechSynthesizer in a separate XPC process, you can isolate the memory leak to the address space of a process that can and probably will terminate when idle. In addition, with XPC it should be fairly easy to control which part of your data is spoken and when.
At least, that would be the theory.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden