Skip to content

Commit

Permalink
Update voice ID across examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrgl committed Dec 12, 2024
1 parent 4d4258b commit 62af2ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fern/get-started/make-an-api-request.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ curl -N -X POST "https://api.cartesia.ai/tts/bytes" \
-H "Cartesia-Version: 2024-06-10" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"transcript": "Welcome to Cartesia Sonic!", "model_id": "sonic-english", "voice": {"mode":"id", "id": "a0e99841-438c-4a64-b679-ae501e7d6091"}, "output_format":{"container":"wav", "encoding":"pcm_f32le", "sample_rate":44100}}' > sonic.wav
-d '{"transcript": "Welcome to Cartesia Sonic!", "model_id": "sonic-english", "voice": {"mode":"id", "id": "694f9389-aac1-45b6-b726-9d9369183238"}, "output_format":{"container":"wav", "encoding":"pcm_f32le", "sample_rate":44100}}' > sonic.wav
```

<Warning>
Expand Down Expand Up @@ -82,7 +82,7 @@ client = Cartesia(api_key=os.environ.get("CARTESIA_API_KEY"))
data = client.tts.bytes(
model_id="sonic-english",
transcript="Hello, world! I'm generating audio on Cartesia.",
voice_id="a0e99841-438c-4a64-b679-ae501e7d6091", # Barbershop Man
voice_id="694f9389-aac1-45b6-b726-9d9369183238", # Barbershop Man
# You can find the supported `output_format`s at https://docs.cartesia.ai/api-reference/tts/bytes
output_format={
"container": "wav",
Expand Down

0 comments on commit 62af2ff

Please sign in to comment.