Google
Showing posts with label API. Show all posts
Showing posts with label API. Show all posts

Sunday, March 11, 2007

use the Microsoft Speech API

uses Comobj;

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