|
32 | 32 | }, |
33 | 33 | "tags": [ |
34 | 34 | { |
35 | | - "name": "streaming", |
| 35 | + "name": "realtime", |
36 | 36 | "description": "Streaming Speech-to-Text", |
37 | 37 | "externalDocs": { |
38 | 38 | "url": "https://www.assemblyai.com/docs/speech-to-text/streaming" |
|
58 | 58 | "sample_rate": { |
59 | 59 | "description": "The sample rate of the streamed audio", |
60 | 60 | "type": "integer", |
61 | | - "examples": [ |
62 | | - 16000 |
63 | | - ] |
| 61 | + "examples": [16000] |
64 | 62 | }, |
65 | 63 | "word_boost": { |
66 | 64 | "description": "Add up to 2500 characters of custom vocabulary.\nThe parameter value must be a JSON encoded array of strings.\n", |
67 | 65 | "type": "string", |
68 | | - "examples": [ |
69 | | - "[\"foo\",\"bar\"]" |
70 | | - ] |
| 66 | + "examples": ["[\"foo\",\"bar\"]"] |
71 | 67 | }, |
72 | 68 | "encoding": { |
73 | 69 | "description": "The encoding of the audio data", |
|
77 | 73 | "description": "Authenticate using a [generated temporary token](https://www.assemblyai.com/docs/speech-to-text/streaming#authenticate-with-a-temporary-token)\n", |
78 | 74 | "type": "string", |
79 | 75 | "format": "password", |
80 | | - "examples": [ |
81 | | - "eyJhbGciOiJIUzI1..." |
82 | | - ] |
| 76 | + "examples": ["eyJhbGciOiJIUzI1..."] |
83 | 77 | }, |
84 | 78 | "disable_partial_transcripts": { |
85 | 79 | "summary": "Disable partial transcripts", |
|
297 | 291 | "RealtimeBaseMessage": { |
298 | 292 | "type": "object", |
299 | 293 | "x-fern-sdk-group-name": "realtime", |
300 | | - "required": [ |
301 | | - "message_type" |
302 | | - ], |
| 294 | + "required": ["message_type"], |
303 | 295 | "properties": { |
304 | 296 | "message_type": { |
305 | 297 | "description": "Describes the type of the message", |
|
335 | 327 | "type": "object", |
336 | 328 | "x-fern-sdk-group-name": "realtime", |
337 | 329 | "additionalProperties": false, |
338 | | - "required": [ |
339 | | - "error" |
340 | | - ], |
| 330 | + "required": ["error"], |
341 | 331 | "properties": { |
342 | 332 | "error": { |
343 | 333 | "type": "string" |
|
363 | 353 | "RealtimeTranscriptType": { |
364 | 354 | "type": "string", |
365 | 355 | "x-fern-sdk-group-name": "realtime", |
366 | | - "enum": [ |
367 | | - "PartialTranscript", |
368 | | - "FinalTranscript" |
369 | | - ] |
| 356 | + "enum": ["PartialTranscript", "FinalTranscript"] |
370 | 357 | }, |
371 | 358 | "RealtimeTranscript": { |
372 | 359 | "x-fern-sdk-group-name": "realtime", |
|
389 | 376 | }, |
390 | 377 | { |
391 | 378 | "type": "object", |
392 | | - "required": [ |
393 | | - "message_type", |
394 | | - "session_id", |
395 | | - "expires_at" |
396 | | - ], |
| 379 | + "required": ["message_type", "session_id", "expires_at"], |
397 | 380 | "properties": { |
398 | 381 | "message_type": { |
399 | 382 | "description": "Describes the type of the message", |
|
434 | 417 | }, |
435 | 418 | { |
436 | 419 | "type": "object", |
437 | | - "required": [ |
438 | | - "message_type", |
439 | | - "audio_duration_seconds" |
440 | | - ], |
| 420 | + "required": ["message_type", "audio_duration_seconds"], |
441 | 421 | "properties": { |
442 | 422 | "message_type": { |
443 | 423 | "description": "Describes the type of the message", |
|
469 | 449 | }, |
470 | 450 | { |
471 | 451 | "type": "object", |
472 | | - "required": [ |
473 | | - "message_type" |
474 | | - ], |
| 452 | + "required": ["message_type"], |
475 | 453 | "properties": { |
476 | 454 | "message_type": { |
477 | 455 | "description": "Describes the type of the message", |
|
545 | 523 | }, |
546 | 524 | { |
547 | 525 | "type": "object", |
548 | | - "required": [ |
549 | | - "message_type" |
550 | | - ], |
| 526 | + "required": ["message_type"], |
551 | 527 | "properties": { |
552 | 528 | "message_type": { |
553 | 529 | "description": "Describes the type of message", |
|
604 | 580 | }, |
605 | 581 | { |
606 | 582 | "type": "object", |
607 | | - "required": [ |
608 | | - "message_type", |
609 | | - "punctuated", |
610 | | - "text_formatted" |
611 | | - ], |
| 583 | + "required": ["message_type", "punctuated", "text_formatted"], |
612 | 584 | "properties": { |
613 | 585 | "message_type": { |
614 | 586 | "description": "Describes the type of message", |
|
711 | 683 | "Word": { |
712 | 684 | "type": "object", |
713 | 685 | "x-fern-sdk-group-name": "realtime", |
714 | | - "required": [ |
715 | | - "start", |
716 | | - "end", |
717 | | - "confidence", |
718 | | - "text" |
719 | | - ], |
| 686 | + "required": ["start", "end", "confidence", "text"], |
720 | 687 | "properties": { |
721 | 688 | "start": { |
722 | 689 | "description": "Start time of the word in milliseconds", |
|
795 | 762 | "description": "Manually end an utterance", |
796 | 763 | "x-fern-sdk-group-name": "realtime", |
797 | 764 | "type": "object", |
798 | | - "required": [ |
799 | | - "force_end_utterance" |
800 | | - ], |
| 765 | + "required": ["force_end_utterance"], |
801 | 766 | "properties": { |
802 | 767 | "force_end_utterance": { |
803 | 768 | "description": "A boolean value to communicate that you wish to force the end of the utterance", |
|
815 | 780 | "description": "Configure the threshold for how long to wait before ending an utterance. Default is 700ms.", |
816 | 781 | "x-fern-sdk-group-name": "realtime", |
817 | 782 | "type": "object", |
818 | | - "required": [ |
819 | | - "end_utterance_silence_threshold" |
820 | | - ], |
| 783 | + "required": ["end_utterance_silence_threshold"], |
821 | 784 | "properties": { |
822 | 785 | "end_utterance_silence_threshold": { |
823 | 786 | "description": "The duration threshold in milliseconds", |
|
837 | 800 | "summary": "Terminate session", |
838 | 801 | "x-fern-sdk-group-name": "realtime", |
839 | 802 | "type": "object", |
840 | | - "required": [ |
841 | | - "terminate_session" |
842 | | - ], |
| 803 | + "required": ["terminate_session"], |
843 | 804 | "properties": { |
844 | 805 | "terminate_session": { |
845 | 806 | "description": "Set to true to end your streaming session forever", |
|
858 | 819 | "x-fern-sdk-group-name": "realtime", |
859 | 820 | "description": "The encoding of the audio data", |
860 | 821 | "default": "pcm_s16le", |
861 | | - "enum": [ |
862 | | - "pcm_s16le", |
863 | | - "pcm_mulaw" |
864 | | - ], |
| 822 | + "enum": ["pcm_s16le", "pcm_mulaw"], |
865 | 823 | "x-fern-enum": { |
866 | 824 | "pcm_s16le": { |
867 | 825 | "description": "PCM signed 16-bit little-endian", |
|
882 | 840 | } |
883 | 841 | } |
884 | 842 | }, |
885 | | - "examples": [ |
886 | | - "pcm_s16le", |
887 | | - "pcm_mulaw" |
888 | | - ] |
| 843 | + "examples": ["pcm_s16le", "pcm_mulaw"] |
889 | 844 | } |
890 | 845 | }, |
891 | 846 | "securitySchemes": { |
|
0 commit comments