...use the Microsoft Speech API?

Author: Marco Parreira

Category: Multimedia

// Works on NT, 2k, XP, Win9x with SAPI SDK
// reference & Further examples: See links below!

uses Comobj;

procedure TForm1.Button1Click(Sender: TObject);
var
  
voice: OLEVariant;
begin
  
voice := CreateOLEObject('SAPI.SpVoice');
  voice.Speak('Hello World!', 0);
end;

 

printed from
www.swissdelphicenter.ch
developers knowledge base