Thema: Beep?

Einzelnen Beitrag anzeigen

Rollo62

Registriert seit: 15. Mär 2007
3.932 Beiträge
 
Delphi 12 Athens
 
#4

AW: Beep?

  Alt 20. Dez 2021, 17:50
Eine Möglichkeit wäre vielleicht noch, mit Grijjy TextToSpeech
https://blog.grijjy.com/2017/01/09/c...ext-to-speech/
Delphi-Quellcode:
procedure TFormMain.FormCreate(Sender: TObject);
begin
  FTextToSpeech := TgoTextToSpeech.Create;
  FTextToSpeech.OnAvailable := TextToSpeechAvailable;
  FTextToSpeech.OnSpeechStarted := TextToSpeechStarted;
  FTextToSpeech.OnSpeechFinished := TextToSpeechFinished;
end;

...

procedure NeedABeep;
begin
  FTextToSpeech.Speak( 'Piep' ); // :-D
end;
  Mit Zitat antworten Zitat