简体   繁体   中英

Understanding Windows Speech API

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM