SAPI : change Voice
Posted: Tue Jan 23, 2024 5:58 am
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
---
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
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
---
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