Version: 1.0

Posted: 2006-08-04

Build Requirements: Xcode 2.3 or later

Runtime Requirements: Mac OS X 10.4.7 or later

View Source Code:

Download Sample (“SayIt.zip”, 17.5K)
Download Sample (“SayIt.dmg”, 73.3K)



Description

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.

Document Revision History

Date Notes
2006-08-04Web Kit plug-in which speaks text passed via JavaScript

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.