Rik van Kekem via fpc-pascal said on Mon, 26 Jun 2023 16:12:06 +0200
>program Project1; >{$mode objfpc}{$H+} >uses > Classes, ComObj; >var > Voice: olevariant; >begin > Voice := CreateOLEObject('SAPI.SpVoice'); > Voice.Speak('I am speaking.', 0); > Voice.Speak('I am also speaking.', 0); >end. Where does one get ComObj? On my box this errored out with: speak.pas(4,12) Fatal: Can't find unit ComObj used by Project1 By the way, when pasting the Classes, ComObj line from your email and compiling, I got an error about a bad character. To get past it I had to re-type the command on a new line and then delete the pasted one. Thanks, SteveT Steve Litt Autumn 2022 featured book: Thriving in Tough Times http://www.troubleshooters.com/bookstore/thrive.htm _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal