[fpc-pascal] SpVoice.GetVoices returned exception class EOleSysError

Michael Van Canneyt michael at freepascal.org
Tue Apr 11 19:15:01 CEST 2017



On Sun, 9 Apr 2017, misabov wrote:

> The project has generated an exception class EOleSysError with a message:
> ???? ?????? ?? ??????. 
>
> uses
> ...,ComObj;
>
> var
> SpVoice: Variant;
>
> SpVoice := CreateOleObject('SAPI.SpVoice');
> SpVoice.Voice:= SpVoice.GetVoices('','').Item(0); 
>
> SpVoice GetVoices method (SAPI 5.3) cannot return  a selection of voices
> available to the voice.

That sounds like a problem of your OLE server, not of Pascal ?

Michael.



More information about the fpc-pascal mailing list