review: remove websocket_base_url
This commit is contained in:
@@ -503,7 +503,6 @@ class OpenAITTSService(TTSService):
|
|||||||
*,
|
*,
|
||||||
api_key: Optional[str] = None,
|
api_key: Optional[str] = None,
|
||||||
base_url: Optional[str] = None,
|
base_url: Optional[str] = None,
|
||||||
websocket_base_url: Optional[str] = None,
|
|
||||||
voice: str = "alloy",
|
voice: str = "alloy",
|
||||||
model: str = "gpt-4o-mini-tts",
|
model: str = "gpt-4o-mini-tts",
|
||||||
sample_rate: Optional[int] = None,
|
sample_rate: Optional[int] = None,
|
||||||
@@ -520,9 +519,7 @@ class OpenAITTSService(TTSService):
|
|||||||
self.set_model_name(model)
|
self.set_model_name(model)
|
||||||
self.set_voice(voice)
|
self.set_voice(voice)
|
||||||
self._instructions = instructions
|
self._instructions = instructions
|
||||||
self._client = AsyncOpenAI(
|
self._client = AsyncOpenAI(api_key=api_key, base_url=base_url)
|
||||||
api_key=api_key, base_url=base_url, websocket_base_url=websocket_base_url
|
|
||||||
)
|
|
||||||
|
|
||||||
def can_generate_metrics(self) -> bool:
|
def can_generate_metrics(self) -> bool:
|
||||||
return True
|
return True
|
||||||
|
|||||||
Reference in New Issue
Block a user