moka
moka

Reputation: 4491

Cocoa Speech Synthesis, save Audio to a buffer for use in OpenAL

I want to translate text to audio on osx similar as done here: http://developer.apple.com/library/mac/#samplecode/CocoaSpeechSynthesisExample/Introduction/Intro.html . After the sound is finished playing I would like to save it to a buffer for further use in openAL, is that possible?

The only way I see right now is to save the speech as an .aiff and then parse it again for openAL, it would be super great if there was a way which does not involve saving to the harddrive first. (I am also open for a carbon alternative)

Upvotes: 1

Views: 1034

Answers (1)

Peter Hosey
Peter Hosey

Reputation: 96333

Since Mac OS X 10.6, you can use the Speech Synthesis Manager to speak into a specific audio device.

Upvotes: 1

Related Questions