Google

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;

1 comment:

Kiyat said...

how to change the language for SAPI?
its possible?