File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
zhipuai/api_resource/audio Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ def test_audio_speech(logging_conf):
1515 model = 'cogtts' ,
1616 input = '你好呀,欢迎来到智谱开放平台' ,
1717 voice = 'female' ,
18+ stream = False ,
1819 response_format = 'wav' ,
1920 )
2021 response .stream_to_file (speech_file_path )
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ def speech(
4646 sensitive_word_check : Optional [SensitiveWordCheckRequest ] | NotGiven = NOT_GIVEN ,
4747 request_id : str = None ,
4848 user_id : str = None ,
49+ stream : bool = False ,
4950 extra_headers : Headers | None = None ,
5051 extra_body : Body | None = None ,
5152 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
@@ -55,6 +56,7 @@ def speech(
5556 "model" : model ,
5657 "input" : input ,
5758 "voice" : voice ,
59+ "stream" : stream ,
5860 "response_format" : response_format ,
5961 "sensitive_word_check" : sensitive_word_check ,
6062 "request_id" : request_id ,
You can’t perform that action at this time.
0 commit comments