Skip to content

Commit b492f6a

Browse files
committed
Add js-yaml
1 parent 92a02e4 commit b492f6a

File tree

4 files changed

+705
-169
lines changed

4 files changed

+705
-169
lines changed

asyncapi.json

Lines changed: 65 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,23 @@
5454
},
5555
"query": {
5656
"type": "object",
57-
"required": ["sample_rate"],
57+
"required": [
58+
"sample_rate"
59+
],
5860
"properties": {
5961
"sample_rate": {
6062
"description": "The sample rate of the streamed audio",
6163
"type": "integer",
62-
"examples": [16000]
64+
"examples": [
65+
16000
66+
]
6367
},
6468
"word_boost": {
6569
"description": "Add up to 2500 characters of custom vocabulary.\nThe parameter value must be a JSON encoded array of strings. The JSON must be URL encoded like other query string parameters.\n",
6670
"type": "string",
67-
"examples": ["[\"foo\",\"bar\"]"]
71+
"examples": [
72+
"[\"foo\",\"bar\"]"
73+
]
6874
},
6975
"encoding": {
7076
"description": "The encoding of the audio data",
@@ -74,7 +80,9 @@
7480
"description": "Authenticate using a [generated temporary token](https://www.assemblyai.com/docs/speech-to-text/streaming#authenticate-with-a-temporary-token)\n",
7581
"type": "string",
7682
"format": "password",
77-
"examples": ["eyJhbGciOiJIUzI1..."]
83+
"examples": [
84+
"eyJhbGciOiJIUzI1..."
85+
]
7886
},
7987
"disable_partial_transcripts": {
8088
"summary": "Disable partial transcripts",
@@ -292,7 +300,9 @@
292300
"RealtimeBaseMessage": {
293301
"type": "object",
294302
"x-fern-sdk-group-name": "realtime",
295-
"required": ["message_type"],
303+
"required": [
304+
"message_type"
305+
],
296306
"properties": {
297307
"message_type": {
298308
"description": "Describes the type of the message",
@@ -328,7 +338,9 @@
328338
"type": "object",
329339
"x-fern-sdk-group-name": "realtime",
330340
"additionalProperties": false,
331-
"required": ["error"],
341+
"required": [
342+
"error"
343+
],
332344
"properties": {
333345
"error": {
334346
"type": "string"
@@ -354,7 +366,10 @@
354366
"RealtimeTranscriptType": {
355367
"type": "string",
356368
"x-fern-sdk-group-name": "realtime",
357-
"enum": ["PartialTranscript", "FinalTranscript"]
369+
"enum": [
370+
"PartialTranscript",
371+
"FinalTranscript"
372+
]
358373
},
359374
"RealtimeTranscript": {
360375
"x-fern-sdk-group-name": "realtime",
@@ -377,7 +392,11 @@
377392
},
378393
{
379394
"type": "object",
380-
"required": ["message_type", "session_id", "expires_at"],
395+
"required": [
396+
"message_type",
397+
"session_id",
398+
"expires_at"
399+
],
381400
"properties": {
382401
"message_type": {
383402
"description": "Describes the type of the message",
@@ -418,7 +437,10 @@
418437
},
419438
{
420439
"type": "object",
421-
"required": ["message_type", "audio_duration_seconds"],
440+
"required": [
441+
"message_type",
442+
"audio_duration_seconds"
443+
],
422444
"properties": {
423445
"message_type": {
424446
"description": "Describes the type of the message",
@@ -450,7 +472,9 @@
450472
},
451473
{
452474
"type": "object",
453-
"required": ["message_type"],
475+
"required": [
476+
"message_type"
477+
],
454478
"properties": {
455479
"message_type": {
456480
"description": "Describes the type of the message",
@@ -524,7 +548,9 @@
524548
},
525549
{
526550
"type": "object",
527-
"required": ["message_type"],
551+
"required": [
552+
"message_type"
553+
],
528554
"properties": {
529555
"message_type": {
530556
"description": "Describes the type of message",
@@ -581,7 +607,11 @@
581607
},
582608
{
583609
"type": "object",
584-
"required": ["message_type", "punctuated", "text_formatted"],
610+
"required": [
611+
"message_type",
612+
"punctuated",
613+
"text_formatted"
614+
],
585615
"properties": {
586616
"message_type": {
587617
"description": "Describes the type of message",
@@ -684,7 +714,12 @@
684714
"Word": {
685715
"type": "object",
686716
"x-fern-sdk-group-name": "realtime",
687-
"required": ["start", "end", "confidence", "text"],
717+
"required": [
718+
"start",
719+
"end",
720+
"confidence",
721+
"text"
722+
],
688723
"properties": {
689724
"start": {
690725
"description": "Start time of the word in milliseconds",
@@ -763,7 +798,9 @@
763798
"description": "Manually end an utterance",
764799
"x-fern-sdk-group-name": "realtime",
765800
"type": "object",
766-
"required": ["force_end_utterance"],
801+
"required": [
802+
"force_end_utterance"
803+
],
767804
"properties": {
768805
"force_end_utterance": {
769806
"description": "A boolean value to communicate that you wish to force the end of the utterance",
@@ -781,7 +818,9 @@
781818
"description": "Configure the threshold for how long to wait before ending an utterance. Default is 700ms.",
782819
"x-fern-sdk-group-name": "realtime",
783820
"type": "object",
784-
"required": ["end_utterance_silence_threshold"],
821+
"required": [
822+
"end_utterance_silence_threshold"
823+
],
785824
"properties": {
786825
"end_utterance_silence_threshold": {
787826
"description": "The duration threshold in milliseconds",
@@ -801,7 +840,9 @@
801840
"summary": "Terminate session",
802841
"x-fern-sdk-group-name": "realtime",
803842
"type": "object",
804-
"required": ["terminate_session"],
843+
"required": [
844+
"terminate_session"
845+
],
805846
"properties": {
806847
"terminate_session": {
807848
"description": "Set to true to end your streaming session forever",
@@ -820,7 +861,10 @@
820861
"x-fern-sdk-group-name": "realtime",
821862
"description": "The encoding of the audio data",
822863
"default": "pcm_s16le",
823-
"enum": ["pcm_s16le", "pcm_mulaw"],
864+
"enum": [
865+
"pcm_s16le",
866+
"pcm_mulaw"
867+
],
824868
"x-fern-enum": {
825869
"pcm_s16le": {
826870
"description": "PCM signed 16-bit little-endian",
@@ -841,7 +885,10 @@
841885
}
842886
}
843887
},
844-
"examples": ["pcm_s16le", "pcm_mulaw"]
888+
"examples": [
889+
"pcm_s16le",
890+
"pcm_mulaw"
891+
]
845892
}
846893
},
847894
"securitySchemes": {

0 commit comments

Comments
 (0)