SAPI : change Voice
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
hi.
i try to change "Voice" of Sapi.SPVoice
"Voice"is a Property of SPVoice and use ISpeechObjectTokens object as Parameter
ISpeechObjectTokens object just have Method Item and Property COUNT
![Image](https://i.postimg.cc/C5YWW4KS/SP-Voice-Item.png)
---
but when i try
i got Error
i also try SetVoice()
but it seem me another Interface ...
Question : do i need to CoCreateInstance those Interface![Question :?:](./images/smilies/icon_question.gif)
i try to change "Voice" of Sapi.SPVoice
"Voice"is a Property of SPVoice and use ISpeechObjectTokens object as Parameter
ISpeechObjectTokens object just have Method Item and Property COUNT
![Image](https://i.postimg.cc/C5YWW4KS/SP-Voice-Item.png)
---
but when i try
- Code: Select all Expand view
- oVoices:Voice := oVoices:GetVoices():Item(cnVar -1)
i got Error
Error description: (DOS Error -2147352573) WINOLE/1006 Argument error: _VOICE
Args:
[ 1] = O
-2147352573 : "Member not found."
i also try SetVoice()
Error description: (DOS Error -2147352570) WINOLE/1009 No exported method: SETVOICE
-2147352570 : "Unknown name."
but it seem me another Interface ...
Question : do i need to CoCreateInstance those Interface
![Question :?:](./images/smilies/icon_question.gif)