Skip to content

Commit

Permalink
Project import generated by Copybara.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: e754d4d850c3809115e01e945662ea4f253756cd
  • Loading branch information
AssemblyAI authored and Swimburger committed Aug 29, 2024
1 parent ba995fc commit 36adae0
Show file tree
Hide file tree
Showing 12 changed files with 159 additions and 75 deletions.
1 change: 1 addition & 0 deletions asyncapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
},
"query": {
"type": "object",
"required": ["sample_rate"],
"properties": {
"sample_rate": {
"description": "The sample rate of the streamed audio",
Expand Down
1 change: 1 addition & 0 deletions asyncapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ channels:
type: string
query:
type: object
required: [sample_rate]
properties:
sample_rate:
description: The sample rate of the streamed audio
Expand Down
1 change: 1 addition & 0 deletions fern/.definition/lemur.yml
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,7 @@ types:
max_output_size:
type: optional<integer>
docs: Max output size in tokens, up to 4000
default: 2000
temperature:
type: optional<float>
docs: >
Expand Down
4 changes: 3 additions & 1 deletion fern/.definition/realtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ channel:
display-name: Streaming Speech-to-Text
query-parameters:
sample_rate:
type: optional<integer>
type: integer
docs: The sample rate of the streamed audio
word_boost:
type: optional<string>
Expand Down Expand Up @@ -383,3 +383,5 @@ channel:
- type: subscribe
body:
message_type: SessionTerminated
query-parameters:
sample_rate: 1
55 changes: 37 additions & 18 deletions fern/.definition/transcripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ service:
examples:
- request:
language_code: en_us
language_detection: false
language_detection: true
language_confidence_threshold: 0.7
punctuate: true
format_text: true
disfluencies: false
Expand Down Expand Up @@ -168,9 +169,9 @@ service:
https://github.com/AssemblyAI-Examples/audio-examples/raw/main/20230607_me_canadian_wildfires.mp3
status: completed
language_code: en_us
language_detection: false
language_confidence_threshold: 1.1
language_confidence: 1.1
language_detection: true
language_confidence_threshold: 0.7
language_confidence: 0.9959
speech_model: best
text: >-
Smoke from hundreds of wildfires in Canada is triggering air
Expand Down Expand Up @@ -795,9 +796,9 @@ service:
https://github.com/AssemblyAI-Examples/audio-examples/raw/main/20230607_me_canadian_wildfires.mp3
status: completed
language_code: en_us
language_detection: false
language_confidence_threshold: 1.1
language_confidence: 1.1
language_detection: true
language_confidence_threshold: 0.7
language_confidence: 0.9959
speech_model: best
text: >-
Smoke from hundreds of wildfires in Canada is triggering air
Expand Down Expand Up @@ -1418,6 +1419,7 @@ service:
id: 47b95ba5-8889-44d8-bc80-5de38306e582
language_model: assemblyai_default
acoustic_model: assemblyai_default
language_detection: false
status: completed
audio_url: http://deleted_by_user
text: Deleted by user.
Expand Down Expand Up @@ -1814,6 +1816,7 @@ types:
Enable [Automatic language
detection](https://www.assemblyai.com/docs/models/speech-recognition#automatic-language-detection),
either true or false.
default: false
language_confidence_threshold:
type: optional<float>
docs: >
Expand All @@ -1827,27 +1830,33 @@ types:
punctuate:
type: optional<boolean>
docs: Enable Automatic Punctuation, can be true or false
default: true
format_text:
type: optional<boolean>
docs: Enable Text Formatting, can be true or false
default: true
disfluencies:
type: optional<boolean>
docs: >-
Transcribe Filler Words, like "umm", in your media file; can be true
or false
default: false
dual_channel:
type: optional<boolean>
docs: >-
Enable [Dual
Channel](https://www.assemblyai.com/docs/models/speech-recognition#dual-channel-transcription)
transcription, can be true or false.
default: false
webhook_url:
type: optional<string>
docs: >-
The URL to which we send webhook requests. We sends two different
types of webhook requests. One request when a transcript is completed
or failed, and one request when the redacted audio is ready if
redact_pii_audio is enabled.
docs: >
The URL to which we send webhook requests.
We sends two different types of webhook requests.
One request when a transcript is completed or failed, and one request
when the redacted audio is ready if redact_pii_audio is enabled.
webhook_auth_header_name:
type: optional<string>
docs: >-
Expand All @@ -1861,6 +1870,7 @@ types:
auto_highlights:
type: optional<boolean>
docs: Enable Key Phrases, either true or false
default: false
audio_start_from:
type: optional<integer>
docs: >-
Expand All @@ -1880,18 +1890,21 @@ types:
filter_profanity:
type: optional<boolean>
docs: Filter profanity from the transcribed text, can be true or false
default: false
redact_pii:
type: optional<boolean>
docs: >-
Redact PII from the transcribed text using the Redact PII model, can
be true or false
default: false
redact_pii_audio:
type: optional<boolean>
docs: >-
Generate a copy of the original media file with spoken PII "beeped"
out, can be true or false. See [PII
redaction](https://www.assemblyai.com/docs/models/pii-redaction) for
more details.
default: false
redact_pii_audio_quality:
type: optional<RedactPiiAudioQuality>
docs: >-
Expand All @@ -1912,6 +1925,7 @@ types:
Enable [Speaker
diarization](https://www.assemblyai.com/docs/models/speaker-diarization),
can be true or false
default: false
speakers_expected:
type: optional<integer>
docs: >-
Expand All @@ -1925,17 +1939,23 @@ types:
Enable [Content
Moderation](https://www.assemblyai.com/docs/models/content-moderation),
can be true or false
default: false
content_safety_confidence:
type: optional<integer>
docs: >-
The confidence threshold for the Content Moderation model. Values must
be between 25 and 100.
default: 50
validation:
min: 25
max: 100
iab_categories:
type: optional<boolean>
docs: >-
Enable [Topic
Detection](https://www.assemblyai.com/docs/models/topic-detection),
can be true or false
default: false
custom_spelling:
type: optional<list<TranscriptCustomSpelling>>
docs: Customize how words are spelled and formatted using to and from values
Expand All @@ -1945,18 +1965,21 @@ types:
Enable [Sentiment
Analysis](https://www.assemblyai.com/docs/models/sentiment-analysis),
can be true or false
default: false
auto_chapters:
type: optional<boolean>
docs: >-
Enable [Auto
Chapters](https://www.assemblyai.com/docs/models/auto-chapters), can
be true or false
default: false
entity_detection:
type: optional<boolean>
docs: >-
Enable [Entity
Detection](https://www.assemblyai.com/docs/models/entity-detection),
can be true or false
default: false
speech_threshold:
type: optional<float>
docs: |
Expand All @@ -1968,6 +1991,7 @@ types:
Enable
[Summarization](https://www.assemblyai.com/docs/models/summarization),
can be true or false
default: false
summary_model:
type: optional<SummaryModel>
docs: The model to summarize the transcript
Expand All @@ -1977,6 +2001,7 @@ types:
custom_topics:
type: optional<boolean>
docs: Enable custom topics, either true or false
default: false
topics:
type: optional<list<string>>
docs: The list of custom topics
Expand All @@ -1988,7 +2013,6 @@ types:
- conversational
- catchy
docs: The model to summarize the transcript
default: informative
source:
openapi: ../openapi.yml
SummaryType:
Expand All @@ -1999,7 +2023,6 @@ types:
- headline
- paragraph
docs: The type of summary
default: bullets
source:
openapi: ../openapi.yml
TranscriptBoostParam:
Expand Down Expand Up @@ -2079,7 +2102,6 @@ types:
supports mp3 (default) and wav. See [PII
redaction](https://www.assemblyai.com/docs/models/pii-redaction) for more
details.
default: mp3
source:
openapi: ../openapi.yml
PiiPolicy:
Expand Down Expand Up @@ -2334,7 +2356,6 @@ types:
Languages](https://www.assemblyai.com/docs/concepts/supported-languages).
The default value is 'en_us'.
default: en_us
source:
openapi: ../openapi.yml
TranscriptStatus:
Expand Down Expand Up @@ -2399,8 +2420,6 @@ types:
An error will be returned if the language confidence is below this
threshold.
Defaults to 0.
language_confidence:
type: optional<double>
docs: >-
Expand Down
2 changes: 1 addition & 1 deletion fern/fern.config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"organization": "assemblyai",
"version": "0.39.10"
"version": "0.39.19"
}
4 changes: 2 additions & 2 deletions fern/generators.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ groups:
path: ../postman
ruby-sdk:
generators:
- name: fernapi/fern-ruby-sdk
- name: fernapi/fern-ruby-sdk
version: 0.6.3
github:
repository: AssemblyAI/assemblyai-ruby-sdk
Expand All @@ -29,7 +29,7 @@ groups:
csharp-sdk:
generators:
- name: fernapi/fern-csharp-sdk
version: 1.3.0
version: 1.1.0
output:
location: nuget
package-name: AssemblyAI
Expand Down
4 changes: 3 additions & 1 deletion fern/openapi-overrides.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ paths:
language_model: "assemblyai_default",
acoustic_model: "assemblyai_default",
language_code: null,
language_detection: false,
language_confidence_threshold: null,
language_confidence: null,
status: "completed",
audio_url: "http://deleted_by_user",
text: "Deleted by user.",
Expand Down Expand Up @@ -64,7 +67,6 @@ paths:
iab_categories: null,
content_safety_labels: null,
iab_categories_result: null,
language_detection: null,
custom_spelling: null,
cluster_id: null,
throttled: null,
Expand Down
Loading

0 comments on commit 36adae0

Please sign in to comment.