Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dsinghvi committed Jul 31, 2024
1 parent ef6a2fe commit 4430d1e
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions fern/openapi/asyncapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ channels:
subscribe:
message:
oneOf:
- $ref: "#/components/messages/VoiceEmbeddingResponse"
- $ref: "#/components/messages/WebSocketResponse"
- $ref: "#/components/messages/Error"
x-fern-examples:
- query-parameters:
Expand All @@ -46,7 +46,7 @@ channels:
value:
context_id: "happy-monkeys-fly"
model_id: "sonic-english"
transcript: "Hello, world! I'\''m generating audio on Cartesia."
transcript: "Hello, world! I'm generating audio on Cartesia."
duration: 180
voice:
mode: "id"
Expand All @@ -57,7 +57,7 @@ channels:
sample_rate: 8000
language: "en"
add_timestamps: false
- messageId: VoiceEmbeddingResponse
- messageId: WebSocketResponse
type: subscribe
value:
status_code: 206
Expand All @@ -76,10 +76,10 @@ components:
name: SessionSettings
payload:
"$ref": "#/components/schemas/StreamInputRequest"
VoiceEmbeddingResponse:
WebSocketResponse:
name: UserInput
payload:
"$ref": "#/components/schemas/VoiceEmbeddingResponse"
"$ref": "#/components/schemas/WebSocketResponse"
Error:
name: Error
payload:
Expand Down Expand Up @@ -165,16 +165,21 @@ components:
type: string
example: error in voice

VoiceEmbeddingResponse:
name: Voice Embedding
WebSocketResponse:
properties:
embedding:
type: array
items:
type: number
type:
type: string
done:
type: boolean
status-code:
type: number
step_time:
type: number
context_id:
type: string
data:
type: string
type: object
required:
- embedding

Voice:
type: object
Expand Down

0 comments on commit 4430d1e

Please sign in to comment.