mirror of
https://github.com/VinciGit00/Scrapegraph-ai.git
synced 2026-06-23 21:00:30 +08:00
fix: update openai tts class
This commit is contained in:
parent
e7af5ead59
commit
10672d6ebb
@ -21,7 +21,8 @@ class OpenAITextToSpeech:
|
||||
def __init__(self, tts_config: dict):
|
||||
|
||||
# convert model_name to model
|
||||
self.client = OpenAI(api_key=tts_config.get("api_key"))
|
||||
self.client = OpenAI(api_key=tts_config.get("api_key"),
|
||||
base_url=tts_config.get("base_url", None))
|
||||
self.model = tts_config.get("model", "tts-1")
|
||||
self.voice = tts_config.get("voice", "alloy")
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user