Skip to content

Commit

Permalink
Project import generated by Copybara.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: b5609d0297d6f7405b4b18670e6b19f17320a658
  • Loading branch information
AssemblyAI authored and Swimburger committed Dec 11, 2023
1 parent c0a36ef commit bec670e
Show file tree
Hide file tree
Showing 2 changed files with 93 additions and 4 deletions.
15 changes: 14 additions & 1 deletion asyncapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,15 @@ components:
schemas:
RealtimeBaseMessage:
type: object
x-fern-sdk-group-name: realtime
required:
- message_type
properties:
message_type:
description: Describes the type of the message
$ref: "#/components/schemas/MessageType"
RealtimeMessage:
x-fern-sdk-group-name: realtime
oneOf:
- $ref: "#/components/schemas/SessionBegins"
- $ref: "#/components/schemas/PartialTranscript"
Expand All @@ -133,6 +135,7 @@ components:
- $ref: "#/components/schemas/RealtimeError"
RealtimeError:
type: object
x-fern-sdk-group-name: realtime
additionalProperties: false
required: [error]
properties:
Expand All @@ -142,17 +145,21 @@ components:
- { "error": "Client sent audio too fast" }
MessageType:
type: string
x-fern-sdk-group-name: realtime
enum:
[SessionBegins, PartialTranscript, FinalTranscript, SessionTerminated]
RealtimeTranscriptType:
type: string
x-fern-sdk-group-name: realtime
enum: [PartialTranscript, FinalTranscript]
RealtimeTranscript:
x-fern-sdk-group-name: realtime
oneOf:
- $ref: "#/components/schemas/PartialTranscript"
- $ref: "#/components/schemas/FinalTranscript"
discriminator: "message_type"
SessionBegins:
x-fern-sdk-group-name: realtime
allOf:
- $ref: "#/components/schemas/RealtimeBaseMessage"
- type: object
Expand Down Expand Up @@ -182,6 +189,7 @@ components:
message_type: "SessionBegins",
}
SessionTerminated:
x-fern-sdk-group-name: realtime
allOf:
- $ref: "#/components/schemas/RealtimeBaseMessage"
- type: object
Expand All @@ -197,6 +205,7 @@ components:
- { message_type: "SessionTerminated" }
RealtimeBaseTranscript:
type: object
x-fern-sdk-group-name: realtime
required:
- audio_start
- audio_end
Expand Down Expand Up @@ -234,6 +243,7 @@ components:
x-fern-type: datetime
additionalProperties: false
PartialTranscript:
x-fern-sdk-group-name: realtime
allOf:
- $ref: "#/components/schemas/RealtimeBaseTranscript"
- type: object
Expand Down Expand Up @@ -276,8 +286,8 @@ components:
},
],
}

FinalTranscript:
x-fern-sdk-group-name: realtime
allOf:
- $ref: "#/components/schemas/RealtimeBaseTranscript"
- type: object
Expand Down Expand Up @@ -364,6 +374,7 @@ components:
}
Word:
type: object
x-fern-sdk-group-name: realtime
required:
- start
- end
Expand Down Expand Up @@ -398,6 +409,7 @@ components:
]
AudioData:
type: object
x-fern-sdk-group-name: realtime
required:
- audio_data
properties:
Expand All @@ -408,6 +420,7 @@ components:
examples:
- { audio_data: "Je8w9JH1hfh1+7EAeQYJCC0JbQkxB70Apv0J/GT5APjA9jX1v/..." }
TerminateSession:
x-fern-sdk-group-name: realtime
allOf:
- $ref: "#/components/schemas/RealtimeBaseMessage"
- type: object
Expand Down
Loading

0 comments on commit bec670e

Please sign in to comment.