boys,程序比较多,不知发哪个.
uses VtxtAuto_TLB;
var mySpeech:VTxtAuto_;
procedure TForm1.FormCreate(Sender: TObject);
begin
mySpeech:=CoVTxtAuto_.Create;
mySpeech.Register('','Cread');{注册}
end;
下面是调用:
mySpeech.Speed:=150;
mySpeech.Speak(s1,30);
注:这段代码,放在新的程序中,一切正常,但我到我现在的那个程序中,总是不过.我现在的开程文件如下:
program CMainF;
uses
Forms,
MainF in 'MainF.pas' {MainForm},
OneForm in 'OneForm.pas' {FirstForm},
tryabout in 'tryabout.pas' {Aboutme},
Ckselect in 'Ckselect.pas' {form1},
flashread in 'flashread.pas' {Form3},
wzf in 'wzf.pas' {frmwzf},
starttest in 'starttest.pas' {frmtest},
testok in 'testok.pas' {test},
yinbiao in 'yinbiao.pas' {fyb},
pjdts in 'pjdts.pas' {jdts},
helpf in 'helpf.pas' {helpform};
{$R *.res}
begin
FirstForm:=TFirstForm.Create(Application);
FirstForm.Show;
FirstForm.Update;
Application.CreateForm(TMainForm, MainForm);
Application.CreateForm(Thelpform, helpform);
jdts:=tjdts.Create(application);
jdts.Show;
jdts.Update;
Application.CreateForm(TAboutme, Aboutme);
Application.CreateForm(TForm1, Form1);
Application.CreateForm(TForm3, Form3);
Application.CreateForm(Tfrmwzf, frmwzf);
Application.CreateForm(Tfrmtest, frmtest);
Application.CreateForm(Ttest, test);
Application.CreateForm(Tfyb, fyb);
FirstForm.Hide;
FirstForm.Free;
Application.Run;
end.