[fpc-pascal] Playing with SpVoice (ole object)

surin_bp at mail.ru surin_bp at mail.ru
Mon May 12 09:22:00 CEST 2008


Joao Morais wrote:
>   s := 'hello world';
>   vsound.speak(s);

> speaks using a literal but says randomic words (sometimes says nothing) 
> using a variable. Is there something that I am missing?

You should use a variable of type WideString:
VAR
  S: WideString;
....
And all will be good
-------------
Best regards
Boriss




More information about the fpc-pascal mailing list