Reputation: 4491
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
Reputation: 96333
Since Mac OS X 10.6, you can use the Speech Synthesis Manager to speak into a specific audio device.
Upvotes: 1