ADC Home > Reference Library > Technical Q&As > Audio > Carbon >
Important: The information in this document is Not Recommended and should not be used for new development.
Current information on this Reference Library topic can be found here:
|
Q Is it possible to capture the output from
the Speech Synthesis Manager so I can save it to a file or modify
it? A There is no direct provision in the Speech Synthesis Manager for doing this; however, it is possible if you are willing to do it in a roundabout fashion. The Speech Synthesis Manager, via the This feature was designed so that the Speech Synthesis Manager could speak over the phone, but it is not limited to just talking over the phone. If you create a sound output component that saves the sounds played to it (either to memory or to a file), you can have the Speech Synthesis Manager speak to this sound output component and use it to capture the Speech Synthesis Manager's output. From here, you can do whatever you want with the captured sound. A DTS sample called AIFF-Writer is a sample sound output component that saves whatever sound is played through it to an AIFF file, so this is a good starting point for the sound output component. The Component Manager allows you to register a component from any resource file. Normally components are in separate files placed in the Extensions folder, but this is not a requirement. For instance, your component can reside in your application's resource fork rather than in a separate file. Furthermore, the Component Manager allows you to register a component locally so that it is available only to your application and the Mac OS. This ability allows for the stealthy use of the AIFF-Writer component (or any other component). The user does not ever have to know that you have installed your custom version of the AIFF-Writer component. You can install it, select it, use it, and unregister it--all without the user ever knowing that anything interesting happened.
Here is some sample code that shows how to install and use your custom sound output component with the Speech Synthesis Manager:
Further References[May 18 1998] |
|