Hi Steve,
I managed implementing the COM IStream (OutboundAudioStream) where I defined the basic read, write and seek. I am having trouble how to wrap around http_response stream. I looked at the source code and I got a bit lost.
In other words something like:
Pedro
I managed implementing the COM IStream (OutboundAudioStream) where I defined the basic read, write and seek. I am having trouble how to wrap around http_response stream. I looked at the source code and I got a bit lost.
In other words something like:
CComObject<OutboundAudioStream> *pAudioOut = NULL;
if (SUCCEEDED(hr = CComObject<OutboundAudioStream>::CreateInstance(&pAudioOut)))
{
pVoice->SetOutput(pAudioOut, FALSE);
pVoice->Speak(text.c_str(), 0, NULL);
web::http::http_response response(web::http::status_codes::OK);
response.set_body(?????, L"audio/vnd.wave");
request.reply(response);
}
Thanks,Pedro