assemblyai 1.0.0.pre.beta.16 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1d6a5866e5e1540943b02af10a905121eaef30e99c9b53c7c11e7b21d6e65f33
4
- data.tar.gz: 8eed3a736e9ea9f08e96a48d93394195a2f4c5025f010f965bd50b79b9efb2b7
3
+ metadata.gz: 2227423f1daaad40b83bbfc08c6d56e58478da4e0f75472e5fe482ee16b782d4
4
+ data.tar.gz: '08b19784d46dea0924f7cdac48f5d6d0949fb21cec1a4493ea0ae65d1904d2ac'
5
5
  SHA512:
6
- metadata.gz: 6bca4577ee221e5b131f331fd9527c0bb61fcb481ce8dcf154562f2e54a20566eccb0a4d150680d44397ecf2c760b3b38d22b3a4e9093fb4e814d740de0f5baf
7
- data.tar.gz: 306697c4cb1583b4410e60c6a49b86d01c2a2486dd121ec43d1bb16da93cc4813ca407f4bad19488680bc2034d1216879da0c5174d9ebe9991a716038ef99d1b
6
+ metadata.gz: 4bfa6c425d258467b82119159d3b92437640536365b4b3f012d7e8b4008541aecf9c4ba180955c32776e9b481ac4fcc13ea38da90439277228a3a9f3304eb717
7
+ data.tar.gz: 57b7a6fbaad10c79a564b965c5012b8ab836422f9134df0dce1dd76fbaf81e83e21dc2491009ccdec7d4568b128dbde88ffc9ad3ba8311a62087eeded032b3ff
@@ -109,7 +109,6 @@ module AssemblyAI
109
109
  # @return [Transcripts::Transcript]
110
110
  def submit(audio_url:, speech_model: nil, language_code: nil, punctuate: nil, format_text: nil, dual_channel: nil,
111
111
  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)
113
112
  response = @request_client.conn.post do |req|
114
113
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
115
114
  req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
@@ -272,12 +271,6 @@ module AssemblyAI
272
271
  end
273
272
  Transcripts::RedactedAudioResponse.from_json(json_object: response.body)
274
273
  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
281
274
  end
282
275
 
283
276
  class AsyncTranscriptsClient
@@ -370,7 +363,6 @@ module AssemblyAI
370
363
  # @return [Transcripts::Transcript]
371
364
  def submit(audio_url:, speech_model: nil, language_code: nil, punctuate: nil, format_text: nil, dual_channel: nil,
372
365
  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)
374
366
  Async do
375
367
  response = @request_client.conn.post do |req|
376
368
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -549,11 +541,5 @@ module AssemblyAI
549
541
  Transcripts::RedactedAudioResponse.from_json(json_object: response.body)
550
542
  end
551
543
  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
558
544
  end
559
545
  end
@@ -72,7 +72,6 @@ module AssemblyAI
72
72
  # @return [Transcripts::Transcript]
73
73
  def transcribe(audio_url:, speech_model: nil, language_code: nil, punctuate: nil, format_text: nil, dual_channel: nil,
74
74
  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)
76
75
  transcript = submit(audio_url: audio_url, speech_model: speech_model, language_code: language_code, punctuate: punctuate, format_text: format_text, dual_channel: dual_channel,
77
76
  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)
78
77
  wait_until_ready(transcript_id: transcript.id, polling_options: polling_options)
@@ -97,13 +96,6 @@ module AssemblyAI
97
96
  sleep polling_options.interval / 1000
98
97
  end
99
98
  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
107
99
  end
108
100
 
109
101
  # :nodoc:
@@ -157,7 +149,6 @@ module AssemblyAI
157
149
  # @return [Transcripts::Transcript]
158
150
  def transcribe(audio_url:, speech_model: nil, language_code: nil, punctuate: nil, format_text: nil, dual_channel: nil,
159
151
  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)
161
152
  Async do
162
153
  transcript = submit(audio_url: audio_url, speech_model: speech_model, language_code: language_code, punctuate: punctuate, format_text: format_text, dual_channel: dual_channel,
163
154
  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 @@ module AssemblyAI
186
177
  end
187
178
  end
188
179
  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
196
180
  end
197
181
  end
@@ -6,8 +6,6 @@ module AssemblyAI
6
6
  class SpeechModel
7
7
  BEST = "best"
8
8
  NANO = "nano"
9
- # @deprecated This option will stop working in the near future. Please use {#BEST} or {#NANO} instead
10
- CONFORMER2 = "conformer-2"
11
9
  end
12
10
  end
13
11
  end
data/lib/gemconfig.rb CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  module AssemblyAI
4
4
  module Gemconfig
5
- VERSION = "1.0.0-beta.16"
6
- AUTHORS = [""].freeze
5
+ VERSION = "1.0.0"
6
+ AUTHORS = ["AssemblyAI"].freeze
7
7
  EMAIL = "support@assemblyai.com"
8
8
  SUMMARY = "AssemblyAI Ruby SDK"
9
9
  DESCRIPTION = "The AssemblyAI Ruby SDK provides an easy-to-use interface for interacting with the AssemblyAI API, which supports async, audio intelligence models, as well as the latest LeMUR models.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: assemblyai
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre.beta.16
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
- - ''
7
+ - AssemblyAI
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-07-15 00:00:00.000000000 Z
11
+ date: 2024-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async-http-faraday
@@ -213,9 +213,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
213
213
  version: 2.7.0
214
214
  required_rubygems_version: !ruby/object:Gem::Requirement
215
215
  requirements:
216
- - - ">"
216
+ - - ">="
217
217
  - !ruby/object:Gem::Version
218
- version: 1.3.1
218
+ version: '0'
219
219
  requirements: []
220
220
  rubygems_version: 3.1.6
221
221
  signing_key: