mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 19:24:27 +00:00
docs on using vertex tts
This commit is contained in:
parent
225ff8432d
commit
8fada93fff
4 changed files with 36 additions and 25 deletions
11
litellm/proxy/tests/test_openai_tts_request.py
Normal file
11
litellm/proxy/tests/test_openai_tts_request.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
import openai
|
||||
|
||||
client = openai.OpenAI(api_key="sk-1234", base_url="http://0.0.0.0:4000")
|
||||
|
||||
# # request sent to model set on litellm proxy, `litellm --model`
|
||||
response = client.audio.speech.create(
|
||||
model="vertex-tts",
|
||||
input="the quick brown fox jumped over the lazy dogs",
|
||||
voice={"languageCode": "en-US", "name": "en-US-Studio-O"}, # type: ignore
|
||||
)
|
||||
print("response from proxy", response) # noqa
|
Loading…
Add table
Add a link
Reference in a new issue