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

Add real-time encoding parameter #31

Merged
merged 1 commit into from
Dec 12, 2023
Merged
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
18 changes: 18 additions & 0 deletions asyncapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ channels:
type: string
examples:
- '["foo","bar"]'
encoding:
description: The encoding of the audio data
$ref: "#/components/schemas/AudioEncoding"
token:
description: "Authenticate using a [generated temporary token](https://www.assemblyai.com/docs/guides/real-time-streaming-transcription#creating-temporary-authentication-tokens)"
type: string
Expand Down Expand Up @@ -433,6 +436,21 @@ components:
additionalProperties: false
examples:
- { "terminate_session": true }
AudioEncoding:
type: string
description: The encoding of the audio data
default: pcm_s16le
enum:
- pcm_s16le
- pcm_mulaw
x-fern-enum:
pcm_s16le:
description: PCM signed 16-bit little-endian
pcm_mulaw:
description: PCM Mu-law
examples:
- 'pcm_s16le'
- 'pcm_mulaw'
securitySchemes:
ApiKey:
description: Authenticate using your AssemblyAI API key
Expand Down