Voice output with MS Speech API in Delphi

Submitted by:Pitter Alderson

Date added:02 May, 2011

Category:Delphi

A short and simple code snippet using voice output with Delphi

Tags: voice output , api in delphi

Code Snippet:

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

Comments