Delphi SAPI Text-To-Speech

前端 未结 2 839
旧巷少年郎
旧巷少年郎 2020-12-31 13:18

First of all: this is not a duplicate of Delphi and SAPI. I have a specific problem with the \"SAPI in Delphi\" subject.

I have used the excellent Import Type-Librar

2条回答
  •  渐次进展
    2020-12-31 13:59

    I was having the same problem in Delphi XE2. The Set8087CW(SavedCW or $4) solution presented in the question did not work for me. It merely replaced the division by zero exception with another floating point exception.

    What did work for me is this:

    SavedCW := Get8087CW;
    SetFPUExceptionMask([exInvalidOp, exDenormalized, exZeroDivide, exOverflow, exUnderflow, exPrecision]);
    SpVoice.Speak('All floating point exceptions disabled!', 0);
    Set8087CW(SavedCW);
    

提交回复
热议问题