From ab82df816c6b6311dfe3773bb112b14311450946 Mon Sep 17 00:00:00 2001 From: slava Date: Wed, 29 Nov 2006 08:06:10 +0000 Subject: [PATCH] Fix speech demo --- demos/cocoa/speech.factor | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/demos/cocoa/speech.factor b/demos/cocoa/speech.factor index f2e60cc877..34afd4086f 100644 --- a/demos/cocoa/speech.factor +++ b/demos/cocoa/speech.factor @@ -1,5 +1,7 @@ ! Copyright (C) 2006 Slava Pestov ! See http://factorcode.org/license.txt for BSD license. +IN: objc-classes +DEFER: NSSpeechSynthesizer IN: cocoa-speech USING: cocoa objc objc-classes kernel ; @@ -7,6 +9,7 @@ USING: cocoa objc objc-classes kernel ; "NSSpeechSynthesizer" f import-objc-class : say ( string -- ) - NSSpeechSynthesizer -> alloc f -> initWithVoice: swap -> startSpeakingString: drop ; + NSSpeechSynthesizer -> alloc f -> initWithVoice: swap + -> startSpeakingString: drop ; "Hello from Factor" say