Autor Beitrag
Tankard
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Administrator
Beiträge: 217
Erhaltene Danke: 96



BeitragVerfasst: Mo 27.09.10 12:53 
Hallo,

ich habe ein Problem mit SAPI 5.1. (speech library).
Nähere Infos gibt es dazu unter : www.blong.com/Confer...ch/SAPI51/SAPI51.htm

Nun zu meinem Problem. Wenn ich die Unit in meiner Entwichlungsumgebung aufrufe, dann funktioniert alles ganz normal und er quakt fröhlich ein: TEST

Rufe ich nun das kompilierte Projekt ohne meine Entwicklungsumgebung auf, gibt es statt der Soundausgabe TEST nur ein netten Fehler alla Division by zero.

Entwicklungsumgebung Delphi7.
Betriebsystem: Windows 7 Ultimate

Hat das Problem noch jemand ?

Kompilierte EXE liegt bei.

ausblenden volle Höhe Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, OleServer, SpeechLib_TLB;

type
  TForm1 = class(TForm)
    SpVoice1: TSpVoice;
    Button1: TButton;
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
begin
  spvoice1.Speak('Test', SVSFNLPSpeakPunc)
end;

end.
Einloggen, um Attachments anzusehen!