Skip to content

Commit

Permalink
Project import generated by Copybara. (#50)
Browse files Browse the repository at this point in the history
GitOrigin-RevId: cf36446ac9372bea9b9e26a71a4e0ce047a18752

Co-authored-by: AssemblyAI <[email protected]>
  • Loading branch information
Swimburger and AssemblyAI authored Feb 9, 2024
1 parent 678377b commit ea7e940
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 3 deletions.
3 changes: 3 additions & 0 deletions asyncapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ components:
type: string
pattern: '^(?:(\d{4}-\d{2}-\d{2})T(\d{2}:\d{2}:\d{2}(?:\.\d+)?))$'
x-fern-type: datetime
x-ts-type: Date
additionalProperties: false
examples:
- {
Expand Down Expand Up @@ -244,6 +245,7 @@ components:
type: string
pattern: '^(?:(\d{4}-\d{2}-\d{2})T(\d{2}:\d{2}:\d{2}(?:\.\d+)?))$'
x-fern-type: datetime
x-ts-type: Date
additionalProperties: false
PartialTranscript:
x-fern-sdk-group-name: realtime
Expand Down Expand Up @@ -415,6 +417,7 @@ components:
format: binary
description: Binary audio data
x-fern-sdk-group-name: realtime
x-ts-type: ArrayBufferLike
TerminateSession:
x-fern-sdk-group-name: realtime
allOf:
Expand Down
4 changes: 2 additions & 2 deletions fern/fern.config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"organization": "assemblyai",
"version": "0.16.39"
}
"version": "0.17.3"
}
3 changes: 3 additions & 0 deletions fern/generators.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ groups:
config:
clientClassName: AssemblyAI
gemName: assemblyai
smart-casing: true
csharp-sdk:
generators:
- name: fernapi/fern-csharp-sdk
Expand All @@ -33,6 +34,7 @@ groups:
mode: pull-request
config:
client-class-name: AssemblyAI
smart-casing: true
java-sdk:
generators:
- name: fernapi/fern-java-sdk
Expand All @@ -50,3 +52,4 @@ groups:
client-class-name: AssemblyAI
custom-dependencies:
- "implementation javax.websocket:javax.websocket-api:1.1"
smart-casing: true
40 changes: 40 additions & 0 deletions openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -880,6 +880,13 @@ components:
type: object
additionalProperties: false
properties:
speech_model:
description: The speech model to use for the transcription. When `null`, the default model is used.
default: null
oneOf:
- $ref: "#/components/schemas/SpeechModel"
- type: "null"

language_code:
description: |
The language of your audio file. Possible values are found in [Supported Languages](https://www.assemblyai.com/docs/concepts/supported-languages).
Expand Down Expand Up @@ -1047,6 +1054,7 @@ components:
type: string
example:
{
speech_model: null,
language_code: "en_us",
punctuate: true,
format_text: true,
Expand Down Expand Up @@ -1098,6 +1106,7 @@ components:
type: string
example:
{
speech_model: null,
language_code: "en_us",
audio_url: "https://github.com/AssemblyAI-Examples/audio-examples/raw/main/20230607_me_canadian_wildfires.mp3",
punctuate: true,
Expand Down Expand Up @@ -1353,6 +1362,13 @@ components:
enum:
- mp3
- wav
x-fern-enum:
mp3:
name: MP3
description: MP3 audio format is lower quality and lower size than WAV.
wav:
name: WAV
description: WAV audio format is the highest quality (no compression) and larger size than MP3.
example:
"mp3"

Expand Down Expand Up @@ -1388,6 +1404,17 @@ components:
- drivers_license
- banking_information

SpeechModel:
type: string
description: The speech model to use for the transcription.
x-fern-sdk-group-name: transcripts
enum:
- nano
x-fern-enum:
nano:
name: Nano
description: The Nano tier is a lightweight model that is optimized for speed and cost.

TranscriptLanguageCode:
type: string
description: |
Expand Down Expand Up @@ -1447,6 +1474,13 @@ components:
type: string
format: uuid

speech_model:
description: The speech model used for the transcription. When `null`, the default model is used.
default: null
oneOf:
- $ref: "#/components/schemas/SpeechModel"
- type: "null"

language_model:
description: The language model that was used for the transcript
type: string
Expand Down Expand Up @@ -1727,6 +1761,7 @@ components:
type: string
required:
- id
- speech_model
- language_model
- acoustic_model
- status
Expand All @@ -1738,6 +1773,7 @@ components:
example:
{
id: "9ea68fd3-f953-42c1-9742-976c447fb463",
speech_model: null,
language_model: "assemblyai_default",
acoustic_model: "assemblyai_default",
language_code: "en_us",
Expand Down Expand Up @@ -3488,6 +3524,7 @@ components:
- resource_url
- status
- created
- completed
- audio_url
properties:
id:
Expand All @@ -3501,10 +3538,12 @@ components:
type: string
pattern: '^(?:(\d{4}-\d{2}-\d{2})T(\d{2}:\d{2}:\d{2}(?:\.\d+)?))$'
x-fern-type: datetime
x-ts-type: Date
completed:
type: [string, "null"]
pattern: '^(?:(\d{4}-\d{2}-\d{2})T(\d{2}:\d{2}:\d{2}(?:\.\d+)?))$'
x-fern-type: datetime
x-ts-type: Date | null
audio_url:
type: string
example:
Expand Down Expand Up @@ -3806,6 +3845,7 @@ components:
anyOf:
- $ref: "#/components/schemas/LemurModel"
- type: string
x-ts-type: LiteralUnion<LemurModel, string>
max_output_size:
description: Max output size in tokens, up to 4000
type: integer
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"lint": "spectral lint {openapi,asyncapi}.yml --ruleset .spectral.yml && fern check",
"format": "prettier **/* --write",
"copybara:dry-run": "./copybara.sh dry_run --init-history",
"copybara:pr": "./copybara.sh sync_out --init-history"
"copybara:dry-run-in": "./copybara.sh dry_run_in --init-history",
"copybara:pr": "./copybara.sh sync_out --init-history",
"copybara:pr-in": "./copybara.sh sync_in --init-history"
},
"devDependencies": {
"@stoplight/spectral-cli": "^6.11.0",
Expand Down

0 comments on commit ea7e940

Please sign in to comment.