Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doc update for supported sample rates and sonic model naming schemes #62

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 19 additions & 9 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 Expand Up @@ -295,7 +295,11 @@ types:
properties:
container: literal<"raw">
encoding: RawEncoding
sample_rate: integer
sample_rate:
type: integer
docs: |
Allowed values: 8000, 16000, 22050, 44100, 48000


WebSocketRequest:
discriminated: false
Expand Down Expand Up @@ -370,7 +374,10 @@ types:
RawOutputFormat:
properties:
encoding: RawEncoding
sample_rate: integer
sample_rate:
type: integer
docs: |
Allowed values: 8000, 16000, 22050, 44100, 48000

RawEncoding:
enum:
Expand All @@ -384,7 +391,10 @@ types:

MP3OutputFormat:
properties:
sample_rate: integer
sample_rate:
type: integer
docs: |
Allowed values: 8000, 16000, 22050, 44100, 48000
bit_rate:
type: integer
docs: |
Expand Down
Loading