检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
POST https://iam.cn-north-4.myhuaweicloud.com/v3/auth/tokens Request Header: Content-Type: application/json Request Body: { "auth": {
POST https://{endpoint}/v1/{project_id}/tts Request Header: Content-Type: application/json X-Auth-Token: MIINRwYJKoZIhvcNAQcCoIINODCCDTQCAQExDTALBglghkgBZQMEAgEwgguVBgkqhkiG
application/json Content-Length POST/PUT请求必填。 GET不能包含。 请求body长度,单位为Byte。 3495 Upgrade 发送WebSocket握手请求时,包含该头域。
= "{\"data\":\"" + audioBody + "\", \"config\": { \"audio_format\": \"wav\", " + "\"property\":\"chinese_8k_common\"}}"; osw.append
调用语音合成API,将文本合称为语音,并调整语音的音色、语速、音高、音量 POST https://{endpoint}/v1/{project_id}/tts Request Header: Content-Type: application/json X-Auth-Token
删除热词表 DELETE https://{endpoint}/v1/{project_id}/asr/vocabularies/{vocabulary_id} Request Header: Content-Type: application/json X-Auth-Token
{\"data_url\":\"" + obsUrl + "\", \"config\": { \"audio_format\": \"auto\", " + "\"property\":\"chinese_8k_general\"}}"; osw.append
更新热词表 PUT https://{endpoint}/v1/{project_id}/asr/vocabularies/{vocabulary_id} Request Header: Content-Type: application/json X-Auth-Token: MIINRwYJKoZIhvcNAQcCoIINODCCDTQCAQExDTALBglghkgBZQMEAgEwgguVBgkqhkiG
查询热词表信息 GET https://{endpoint}/v1/{project_id}/asr/vocabularies/{vocabulary_id} Request Header: Content-Type: application/json X-Auth-Token:
获取热词表列表信息 GET https://{endpoint}/v1/{project_id}/asr/vocabularies Request Header: Content-Type: application/json X-Auth-Token: MIINRwYJKoZIhvcNAQcCoIINODCCDTQCAQExDTALBglghkgBZQMEAgEwgguVBgkqhkiG
config.set_proxy(proxy) hot_word_client = HotWordClient(ak, sk, region, project_id, sis_config=config) # option 1 创建热词表 word_list.append
创建热词表 POST https://{endpoint}/v1/{project_id}/asr/vocabularies Request Header: Content-Type: application/json X-Auth-Token: MIINRwYJKoZIhvcNAQcCoIINODCCDTQCAQExDTALBglghkgBZQMEAgEwgguVBgkqhkiG
' % len(message)) else: print(message) def _on_error(ws, error): print(error) ws = websocket.WebSocketApp
Increase this value appropriately according to the length of the text"); DEFINE_int32(connectTimeOut, 20000, "connecting time out, default 20s
ttsc_client.get_ttsc_response(ttsc_request) # use enterprise_project_Id # headers = {'Enterprise-Project-Id': 'your enterprise project id', 'Content-Type': 'application
org.springframework.web.bind.annotation.RestController; import java.util.List; @RestController public class CallbackController { @PostMapping
yes&vocabulary_id=4c111ee8-fbd6-4a73-941a-9f869c6c56f5&obs_bucket_name=test&obs_object_key=data/0601/test.wav Request Header: Content-Type: application
} def _on_message(ws, message): print(message) def _on_error(ws, error): print(error) ws = websocket.WebSocketApp
} def _on_message(ws, message): print(message) def _on_error(ws, error): print(error) ws = websocket.WebSocketApp
asr_client.get_short_response(asr_request) # use enterprise_project_Id # headers = {'Enterprise-Project-Id': 'your enterprise project id', 'Content-Type': 'application