添加发音词典规则

向发音词典添加规则。如果已存在相同 string_to_replace 的规则,将会被替换。

路径参数

pronunciation_dictionary_idstring必需

发音词典的 ID

请求头

xi-api-keystring可选

请求

This endpoint expects an object.
ruleslist of objects必需

发音规则列表。规则可以是: 别名规则:{‘string_to_replace’: ‘a’, ‘type’: ‘alias’, ‘alias’: ‘b’, } 或音素规则:{‘string_to_replace’: ‘a’, ‘type’: ‘phoneme’, ‘phoneme’: ‘b’, ‘alphabet’: ‘ipa’ }

响应

成功响应

idstring

发音词典的 ID。

version_idstring

发音词典的版本 ID。

version_rules_numinteger

该版本发音词典中的规则数。

错误

422
Unprocessable Entity Error