Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
SayIt
Last Revision: | Version 1.0, 2006-08-04 Web Kit plug-in which speaks text passed via JavaScript |
Build Requirements: | Xcode 2.3 or later |
Runtime Requirements: | Mac OS X 10.4.7 or later |
This sample builds a Web Kit plug-in which reads text out loud using the Cocoa programmatic interface for speech. The text is passed from the host web page to the plug-in via JavaScript, thanks to the Objective-C WebScripting protocol. For more on scripting Web Kit plug-ins, see "Web Kit Plug-in Programming Topics" in the ADC Reference Library.
To install the built plug-in, place it in /Library/Internet Plug-Ins or ~/Library/Internet Plug-Ins and relaunch your favorite Web Kit-based browser.
Copyright © 2006 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2006-08-04