문제

I want to send a SSML for TTS synthesis.

I try to make the call on the TTS Client application:

CComPtr<ISpVoice> pVoice;
pVoice->Speak(ssml, SPF_ASYNC | SPF_PARSE_SSML, NULL);

This is the correct way for synthesis a SSML?

I'm implementing the SAPI Voice too.

I implement the following interfaces: ISpTTSEngine, ISpObjectWithToken. But when I send with the flag SPF_PARSE_SSML set, the ISpObjectWithToken::SetObjectToken is called, but the ISpTTSEngine::Speak isn't show!

My implementation is similar to this tutorial: http://www.codeproject.com/Articles/6190/Creating-Microsoft-SAPI-Compliant-Application-s

도움이 되었습니까?

해결책

There was two problems.

SAPI doesn't accepts SSML. It's support SSML tags. I cannot send a full SSML.

Using SPF_PARSE_SSML doesn't means that the Speak action will be done.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top