NSSpeechSynthesizer lazarus / 33-macOS - Mac OS X ---------------------------------------------------------------------- kogs · 2012-11-15 13:57 Aphasia - http://en.wikipedia.org/wiki/Aphasia NSSpeechSynthesizer - ? " uses   Classes, SysUtils, ------(?) " " procedure TBDoc.ButtonClick(ASender: TObject); var   ss : NSSpeechSynthesizer; begin showmessage('wewagawegea');   ss := NSSpeechSynthesizer.Create; - ?   ss.InitWithVoice('Hello world! How are you?'); - ? end;  "    kogs ---------------------------------------------------------------------- Phil · 2012-11-15 14:35 http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ ApplicationKit/Classes/NSSpeechSynthesizer_Class/Reference/Reference.h tml#//apple_ref/doc/uid/TP40004114 ---------------------------------------------------------------------- kogs · 2012-11-16 12:19 C++ - no pascal - yes Patent - http://www.cipa.org.uk/ 2005 - Aphasia Mac OS X kogs ---------------------------------------------------------------------- BigChimp · 2012-11-16 12:22 must post shorter ---------------------------------------------------------------------- jwdietrich · 2012-11-16 20:50 It is not easy to understand your posting. "Filler words" in terrestrial languages are of similar importance like "begin", "end" or ";" in Pascal. I assume that you want to use the text to speech capabilities of Mac OS X from Lazarus / Free Pascal. The probably simplest way to do this is by writing: Code: [Select]var   s: longint; begin   s := Shell('osascript -e ''say "Hello world! How are you?"'''); end; The small demo application in the attachment implements this method in a flexible way. ---------------------------------------------------------------------- kogs · 2012-11-17 07:22 OK, OK, OK, etc. ---------------------------------------------------------------------- jwdietrich · 2012-11-17 19:33 I just learned from BigChimp that shell is deprecated and to be replaced by fpSystem (see thread http://www.lazarus.freepascal.org/index.php/topic,8962.msg107253/). Although Shell is still supported in Lazarus 1.0.2 it might be advisable to replace the code by Code: [Select]var   s: longint; begin   s := fpSystem('osascript -e ''say "Hello world! How are you?"'''); end; A new version of the demo application is attached. ---------------------------------------------------------------------- kogs · 2012-11-18 13:58 ok