@@ -324,6 +324,103 @@ def create_ai_translation_speech_with_http_info(self, body, **kwargs): # noqa:
324324 _request_timeout = params .get ('_request_timeout' ),
325325 collection_formats = collection_formats )
326326
327+ def create_ai_translation_utterance (self , body , ** kwargs ): # noqa: E501
328+ """create_ai_translation_utterance # noqa: E501
329+
330+ This method makes a synchronous HTTP request by default. To make an
331+ asynchronous HTTP request, please pass async_req=True
332+ >>> thread = api.create_ai_translation_utterance(body, async_req=True)
333+ >>> result = thread.get()
334+
335+ :param async_req bool
336+ :param CreateAITranslationUtteranceRequest body: (required)
337+ :return: CreateAITranslationUtteranceResponse
338+ If the method is called asynchronously,
339+ returns the request thread.
340+ """
341+ kwargs ['_return_http_data_only' ] = True
342+ if kwargs .get ('async_req' ):
343+ return self .create_ai_translation_utterance_with_http_info (body , ** kwargs ) # noqa: E501
344+ else :
345+ (data ) = self .create_ai_translation_utterance_with_http_info (body , ** kwargs ) # noqa: E501
346+ return data
347+
348+ def create_ai_translation_utterance_with_http_info (self , body , ** kwargs ): # noqa: E501
349+ """create_ai_translation_utterance # noqa: E501
350+
351+ This method makes a synchronous HTTP request by default. To make an
352+ asynchronous HTTP request, please pass async_req=True
353+ >>> thread = api.create_ai_translation_utterance_with_http_info(body, async_req=True)
354+ >>> result = thread.get()
355+
356+ :param async_req bool
357+ :param CreateAITranslationUtteranceRequest body: (required)
358+ :return: CreateAITranslationUtteranceResponse
359+ If the method is called asynchronously,
360+ returns the request thread.
361+ """
362+
363+ all_params = ['body' ] # noqa: E501
364+ all_params .append ('async_req' )
365+ all_params .append ('_return_http_data_only' )
366+ all_params .append ('_preload_content' )
367+ all_params .append ('_request_timeout' )
368+
369+ params = locals ()
370+ for key , val in six .iteritems (params ['kwargs' ]):
371+ if key not in all_params :
372+ raise TypeError (
373+ "Got an unexpected keyword argument '%s'"
374+ " to method create_ai_translation_utterance" % key
375+ )
376+ params [key ] = val
377+ del params ['kwargs' ]
378+ # verify the required parameter 'body' is set
379+ if self .api_client .client_side_validation and ('body' not in params or
380+ params ['body' ] is None ): # noqa: E501
381+ raise ValueError ("Missing the required parameter `body` when calling `create_ai_translation_utterance`" ) # noqa: E501
382+
383+ collection_formats = {}
384+
385+ path_params = {}
386+
387+ query_params = []
388+
389+ header_params = {}
390+
391+ form_params = []
392+ local_var_files = {}
393+
394+ body_params = None
395+ if 'body' in params :
396+ body_params = params ['body' ]
397+ # HTTP header `Accept`
398+ header_params ['Accept' ] = self .api_client .select_header_accept (
399+ ['application/json' ]) # noqa: E501
400+
401+ # HTTP header `Content-Type`
402+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
403+ ['application/json' ]) # noqa: E501
404+
405+ # Authentication setting
406+ auth_settings = ['volcengineSign' ] # noqa: E501
407+
408+ return self .api_client .call_api (
409+ '/CreateAITranslationUtterance/2025-01-01/vod/post/application_json/' , 'POST' ,
410+ path_params ,
411+ query_params ,
412+ header_params ,
413+ body = body_params ,
414+ post_params = form_params ,
415+ files = local_var_files ,
416+ response_type = 'CreateAITranslationUtteranceResponse' , # noqa: E501
417+ auth_settings = auth_settings ,
418+ async_req = params .get ('async_req' ),
419+ _return_http_data_only = params .get ('_return_http_data_only' ),
420+ _preload_content = params .get ('_preload_content' , True ),
421+ _request_timeout = params .get ('_request_timeout' ),
422+ collection_formats = collection_formats )
423+
327424 def delete_ai_translation_speech (self , body , ** kwargs ): # noqa: E501
328425 """delete_ai_translation_speech # noqa: E501
329426
@@ -1003,6 +1100,103 @@ def refresh_ai_translation_project_with_http_info(self, body, **kwargs): # noqa
10031100 _request_timeout = params .get ('_request_timeout' ),
10041101 collection_formats = collection_formats )
10051102
1103+ def remove_ai_translation_utterance (self , body , ** kwargs ): # noqa: E501
1104+ """remove_ai_translation_utterance # noqa: E501
1105+
1106+ This method makes a synchronous HTTP request by default. To make an
1107+ asynchronous HTTP request, please pass async_req=True
1108+ >>> thread = api.remove_ai_translation_utterance(body, async_req=True)
1109+ >>> result = thread.get()
1110+
1111+ :param async_req bool
1112+ :param RemoveAITranslationUtteranceRequest body: (required)
1113+ :return: RemoveAITranslationUtteranceResponse
1114+ If the method is called asynchronously,
1115+ returns the request thread.
1116+ """
1117+ kwargs ['_return_http_data_only' ] = True
1118+ if kwargs .get ('async_req' ):
1119+ return self .remove_ai_translation_utterance_with_http_info (body , ** kwargs ) # noqa: E501
1120+ else :
1121+ (data ) = self .remove_ai_translation_utterance_with_http_info (body , ** kwargs ) # noqa: E501
1122+ return data
1123+
1124+ def remove_ai_translation_utterance_with_http_info (self , body , ** kwargs ): # noqa: E501
1125+ """remove_ai_translation_utterance # noqa: E501
1126+
1127+ This method makes a synchronous HTTP request by default. To make an
1128+ asynchronous HTTP request, please pass async_req=True
1129+ >>> thread = api.remove_ai_translation_utterance_with_http_info(body, async_req=True)
1130+ >>> result = thread.get()
1131+
1132+ :param async_req bool
1133+ :param RemoveAITranslationUtteranceRequest body: (required)
1134+ :return: RemoveAITranslationUtteranceResponse
1135+ If the method is called asynchronously,
1136+ returns the request thread.
1137+ """
1138+
1139+ all_params = ['body' ] # noqa: E501
1140+ all_params .append ('async_req' )
1141+ all_params .append ('_return_http_data_only' )
1142+ all_params .append ('_preload_content' )
1143+ all_params .append ('_request_timeout' )
1144+
1145+ params = locals ()
1146+ for key , val in six .iteritems (params ['kwargs' ]):
1147+ if key not in all_params :
1148+ raise TypeError (
1149+ "Got an unexpected keyword argument '%s'"
1150+ " to method remove_ai_translation_utterance" % key
1151+ )
1152+ params [key ] = val
1153+ del params ['kwargs' ]
1154+ # verify the required parameter 'body' is set
1155+ if self .api_client .client_side_validation and ('body' not in params or
1156+ params ['body' ] is None ): # noqa: E501
1157+ raise ValueError ("Missing the required parameter `body` when calling `remove_ai_translation_utterance`" ) # noqa: E501
1158+
1159+ collection_formats = {}
1160+
1161+ path_params = {}
1162+
1163+ query_params = []
1164+
1165+ header_params = {}
1166+
1167+ form_params = []
1168+ local_var_files = {}
1169+
1170+ body_params = None
1171+ if 'body' in params :
1172+ body_params = params ['body' ]
1173+ # HTTP header `Accept`
1174+ header_params ['Accept' ] = self .api_client .select_header_accept (
1175+ ['application/json' ]) # noqa: E501
1176+
1177+ # HTTP header `Content-Type`
1178+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
1179+ ['application/json' ]) # noqa: E501
1180+
1181+ # Authentication setting
1182+ auth_settings = ['volcengineSign' ] # noqa: E501
1183+
1184+ return self .api_client .call_api (
1185+ '/RemoveAITranslationUtterance/2025-01-01/vod/post/application_json/' , 'POST' ,
1186+ path_params ,
1187+ query_params ,
1188+ header_params ,
1189+ body = body_params ,
1190+ post_params = form_params ,
1191+ files = local_var_files ,
1192+ response_type = 'RemoveAITranslationUtteranceResponse' , # noqa: E501
1193+ auth_settings = auth_settings ,
1194+ async_req = params .get ('async_req' ),
1195+ _return_http_data_only = params .get ('_return_http_data_only' ),
1196+ _preload_content = params .get ('_preload_content' , True ),
1197+ _request_timeout = params .get ('_request_timeout' ),
1198+ collection_formats = collection_formats )
1199+
10061200 def start_execution (self , body , ** kwargs ): # noqa: E501
10071201 """start_execution # noqa: E501
10081202
0 commit comments