Syntax
Parameters
type PartySynthesizeTextToSpeechType
应检索其配置文件的文本转语音操作类型。
profile PartyTextToSpeechProfile**library-allocated output, may return nullptr 输出的配置文件。如果没有为指定类型设置配置文件,则该配置文件可能为 nullptr。指针仅在下次调用 PartyManager::StartProcessingStateChanges() 之前有效。
Return value
PartyError 如果调用成功,则返回c_partyErrorSuccess;否则返回错误代码。可通过 PartyManager::GetErrorMessage() 检索错误代码的可读形式。
Remarks
如果尚未为指定类型的文本转语音操作成功配置任何配置文件,则检索到的配置文件将为 null。当通过 PartyManager::StartProcessingStateChanges() 提供与调用 SetTextToSpeechProfile()(为
type 指定了相同值)关联的 PartySetTextToSpeechProfileCompletedStateChange 时,检索到的配置文件将更新。
Requirements
Header: Party.hSee also
PartyLocalChatControlPartyLocalChatControl::SetTextToSpeechProfile
