Skip to content

Commit 1f91427

Browse files
authored
Merge pull request #31 from lengjiayi/qwen_omni
[Fix] list[Object] not support python 3.8
2 parents 3e2d13c + 4f059ae commit 1f91427

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

dashscope/audio/qwen_omni/omni_realtime.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import platform
55
import threading
66
import time
7+
from typing import List
78
import uuid
89
from enum import Enum, unique
910

@@ -169,7 +170,7 @@ def __send_str(self, data: str, enable_log: bool = True):
169170
self.ws.send(data)
170171

171172
def update_session(self,
172-
output_modalities: list[MultiModality],
173+
output_modalities: List[MultiModality],
173174
voice: str,
174175
input_audio_format: AudioFormat = AudioFormat.
175176
PCM_16000HZ_MONO_16BIT,
@@ -295,7 +296,7 @@ def clear_appended_audio(self, ) -> None:
295296

296297
def create_response(self,
297298
instructions: str = None,
298-
output_modalities: list[MultiModality] = None) -> None:
299+
output_modalities: List[MultiModality] = None) -> None:
299300
'''
300301
create response, use audio and video commited before to request llm.
301302
When in Server VAD mode, the client does not need to use this method,

0 commit comments

Comments
 (0)