Skip to content

Commit

Permalink
update model names (#87)
Browse files Browse the repository at this point in the history
"sonic-english" -> "sonic" where appropriate
  • Loading branch information
noahlt authored Feb 19, 2025
1 parent 9b9af88 commit 424447d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions fern/definition/tts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ service:
examples:
- name: MP3
request:
model_id: "sonic-english"
model_id: "sonic"
transcript: "Hello, world!"
voice:
mode: "id"
Expand All @@ -29,7 +29,7 @@ service:
bit_rate: 128000
- name: WAV
request:
model_id: "sonic-english"
model_id: "sonic"
transcript: "Hello, world!"
voice:
mode: "id"
Expand All @@ -41,7 +41,7 @@ service:
encoding: "pcm_f32le"
- name: RAW
request:
model_id: "sonic-english"
model_id: "sonic"
transcript: "Hello, world!"
voice:
mode: "id"
Expand All @@ -63,7 +63,7 @@ service:
examples:
- name: SSE
request:
model_id: "sonic-english"
model_id: "sonic"
transcript: "Hello, world!"
voice:
mode: "id"
Expand Down Expand Up @@ -133,7 +133,7 @@ channel:
messages:
- type: send
body:
model_id: "sonic-english"
model_id: "sonic"
transcript: "Hello, world! I'm generating audio on "
voice:
mode: "id"
Expand All @@ -148,7 +148,7 @@ channel:
continue: true
- type: send
body:
model_id: "sonic-english"
model_id: "sonic"
transcript: "Cartesia! Look, we did a continuation of the previous generation!"
voice:
mode: "id"
Expand Down
6 changes: 3 additions & 3 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": "694f9389-aac1-45b6-b726-9d9369183238"}, "output_format":{"container":"wav", "encoding":"pcm_f32le", "sample_rate":44100}}' > sonic.wav
-d '{"transcript": "Welcome to Cartesia Sonic!", "model_id": "sonic", "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 @@ -80,7 +80,7 @@ if os.environ.get("CARTESIA_API_KEY") is None:
client = Cartesia(api_key=os.environ.get("CARTESIA_API_KEY"))

data = client.tts.bytes(
model_id="sonic-english",
model_id="sonic",
transcript="Hello, world! I'm generating audio on Cartesia.",
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
Expand Down Expand Up @@ -149,7 +149,7 @@ const client = new CartesiaClient({

// Make the API call.
const response = await client.tts.bytes({
modelId: "sonic-english",
modelId: "sonic",
voice: {
mode: "id",
id: "694f9389-aac1-45b6-b726-9d9369183238",
Expand Down
2 changes: 1 addition & 1 deletion fern/integrate-with-sonic/twilio.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ In the script, you'll find a configuration section for Cartesia TTS. Make sure t
```javascript
const TTS_WEBSOCKET_URL = `wss://api.cartesia.ai/tts/websocket?api_key=${config.CARTESIA_API_KEY}&cartesia_version=2024-06-10`;
const modelId = 'sonic-english';
const modelId = 'sonic';
const voice = {
'mode': 'id',
'id': "VOICE_ID" // You can check available voices using the Cartesia API or at https://play.cartesia.ai
Expand Down

0 comments on commit 424447d

Please sign in to comment.