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

Commit b52f9e6

Browse files
committed
Merge remote-tracking branch 'origin/main'
# Conflicts: # lib/gemconfig.rb
2 parents 2c2bf0b + 9c65066 commit b52f9e6

File tree

4 files changed

+0
-36
lines changed

4 files changed

+0
-36
lines changed

.fernignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,3 @@ lib/assemblyai.rb
2121
lib/assemblyai/transcripts/polling_client.rb
2222
lib/assemblyai/transcripts/list_by_url_client.rb
2323
lib/assemblyai/transcripts/types/polling_options.rb
24-
25-
# Ignore to deprecate conformer-2 option
26-
lib/assemblyai/transcripts/client.rb
27-
lib/assemblyai/transcripts/types/speech_model.rb

lib/assemblyai/transcripts/client.rb

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ def list(limit: nil, status: nil, created_on: nil, before_id: nil, after_id: nil
109109
# @return [Transcripts::Transcript]
110110
def submit(audio_url:, speech_model: nil, language_code: nil, punctuate: nil, format_text: nil, dual_channel: nil,
111111
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, language_detection: nil, custom_spelling: nil, disfluencies: 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, additional_properties: nil, request_options: nil)
112-
deprecate_conformer2(speech_model: speech_model)
113112
response = @request_client.conn.post do |req|
114113
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
115114
req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
@@ -272,12 +271,6 @@ def get_redacted_audio(transcript_id:, request_options: nil)
272271
end
273272
Transcripts::RedactedAudioResponse.from_json(json_object: response.body)
274273
end
275-
276-
# @param speech_model [Transcripts::SpeechModel]
277-
def deprecate_conformer2(speech_model: nil)
278-
warn "[DEPRECATION] `conformer-2` is deprecated. Please use `best` or `nano` instead." if speech_model == "conformer-2"
279-
end
280-
private :deprecate_conformer2
281274
end
282275

283276
class AsyncTranscriptsClient
@@ -370,7 +363,6 @@ def list(limit: nil, status: nil, created_on: nil, before_id: nil, after_id: nil
370363
# @return [Transcripts::Transcript]
371364
def submit(audio_url:, speech_model: nil, language_code: nil, punctuate: nil, format_text: nil, dual_channel: nil,
372365
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, language_detection: nil, custom_spelling: nil, disfluencies: 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, additional_properties: nil, request_options: nil)
373-
deprecate_conformer2(speech_model: speech_model)
374366
Async do
375367
response = @request_client.conn.post do |req|
376368
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -549,11 +541,5 @@ def get_redacted_audio(transcript_id:, request_options: nil)
549541
Transcripts::RedactedAudioResponse.from_json(json_object: response.body)
550542
end
551543
end
552-
553-
# @param speech_model [Transcripts::SpeechModel]
554-
def deprecate_conformer2(speech_model: nil)
555-
warn "[DEPRECATION] `conformer-2` is deprecated. Please use `best` or `nano` instead." if speech_model == "conformer-2"
556-
end
557-
private :deprecate_conformer2
558544
end
559545
end

lib/assemblyai/transcripts/polling_client.rb

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ class TranscriptsClient
7272
# @return [Transcripts::Transcript]
7373
def transcribe(audio_url:, speech_model: nil, language_code: nil, punctuate: nil, format_text: nil, dual_channel: nil,
7474
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, language_detection: nil, custom_spelling: nil, disfluencies: 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, additional_properties: nil, request_options: nil, polling_options: Transcripts::PollingOptions.new)
75-
deprecate_conformer2(speech_model: speech_model)
7675
transcript = submit(audio_url: audio_url, speech_model: speech_model, language_code: language_code, punctuate: punctuate, format_text: format_text, dual_channel: dual_channel,
7776
webhook_url: webhook_url, webhook_auth_header_name: webhook_auth_header_name, webhook_auth_header_value: webhook_auth_header_value, auto_highlights: auto_highlights, audio_start_from: audio_start_from, audio_end_at: audio_end_at, word_boost: word_boost, boost_param: boost_param, filter_profanity: filter_profanity, redact_pii: redact_pii, redact_pii_audio: redact_pii_audio, redact_pii_audio_quality: redact_pii_audio_quality, redact_pii_policies: redact_pii_policies, redact_pii_sub: redact_pii_sub, speaker_labels: speaker_labels, speakers_expected: speakers_expected, content_safety: content_safety, content_safety_confidence: content_safety_confidence, iab_categories: iab_categories, language_detection: language_detection, custom_spelling: custom_spelling, disfluencies: disfluencies, sentiment_analysis: sentiment_analysis, auto_chapters: auto_chapters, entity_detection: entity_detection, speech_threshold: speech_threshold, summarization: summarization, summary_model: summary_model, summary_type: summary_type, custom_topics: custom_topics, topics: topics, additional_properties: additional_properties, request_options: request_options)
7877
wait_until_ready(transcript_id: transcript.id, polling_options: polling_options)
@@ -97,13 +96,6 @@ def wait_until_ready(transcript_id:, polling_options: Transcripts::PollingOption
9796
sleep polling_options.interval / 1000
9897
end
9998
end
100-
101-
# @param speech_model [Transcripts::SpeechModel]
102-
def deprecate_conformer2(speech_model: nil)
103-
warn "[DEPRECATION] `conformer-2` is deprecated. Please use `best` or `nano` instead." if speech_model == "conformer-2"
104-
end
105-
106-
private :deprecate_conformer2
10799
end
108100

109101
# :nodoc:
@@ -157,7 +149,6 @@ class AsyncTranscriptsClient
157149
# @return [Transcripts::Transcript]
158150
def transcribe(audio_url:, speech_model: nil, language_code: nil, punctuate: nil, format_text: nil, dual_channel: nil,
159151
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, language_detection: nil, custom_spelling: nil, disfluencies: 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, additional_properties: nil, request_options: nil, polling_options: Transcripts::PollingOptions.new)
160-
deprecate_conformer2(speech_model: speech_model)
161152
Async do
162153
transcript = submit(audio_url: audio_url, speech_model: speech_model, language_code: language_code, punctuate: punctuate, format_text: format_text, dual_channel: dual_channel,
163154
webhook_url: webhook_url, webhook_auth_header_name: webhook_auth_header_name, webhook_auth_header_value: webhook_auth_header_value, auto_highlights: auto_highlights, audio_start_from: audio_start_from, audio_end_at: audio_end_at, word_boost: word_boost, boost_param: boost_param, filter_profanity: filter_profanity, redact_pii: redact_pii, redact_pii_audio: redact_pii_audio, redact_pii_audio_quality: redact_pii_audio_quality, redact_pii_policies: redact_pii_policies, redact_pii_sub: redact_pii_sub, speaker_labels: speaker_labels, speakers_expected: speakers_expected, content_safety: content_safety, content_safety_confidence: content_safety_confidence, iab_categories: iab_categories, language_detection: language_detection, custom_spelling: custom_spelling, disfluencies: disfluencies, sentiment_analysis: sentiment_analysis, auto_chapters: auto_chapters, entity_detection: entity_detection, speech_threshold: speech_threshold, summarization: summarization, summary_model: summary_model, summary_type: summary_type, custom_topics: custom_topics, topics: topics, additional_properties: additional_properties, request_options: request_options).wait
@@ -186,12 +177,5 @@ def wait_until_ready(transcript_id:, polling_options: Transcripts::PollingOption
186177
end
187178
end
188179
end
189-
190-
# @param speech_model [Transcripts::SpeechModel]
191-
def deprecate_conformer2(speech_model:)
192-
warn "[DEPRECATION] `conformer-2` is deprecated. Please use `best` or `nano` instead." if speech_model == "conformer-2"
193-
end
194-
195-
private :deprecate_conformer2
196180
end
197181
end

lib/assemblyai/transcripts/types/speech_model.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ class Transcripts
66
class SpeechModel
77
BEST = "best"
88
NANO = "nano"
9-
# @deprecated This option will stop working in the near future. Please use {#BEST} or {#NANO} instead
10-
CONFORMER2 = "conformer-2"
119
end
1210
end
1311
end

0 commit comments

Comments
 (0)