1 ! Copyright (C) 2006 Slava Pestov
2 ! See http://factorcode.org/license.txt for BSD license.
4 DEFER: NSSpeechSynthesizer
7 USING: cocoa objc objc-classes kernel ;
9 "NSSpeechSynthesizer" f import-objc-class
12 NSSpeechSynthesizer -> alloc f -> initWithVoice: swap
13 <NSString> -> startSpeakingString: drop ;
15 "Hello from Factor" say