Click here to Skip to main content
15,890,845 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a problem this COM function I can't know what the correct parameters are. I get bad notification from VS 2013. Program: speakBoard
Here is the picture about...: Link

C#
WAVEFORMATEX waveFORMATEX = new WAVEFORMATEX();
waveFORMATEX.wFormatTag = 1;
waveFORMATEX.nChannels = 1;
waveFORMATEX.nSamplesPerSec = 44100;
waveFORMATEX.wBitsPerSample = 16;
waveFORMATEX.nBlockAlign = 4;
waveFORMATEX.cbSize = 0;

SPVTEXTFRAG SPVtextFRAG = new SPVTEXTFRAG();
SPVtextFRAG.pTextStart = "one";
SPVtextFRAG.ulTextLen = 100;
SPVtextFRAG.ulTextSrcOffset = 0;



SpeakBoard1.STTTSEngine se;
Guid rguid = new Guid("ggg");
SpeakBoard1.ISpTTSEngineSite es;
se.Speak(255, ref rguid, ref waveFORMATEX, ref SPVtextFRAG, es);
Posted
Updated 13-Sep-15 4:03am
v4
Comments
Richard MacCutchan 13-Sep-15 12:23pm    
Where does this SpeakBoard class come from? What does the documentation say?
Roland-HE-C# 13-Sep-15 14:09pm    
It's an older program no COM definition but the VS 2013 lists it in COM Tab.
Richard MacCutchan 14-Sep-15 3:48am    
Without the documentation it's impossible to guess.
Sergey Alexandrovich Kryukov 13-Sep-15 12:33pm    
Why not just using System.Speech? What exactly do you want to achieve? Is is something not covered with System.Speech?
—SA
Roland-HE-C# 13-Sep-15 14:12pm    
Because I ran it and it does not sound HQ.
But the speakBoard gives better results than win sapi.


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900