(Page 9 of 17 in this chapter)
ttsPreprocessFile
Description
- Preprocesses text from files using the English E-mail Preprocessor.
Prototype
- DWORD ttsPreprocessFile(char* input_filename,
char* output_filename,
TTS_METHOD method)
- input_filename Pointer to a text input file.
- output_filename Pointer to a file that receives the
- processed text.
- method Preprocessing method.
- Valid methods include:
- TTS_METHOD_EMAIL_STRIP_HEADER
- TTS_METHOD_EMAIL_KEEP_HEADER
Return Values
Events
- None
Details
- This function preprocesses English text files. The E-mail Preprocessor interprets text input by expanding acronyms, providing missing punctuation, and (optionally) stripping message headers. You can use ttsPreprocessFile to preprocess text off-line before an instance of text-to-speech speaks it.
- Calls to ttsPreprocessFile must specify an input file and an output file (which cannot be the same). Text does not have to be read into buffers before ttsPreprocessFile processes it. However, text from the output file must be read into buffers before an open instance of text-to-speech can speak it.
- NaturalText preprocessing functions are synchronous and run on the host machine, not on a Diva daughterboards. These functions work with English text only.
- The two methods available for text preprocessing are:
See Also
- ttsPreprocess
(Page 9 of 17 in this chapter)
tech_support@nmss.com
Copyright © 1997, Natural MicroSystems, Inc. All rights
reserved.