PartyLocalChatControl::GetTextToSpeechProfile
从用于特定类型文本转语音操作的已成功完成的 SetTextToSpeechProfile() 操作中获取上一次配置的配置文件。
语法
PartyError GetTextToSpeechProfile(
PartySynthesizeTextToSpeechType type,
PartyTextToSpeechProfile** profile
)
参数
type
PartySynthesizeTextToSpeechType
应检索配置文件的文本到语音转换操作的类型。
profile
PartyTextToSpeechProfile**
库分配的输出,可能返回 nullptr
输出配置文件。 如果未为指定类型设置任何配置文件,则配置文件可能为 nullptr。 指针仅在下一次调用 PartyManager::StartProcessingStateChanges() 之前有效。
返回值
PartyError
如果调用成功,则为 c_partyErrorSuccess
,否则为错误代码。 可通过 PartyManager::GetErrorMessage() 检索错误代码的可读形式。
备注
如果尚未成功为指定类型的文本转语音操作配置文件,则检索到的配置文件将为 null。
当通过 PartyManager::StartProcessingStateChanges type
()提供与 SetTextToSpeechProfile() 的调用关联的PartySetTextToSpeechProfileCompletedStateChange时,检索到的配置文件将更新。
要求
标题: Party.h
另请参阅
PartyLocalChatControl
PartyLocalChatControl::SetTextToSpeechProfile