New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Member not found" error trying to change SAPI voice #13
Comments
Can we split the code to see where it is failing?
Please provide the full stack trace of the error, to see the line in Lua code that triggers the error. |
GetVoices and Item both work fine. You can see by doing On my machine e.g. this shows
I'll have to look into maybe different build options to get more stack trace. All I have right now is:
:/ |
Sorry. I should clarify. I did this before and the failure seems to be at
|
Great. Voice is a property. When you read the value of a property, one method is called. When you assign something to it, a different method is called. This is usually handled transparently, until it is not :) However, from what I could gather by using OleView (a tool that comes with Visual Studio, I think, that shows information about COM interfaces and so on), this should be handled correctly. This is the interface:
So, the 'Voice' property should work ok. Can you test if I would try the following: or |
By the way, which LuaCOM version are you using? Anyway, I feel that propputref is not supported by luacom. Does this work? |
And this works! Which is what I'll use. Thanks for that idea. I don't know that it closes the issue, but it solves my particular problem at least. |
It's great to hear that it worked 😌 From what I understand from the code (it's been years since I looked at it, though) is that the "set" in "setVoice" hints as to what to do with that function call (ie, strip the set prefix and treat Voice as a property). Dealing with properties directly is already supported (the Thanks a lot for the confirmation! |
Mimicing the invocation to change SAPI voice shown in https://msdn.microsoft.com/en-us/library/ms723614%28v=vs.85%29.aspx
Gives error
Thoughts on what might be wrong?
The text was updated successfully, but these errors were encountered: