Re: Direct NSSpeechSynthesizer output to buffer instead of file?
Re: Direct NSSpeechSynthesizer output to buffer instead of file?
- Subject: Re: Direct NSSpeechSynthesizer output to buffer instead of file?
- From: Alex Hall <email@hidden>
- Date: Thu, 06 Feb 2014 20:54:28 -0500
--
Have a great day,
Alex
email@hidden
On Feb 6, 2014, at 7:39 PM, Andrew Thompson <email@hidden> wrote:
> If you post to the speech-dev list you'll likely get a more detailed reply as Apple's TTS engineers hang out there.
Thank you, I didn't know that list even existed! That will indeed be a great resource.
>
> I believe it is possible to hook up the synthesizer as an Audio Unit and capture the output that way.
>
> A more basic approach would be to use the venerable UNIX mkfifo function to create a file which is really a pipe:
>
> http://linux.die.net/man/3/mkfifo
>
> Then you can direct the synthesizer to write down one end of it and read the other end to get the data without going via the disk.
That makes sense, and may avoid the need for a dedicated app if I can just write a script. Good idea, I'll have a look at this link.
>
> But really ask on the other list.
Most definitely!
>
>> On Feb 6, 2014, at 7:15 PM, Alex Hall <email@hidden> wrote:
>>
>> Hello again,
>> The NSSpeechSynthesizer can output speech to a sound output device or a file. However, I want to capture the output and store it as audio data, so I can string together multiple outputs and then save the whole thing to a file. I've looked, but the only link I found that might have offered this is full of deprecated functions. Is what I'm looking to do possible, or am I better off somehow re-loading all the outputted files and stitching them together after the fact? That just seems like a less graceful, more disk-intensive process than capturing the data in real-time and performing the manipulations then. Thanks!
>>
>> --
>> Have a great day,
>> Alex
>> email@hidden
>>
>>
>>
>> _______________________________________________
>>
>> 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
_______________________________________________
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