Skip to content

Commit d672c04

Browse files
SwimburgerAssemblyAI
andauthored
Sync from internal repo (2024/05/30) (#94)
* Project import generated by Copybara. GitOrigin-RevId: 70dd05883cc35898b7e10508c343aeadded792c4 * Undo undesired changes --------- Co-authored-by: AssemblyAI <[email protected]>
1 parent 27352db commit d672c04

File tree

8 files changed

+1901
-1336
lines changed

8 files changed

+1901
-1336
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# AssemblyAI API Spec
2+
23
## What is in this repository?
34

45
This repository contains
@@ -19,5 +20,6 @@ npm run-script lint
1920
We use Fern to generate some of the AssemblyAI SDKs.
2021

2122
Tagging a release on this repository will update the:
22-
- [Java SDK](https://github.com/AssemblyAI/assemblyai-java-sdk)
23-
- [Ruby SDK](https://github.com/AssemblyAI/assemblyai-ruby-sdk)
23+
24+
- [Java SDK](https://github.com/AssemblyAI/assemblyai-java-sdk)
25+
- [Ruby SDK](https://github.com/AssemblyAI/assemblyai-ruby-sdk)

asyncapi.json

Lines changed: 15 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,12 @@
5858
"sample_rate": {
5959
"description": "The sample rate of the streamed audio",
6060
"type": "integer",
61-
"examples": [
62-
16000
63-
]
61+
"examples": [16000]
6462
},
6563
"word_boost": {
6664
"description": "Add up to 2500 characters of custom vocabulary.\nThe parameter value must be a JSON encoded array of strings.\n",
6765
"type": "string",
68-
"examples": [
69-
"[\"foo\",\"bar\"]"
70-
]
66+
"examples": ["[\"foo\",\"bar\"]"]
7167
},
7268
"encoding": {
7369
"description": "The encoding of the audio data",
@@ -268,9 +264,7 @@
268264
"RealtimeBaseMessage": {
269265
"type": "object",
270266
"x-fern-sdk-group-name": "realtime",
271-
"required": [
272-
"message_type"
273-
],
267+
"required": ["message_type"],
274268
"properties": {
275269
"message_type": {
276270
"description": "Describes the type of the message",
@@ -302,9 +296,7 @@
302296
"type": "object",
303297
"x-fern-sdk-group-name": "realtime",
304298
"additionalProperties": false,
305-
"required": [
306-
"error"
307-
],
299+
"required": ["error"],
308300
"properties": {
309301
"error": {
310302
"type": "string"
@@ -329,10 +321,7 @@
329321
"RealtimeTranscriptType": {
330322
"type": "string",
331323
"x-fern-sdk-group-name": "realtime",
332-
"enum": [
333-
"PartialTranscript",
334-
"FinalTranscript"
335-
]
324+
"enum": ["PartialTranscript", "FinalTranscript"]
336325
},
337326
"RealtimeTranscript": {
338327
"x-fern-sdk-group-name": "realtime",
@@ -354,11 +343,7 @@
354343
},
355344
{
356345
"type": "object",
357-
"required": [
358-
"message_type",
359-
"session_id",
360-
"expires_at"
361-
],
346+
"required": ["message_type", "session_id", "expires_at"],
362347
"properties": {
363348
"message_type": {
364349
"description": "Describes the type of the message",
@@ -397,9 +382,7 @@
397382
},
398383
{
399384
"type": "object",
400-
"required": [
401-
"message_type"
402-
],
385+
"required": ["message_type"],
403386
"properties": {
404387
"message_type": {
405388
"description": "Describes the type of the message",
@@ -472,9 +455,7 @@
472455
},
473456
{
474457
"type": "object",
475-
"required": [
476-
"message_type"
477-
],
458+
"required": ["message_type"],
478459
"properties": {
479460
"message_type": {
480461
"description": "Describes the type of message",
@@ -530,11 +511,7 @@
530511
},
531512
{
532513
"type": "object",
533-
"required": [
534-
"message_type",
535-
"punctuated",
536-
"text_formatted"
537-
],
514+
"required": ["message_type", "punctuated", "text_formatted"],
538515
"properties": {
539516
"message_type": {
540517
"description": "Describes the type of message",
@@ -637,12 +614,7 @@
637614
"Word": {
638615
"type": "object",
639616
"x-fern-sdk-group-name": "realtime",
640-
"required": [
641-
"start",
642-
"end",
643-
"confidence",
644-
"text"
645-
],
617+
"required": ["start", "end", "confidence", "text"],
646618
"properties": {
647619
"start": {
648620
"description": "Start time of the word in milliseconds",
@@ -721,9 +693,7 @@
721693
"description": "Manually end an utterance",
722694
"x-fern-sdk-group-name": "realtime",
723695
"type": "object",
724-
"required": [
725-
"force_end_utterance"
726-
],
696+
"required": ["force_end_utterance"],
727697
"properties": {
728698
"force_end_utterance": {
729699
"description": "A boolean value to communicate that you wish to force the end of the utterance",
@@ -741,9 +711,7 @@
741711
"description": "Configure the threshold for how long to wait before ending an utterance. Default is 700ms.",
742712
"x-fern-sdk-group-name": "realtime",
743713
"type": "object",
744-
"required": [
745-
"end_utterance_silence_threshold"
746-
],
714+
"required": ["end_utterance_silence_threshold"],
747715
"properties": {
748716
"end_utterance_silence_threshold": {
749717
"description": "The duration threshold in milliseconds",
@@ -762,9 +730,7 @@
762730
"TerminateSession": {
763731
"x-fern-sdk-group-name": "realtime",
764732
"type": "object",
765-
"required": [
766-
"terminate_session"
767-
],
733+
"required": ["terminate_session"],
768734
"properties": {
769735
"terminate_session": {
770736
"description": "Set to true to end your streaming session forever",
@@ -783,10 +749,7 @@
783749
"x-fern-sdk-group-name": "realtime",
784750
"description": "The encoding of the audio data",
785751
"default": "pcm_s16le",
786-
"enum": [
787-
"pcm_s16le",
788-
"pcm_mulaw"
789-
],
752+
"enum": ["pcm_s16le", "pcm_mulaw"],
790753
"x-fern-enum": {
791754
"pcm_s16le": {
792755
"description": "PCM signed 16-bit little-endian",
@@ -807,10 +770,7 @@
807770
}
808771
}
809772
},
810-
"examples": [
811-
"pcm_s16le",
812-
"pcm_mulaw"
813-
]
773+
"examples": ["pcm_s16le", "pcm_mulaw"]
814774
}
815775
},
816776
"securitySchemes": {

0 commit comments

Comments
 (0)