So, I have a program where I use SAPI like this:
ISpVoice * pVoice = NULL;
if (FAILED(::CoInitialize(NULL)))
{
return FALSE;
}
HRESULT hr = CoCreateInstance(CLSID_SpVoice, NULL, CLSCTX_ALL, IID_ISpVoice, (void **)&pVoice);
if( SUCCEEDED( hr ) )
{
hr = pVoice->Speak(L"I can talk!", SPF_IS_XML, NULL);
}
But I want to declare a variable and then have the sapi say them. How do I do that?
Thanks