Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit 60ba7d8

Browse files
authored
Merge pull request #52 from AssemblyAI/fern-bot/10-17-2024-0925PM
🌿 Fern Regeneration -- October 17, 2024
2 parents fc85760 + 60476c4 commit 60ba7d8

18 files changed

+363
-182
lines changed

lib/assemblyai/lemur/types/lemur_model.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class LemurModel
1010
ANTHROPIC_CLAUDE3_SONNET = "anthropic/claude-3-sonnet"
1111
ANTHROPIC_CLAUDE2_1 = "anthropic/claude-2-1"
1212
ANTHROPIC_CLAUDE2 = "anthropic/claude-2"
13+
ANTHROPIC_CLAUDE2_0 = "anthropic/claude-2"
1314
DEFAULT = "default"
1415
ANTHROPIC_CLAUDE_INSTANT1_2 = "anthropic/claude-instant-1-2"
1516
BASIC = "basic"

lib/assemblyai/transcripts/client.rb

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def initialize(request_client:)
3535
# Transcripts are sorted from newest to oldest. The previous URL always points to
3636
# a page with older transcripts.
3737
#
38-
# @param limit [Long] Maximum amount of transcripts to retrieve
38+
# @param limit [Integer] Maximum amount of transcripts to retrieve
3939
# @param status [AssemblyAI::Transcripts::TranscriptStatus] Filter by transcript status
4040
# @param created_on [String] Only get transcripts created on this date
4141
# @param before_id [String] Get transcripts that were created before this transcript ID
@@ -83,12 +83,16 @@ def list(limit: nil, status: nil, created_on: nil, before_id: nil, after_id: nil
8383
# @param punctuate [Boolean] Enable Automatic Punctuation, can be true or false
8484
# @param format_text [Boolean] Enable Text Formatting, can be true or false
8585
# @param disfluencies [Boolean] Transcribe Filler Words, like "umm", in your media file; can be true or false
86+
# @param multichannel [Boolean] Enable
87+
# ://www.assemblyai.com/docs/models/speech-recognition#multichannel-transcription)
88+
# transcription, can be true or false.
8689
# @param dual_channel [Boolean] Enable [Dual
8790
# ://www.assemblyai.com/docs/models/speech-recognition#dual-channel-transcription)
8891
# transcription, can be true or false.
89-
# @param webhook_url [String] The URL to which we send webhook requests. We sends two different types of
90-
# webhook requests. One request when a transcript is completed or failed, and one
91-
# request when the redacted audio is ready if redact_pii_audio is enabled.
92+
# @param webhook_url [String] The URL to which we send webhook requests.
93+
# We sends two different types of webhook requests.
94+
# One request when a transcript is completed or failed, and one request when the
95+
# redacted audio is ready if redact_pii_audio is enabled.
9296
# @param webhook_auth_header_name [String] The header name to be sent with the transcript completed or failed webhook
9397
# requests
9498
# @param webhook_auth_header_value [String] The header value to send back with the transcript completed or failed webhook
@@ -158,7 +162,7 @@ def list(limit: nil, status: nil, created_on: nil, before_id: nil, after_id: nil
158162
# )
159163
# api.transcripts.submit(audio_url: "https://assembly.ai/wildfires.mp3")
160164
def submit(audio_url:, language_code: nil, language_detection: nil, language_confidence_threshold: nil, speech_model: nil,
161-
punctuate: nil, format_text: nil, disfluencies: nil, dual_channel: nil, webhook_url: nil, webhook_auth_header_name: nil, webhook_auth_header_value: nil, auto_highlights: nil, audio_start_from: nil, audio_end_at: nil, word_boost: nil, boost_param: nil, filter_profanity: nil, redact_pii: nil, redact_pii_audio: nil, redact_pii_audio_quality: nil, redact_pii_policies: nil, redact_pii_sub: nil, speaker_labels: nil, speakers_expected: nil, content_safety: nil, content_safety_confidence: nil, iab_categories: nil, custom_spelling: nil, sentiment_analysis: nil, auto_chapters: nil, entity_detection: nil, speech_threshold: nil, summarization: nil, summary_model: nil, summary_type: nil, custom_topics: nil, topics: nil, request_options: nil)
165+
punctuate: nil, format_text: nil, disfluencies: nil, multichannel: nil, dual_channel: nil, webhook_url: nil, webhook_auth_header_name: nil, webhook_auth_header_value: nil, auto_highlights: nil, audio_start_from: nil, audio_end_at: nil, word_boost: nil, boost_param: nil, filter_profanity: nil, redact_pii: nil, redact_pii_audio: nil, redact_pii_audio_quality: nil, redact_pii_policies: nil, redact_pii_sub: nil, speaker_labels: nil, speakers_expected: nil, content_safety: nil, content_safety_confidence: nil, iab_categories: nil, custom_spelling: nil, sentiment_analysis: nil, auto_chapters: nil, entity_detection: nil, speech_threshold: nil, summarization: nil, summary_model: nil, summary_type: nil, custom_topics: nil, topics: nil, request_options: nil)
162166
response = @request_client.conn.post do |req|
163167
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
164168
req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
@@ -172,6 +176,7 @@ def submit(audio_url:, language_code: nil, language_detection: nil, language_con
172176
punctuate: punctuate,
173177
format_text: format_text,
174178
disfluencies: disfluencies,
179+
multichannel: multichannel,
175180
dual_channel: dual_channel,
176181
webhook_url: webhook_url,
177182
webhook_auth_header_name: webhook_auth_header_name,
@@ -380,7 +385,7 @@ def initialize(request_client:)
380385
# Transcripts are sorted from newest to oldest. The previous URL always points to
381386
# a page with older transcripts.
382387
#
383-
# @param limit [Long] Maximum amount of transcripts to retrieve
388+
# @param limit [Integer] Maximum amount of transcripts to retrieve
384389
# @param status [AssemblyAI::Transcripts::TranscriptStatus] Filter by transcript status
385390
# @param created_on [String] Only get transcripts created on this date
386391
# @param before_id [String] Get transcripts that were created before this transcript ID
@@ -430,12 +435,16 @@ def list(limit: nil, status: nil, created_on: nil, before_id: nil, after_id: nil
430435
# @param punctuate [Boolean] Enable Automatic Punctuation, can be true or false
431436
# @param format_text [Boolean] Enable Text Formatting, can be true or false
432437
# @param disfluencies [Boolean] Transcribe Filler Words, like "umm", in your media file; can be true or false
438+
# @param multichannel [Boolean] Enable
439+
# ://www.assemblyai.com/docs/models/speech-recognition#multichannel-transcription)
440+
# transcription, can be true or false.
433441
# @param dual_channel [Boolean] Enable [Dual
434442
# ://www.assemblyai.com/docs/models/speech-recognition#dual-channel-transcription)
435443
# transcription, can be true or false.
436-
# @param webhook_url [String] The URL to which we send webhook requests. We sends two different types of
437-
# webhook requests. One request when a transcript is completed or failed, and one
438-
# request when the redacted audio is ready if redact_pii_audio is enabled.
444+
# @param webhook_url [String] The URL to which we send webhook requests.
445+
# We sends two different types of webhook requests.
446+
# One request when a transcript is completed or failed, and one request when the
447+
# redacted audio is ready if redact_pii_audio is enabled.
439448
# @param webhook_auth_header_name [String] The header name to be sent with the transcript completed or failed webhook
440449
# requests
441450
# @param webhook_auth_header_value [String] The header value to send back with the transcript completed or failed webhook
@@ -505,7 +514,7 @@ def list(limit: nil, status: nil, created_on: nil, before_id: nil, after_id: nil
505514
# )
506515
# api.transcripts.submit(audio_url: "https://assembly.ai/wildfires.mp3")
507516
def submit(audio_url:, language_code: nil, language_detection: nil, language_confidence_threshold: nil, speech_model: nil,
508-
punctuate: nil, format_text: nil, disfluencies: nil, dual_channel: nil, webhook_url: nil, webhook_auth_header_name: nil, webhook_auth_header_value: nil, auto_highlights: nil, audio_start_from: nil, audio_end_at: nil, word_boost: nil, boost_param: nil, filter_profanity: nil, redact_pii: nil, redact_pii_audio: nil, redact_pii_audio_quality: nil, redact_pii_policies: nil, redact_pii_sub: nil, speaker_labels: nil, speakers_expected: nil, content_safety: nil, content_safety_confidence: nil, iab_categories: nil, custom_spelling: nil, sentiment_analysis: nil, auto_chapters: nil, entity_detection: nil, speech_threshold: nil, summarization: nil, summary_model: nil, summary_type: nil, custom_topics: nil, topics: nil, request_options: nil)
517+
punctuate: nil, format_text: nil, disfluencies: nil, multichannel: nil, dual_channel: nil, webhook_url: nil, webhook_auth_header_name: nil, webhook_auth_header_value: nil, auto_highlights: nil, audio_start_from: nil, audio_end_at: nil, word_boost: nil, boost_param: nil, filter_profanity: nil, redact_pii: nil, redact_pii_audio: nil, redact_pii_audio_quality: nil, redact_pii_policies: nil, redact_pii_sub: nil, speaker_labels: nil, speakers_expected: nil, content_safety: nil, content_safety_confidence: nil, iab_categories: nil, custom_spelling: nil, sentiment_analysis: nil, auto_chapters: nil, entity_detection: nil, speech_threshold: nil, summarization: nil, summary_model: nil, summary_type: nil, custom_topics: nil, topics: nil, request_options: nil)
509518
Async do
510519
response = @request_client.conn.post do |req|
511520
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -520,6 +529,7 @@ def submit(audio_url:, language_code: nil, language_detection: nil, language_con
520529
punctuate: punctuate,
521530
format_text: format_text,
522531
disfluencies: disfluencies,
532+
multichannel: multichannel,
523533
dual_channel: dual_channel,
524534
webhook_url: webhook_url,
525535
webhook_auth_header_name: webhook_auth_header_name,

0 commit comments

Comments
 (0)