|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
>> If this is a one time job instead of a packaged app, you may also want to consider /usr/bin/say (see the man page), which offers a lot of output options conveniently packaged. << I will give “say” a shot. I thought that rendered in real-time, which is one of my concerns. I need to be able to quickly as possible produce files for listening. >>The recommended API nowadays is to use the kSpeechOutputToFileURLProperty… I believe I understand. I will go and make it happen. Thank you, Waverly From: speech-dev-bounces+waverly.edwards=email@hidden [mailto:speech-dev-bounces+waverly.edwards=email@hidden] On Behalf Of Matthias Neeracher On May 18, 2011, at 21:45 , Edwards, Waverly wrote: I am looking to output just short of 1000 of pages of text to file. I have not decided if the outoput will be one file per page or one file per chapter. Are there any example of how to output speech to a file. The recommended API nowadays is to use the kSpeechOutputToFileURLProperty or kSpeechOutputToExtAudioFileProperty selectors to SetSpeechProperty(). Traditionally there are the soOutputToFileWithCFURL & soOutputToExtAudioFile selectors to SetSpeechInfo, as Jay Kreibich mentioned. The ...ToExtAudioFile variant gives a lot more control, but is more intricate to set up. If this is a one time job instead of a packaged app, you may also want to consider /usr/bin/say (see the man page), which offers a lot of output options conveniently packaged.
All of these methods will render faster than realtime. If you have a lot of cores and multiple output files, you can use separate processes (separate threads/channels alone will not suffice). MacinTalk uses up to 2 cores per process, so on an 8 core machine, you might be able to obtain another 4x speedup using separate processes.
The API to do so exists, but (at least in MacinTalk), it's not hooked up. You could always preprocess the string, replacing specific words with [[inpt PHON]]...[[inpt TEXT]] -- |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Speech-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
| References: | |
| >Speech output to file (From: "Edwards, Waverly" <email@hidden>) | |
| >Re: Speech output to file (From: Matthias Neeracher <email@hidden>) |
| Home | Archives | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2011 Apple Inc. All rights reserved.