Skip to content

Commit 35d7794

Browse files
feat: update API specifications (#33)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent d046160 commit 35d7794

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

asyncapi.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ channels:
5151
Encoding allows you to specify the expected encoding of your audio
5252
output
5353
location: $message.payload#/encoding
54+
required: false
5455
default: mp3
5556
enum:
5657
- linear16
@@ -65,6 +66,7 @@ channels:
6566
model:
6667
description: AI model used to process submitted text
6768
location: $message.payload#/model
69+
required: false
6870
default: aura-asteria-en
6971
enum:
7072
- aura-asteria-en
@@ -87,6 +89,7 @@ channels:
8789
encoding 8000 or 24000 are possible defaults. For some encodings
8890
sample rate is not configurable.
8991
location: $message.payload#/sample_rate
92+
required: false
9093
default: '24000'
9194
enum:
9295
- '8000'
@@ -312,11 +315,13 @@ channels:
312315
callback:
313316
description: URL to which we'll make the callback request
314317
location: $message.payload#/callback
318+
required: false
315319
examples:
316320
- https://example.com
317321
callback_method:
318322
description: HTTP method by which the callback request will be made
319323
location: $message.payload#/callback_method
324+
required: false
320325
default: POST
321326
enum:
322327
- POST
@@ -331,6 +336,7 @@ channels:
331336
channels:
332337
description: The number of channels in the submitted audio
333338
location: $message.payload#/channels
339+
required: false
334340
default: '1'
335341
examples:
336342
- '1'
@@ -339,6 +345,7 @@ channels:
339345
Recognize speaker changes. Each word in the transcript will be
340346
assigned a speaker number starting at 0
341347
location: $message.payload#/diarize
348+
required: false
342349
default: 'false'
343350
enum:
344351
- 'true'
@@ -350,13 +357,15 @@ channels:
350357
Version of the diarization feature to use. Only used when the
351358
diarization feature is enabled (`diarize=true` is passed to the API)
352359
location: $message.payload#/diarize_version
360+
required: false
353361
default: v2
354362
examples:
355363
- v1
356364
- v2
357365
dictation:
358366
description: Identify and extract key entities from content in submitted audio
359367
location: $message.payload#/dictation
368+
required: false
360369
default: 'false'
361370
enum:
362371
- 'true'
@@ -366,6 +375,7 @@ channels:
366375
encoding:
367376
description: Specify the expected encoding of your submitted audio
368377
location: $message.payload#/encoding
378+
required: false
369379
enum:
370380
- linear16
371381
- flac
@@ -386,6 +396,7 @@ channels:
386396
with a speech_final parameter set to true. Can also be set to false to
387397
disable endpointing
388398
location: $message.payload#/endpointing
399+
required: false
389400
default: '10'
390401
examples:
391402
- '300'
@@ -395,13 +406,15 @@ channels:
395406
Arbitrary key-value pairs that are attached to the API response for
396407
usage in downstream processing
397408
location: $message.payload#/extra
409+
required: false
398410
examples:
399411
- key:value
400412
filler_words:
401413
description: >-
402414
Filler Words can help transcribe interruptions in your audio, like
403415
"uh" and "um"
404416
location: $message.payload#/filler_words
417+
required: false
405418
default: 'false'
406419
enum:
407420
- 'true'
@@ -415,6 +428,7 @@ channels:
415428
endpoint sends continuous updates, meaning transcription results may
416429
evolve over time
417430
location: $message.payload#/interim_results
431+
required: false
418432
default: 'false'
419433
enum:
420434
- 'true'
@@ -426,11 +440,13 @@ channels:
426440
Key term prompting can boost or suppress specialized terminology and
427441
brands. Only compatible with Nova-3
428442
location: $message.payload#/keyterm
443+
required: false
429444
examples:
430445
- Snuffleupagus
431446
keywords:
432447
description: Keywords can boost or suppress specialized terminology and brands
433448
location: $message.payload#/keywords
449+
required: false
434450
examples:
435451
- Twilio:2
436452
language:
@@ -439,6 +455,7 @@ channels:
439455
hints at the primary spoken language. Depending on the Model you
440456
choose only certain languages are available
441457
location: $message.payload#/language
458+
required: false
442459
default: en
443460
enum:
444461
- bg
@@ -502,6 +519,7 @@ channels:
502519
model:
503520
description: AI model to use for the transcription
504521
location: $message.payload#/model
522+
required: false
505523
enum:
506524
- nova-3
507525
- nova-3-general
@@ -538,6 +556,7 @@ channels:
538556
multichannel:
539557
description: Transcribe each audio channel independently
540558
location: $message.payload#/multichannel
559+
required: false
541560
default: 'false'
542561
enum:
543562
- 'true'
@@ -547,6 +566,7 @@ channels:
547566
numerals:
548567
description: Convert numbers from written format to numerical format
549568
location: $message.payload#/numerals
569+
required: false
550570
default: 'false'
551571
enum:
552572
- 'true'
@@ -559,6 +579,7 @@ channels:
559579
nearest recognized non-profane word or removes it from the transcript
560580
completely
561581
location: $message.payload#/profanity_filter
582+
required: false
562583
default: 'false'
563584
enum:
564585
- 'true'
@@ -568,6 +589,7 @@ channels:
568589
punctuate:
569590
description: Add punctuation and capitalization to the transcript
570591
location: $message.payload#/punctuate
592+
required: false
571593
default: 'false'
572594
enum:
573595
- 'true'
@@ -577,6 +599,7 @@ channels:
577599
redact:
578600
description: Redaction removes sensitive information from your transcripts
579601
location: $message.payload#/redact
602+
required: false
580603
default: 'false'
581604
enum:
582605
- 'true'
@@ -586,18 +609,21 @@ channels:
586609
replace:
587610
description: Search for terms or phrases in submitted audio and replaces them
588611
location: $message.payload#/replace
612+
required: false
589613
examples:
590614
- monika:Monica
591615
sample_rate:
592616
description: >-
593617
Sample rate of submitted audio. Required (and only read) when a value
594618
is provided for encoding
595619
location: $message.payload#/sample_rate
620+
required: false
596621
examples:
597622
- '8000'
598623
search:
599624
description: Search for terms or phrases in submitted audio
600625
location: $message.payload#/search
626+
required: false
601627
examples:
602628
- Deepgram
603629
- Text to Speech
@@ -606,6 +632,7 @@ channels:
606632
Apply formatting to transcript output. When set to true, additional
607633
formatting will be applied to transcripts to improve readability
608634
location: $message.payload#/smart_format
635+
required: false
609636
default: 'false'
610637
enum:
611638
- 'true'
@@ -617,6 +644,7 @@ channels:
617644
Label your requests for the purpose of identification during usage
618645
reporting
619646
location: $message.payload#/tag
647+
required: false
620648
examples:
621649
- my-team
622650
- marketing%20team
@@ -625,13 +653,15 @@ channels:
625653
Indicates how long Deepgram will wait to send an UtteranceEnd message
626654
after a word has been transcribed. Use with interim_results
627655
location: $message.payload#/utterance_end
656+
required: false
628657
examples:
629658
- '1000'
630659
vad_events:
631660
description: >-
632661
Indicates that speech has started. You'll begin receiving Speech
633662
Started messages upon speech starting
634663
location: $message.payload#/vad_events
664+
required: false
635665
default: 'false'
636666
enum:
637667
- 'true'
@@ -641,6 +671,7 @@ channels:
641671
version:
642672
description: Version of an AI model to use
643673
location: $message.payload#/version
674+
required: false
644675
default: latest
645676
examples:
646677
- MODEL_VERSION
@@ -1033,8 +1064,10 @@ channels:
10331064
formats
10341065
required:
10351066
- type
1067+
- audio
10361068
- agent
10371069
- think
1070+
- speak
10381071
properties:
10391072
type:
10401073
type: string

0 commit comments

Comments
 (0)