assemblyai 1.0.0.pre.beta.8 → 1.0.0.pre.beta.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cedba6b77334fee0b4e76497e5167d00faa461b8dab2fcfdd9a5b9856f520435
4
- data.tar.gz: bcde98892738adf28fa44e6d8f1236249b66b66eb8b486b858e8cdf03da2a978
3
+ metadata.gz: 8966cf8fd4bf25ddc706a276125abd055e0d959ab9a9e08a244cf62e673f5117
4
+ data.tar.gz: 49482eed13d7dbdd01846510dcfad1e9c22a910a79bf96f50c01932bb858a821
5
5
  SHA512:
6
- metadata.gz: a236f3e4b78caf66246e6b6c70f6288420e65875573829e77a5198b0fa9f566cb517de9cc7b19e6eaa5fc6143df4bff5d794d2176094a35d0df8b3409d4db2c0
7
- data.tar.gz: 3c563c6da42cf7d41b70bfbae5f10eb8cd2e637ac878dae7d78bf826c64810001ffe5a158456104b02b6b94fb2b250648ec4796ad94661c5262100331780d3fa
6
+ metadata.gz: 01705c2608ea28815a847e01bffb4f7224e050e6b61dd3692b1f44d16eeabf2e6561e93356331709b32a2702c3c1c3a75864a1659a75d48a354739d832f0853f
7
+ data.tar.gz: 2789963c8e6e1f1b39013d0c398eaad39b8bd05dd13af4b80389bddf1337101465804360e6585ca29ab44ded1a9580bed610e3fcc8405537414a2557b12bf819
@@ -71,8 +71,9 @@ module AssemblyAI
71
71
  end
72
72
 
73
73
  # Custom Summary allows you to distill a piece of audio into a few impactful
74
- # sentences. You can give the model context to obtain more targeted results while
75
- # outputting the results in a variety of formats described in human language.
74
+ # sentences.
75
+ # You can give the model context to obtain more targeted results while outputting
76
+ # the results in a variety of formats described in human language.
76
77
  #
77
78
  # @param transcript_ids [Array<String>] A list of completed transcripts with text. Up to a maximum of 100 files or 100
78
79
  # hours, whichever is lower.
@@ -121,9 +122,10 @@ module AssemblyAI
121
122
  end
122
123
 
123
124
  # Question & Answer allows you to ask free-form questions about a single
124
- # transcript or a group of transcripts. The questions can be any whose answers you
125
- # find useful, such as judging whether a caller is likely to become a customer or
126
- # whether all items on a meeting's agenda were covered.
125
+ # transcript or a group of transcripts.
126
+ # The questions can be any whose answers you find useful, such as judging whether
127
+ # a caller is likely to become a customer or whether all items on a meeting's
128
+ # agenda were covered.
127
129
  #
128
130
  # @param transcript_ids [Array<String>] A list of completed transcripts with text. Up to a maximum of 100 files or 100
129
131
  # hours, whichever is lower.
@@ -309,8 +311,9 @@ module AssemblyAI
309
311
  end
310
312
 
311
313
  # Custom Summary allows you to distill a piece of audio into a few impactful
312
- # sentences. You can give the model context to obtain more targeted results while
313
- # outputting the results in a variety of formats described in human language.
314
+ # sentences.
315
+ # You can give the model context to obtain more targeted results while outputting
316
+ # the results in a variety of formats described in human language.
314
317
  #
315
318
  # @param transcript_ids [Array<String>] A list of completed transcripts with text. Up to a maximum of 100 files or 100
316
319
  # hours, whichever is lower.
@@ -361,9 +364,10 @@ module AssemblyAI
361
364
  end
362
365
 
363
366
  # Question & Answer allows you to ask free-form questions about a single
364
- # transcript or a group of transcripts. The questions can be any whose answers you
365
- # find useful, such as judging whether a caller is likely to become a customer or
366
- # whether all items on a meeting's agenda were covered.
367
+ # transcript or a group of transcripts.
368
+ # The questions can be any whose answers you find useful, such as judging whether
369
+ # a caller is likely to become a customer or whether all items on a meeting's
370
+ # agenda were covered.
367
371
  #
368
372
  # @param transcript_ids [Array<String>] A list of completed transcripts with text. Up to a maximum of 100 files or 100
369
373
  # hours, whichever is lower.
@@ -79,7 +79,6 @@ module AssemblyAI
79
79
  # @return [AssemblyAI::Lemur::LemurBaseParams]
80
80
  def self.from_json(json_object:)
81
81
  struct = JSON.parse(json_object, object_class: OpenStruct)
82
- parsed_json = JSON.parse(json_object)
83
82
  transcript_ids = struct["transcript_ids"]
84
83
  input_text = struct["input_text"]
85
84
  if parsed_json["context"].nil?
@@ -57,7 +57,6 @@ module AssemblyAI
57
57
  # @return [AssemblyAI::Lemur::LemurQuestion]
58
58
  def self.from_json(json_object:)
59
59
  struct = JSON.parse(json_object, object_class: OpenStruct)
60
- parsed_json = JSON.parse(json_object)
61
60
  question = struct["question"]
62
61
  if parsed_json["context"].nil?
63
62
  context = nil
@@ -36,7 +36,6 @@ module AssemblyAI
36
36
  # @return [AssemblyAI::Lemur::LemurQuestionAnswerResponse]
37
37
  def self.from_json(json_object:)
38
38
  struct = JSON.parse(json_object, object_class: OpenStruct)
39
- parsed_json = JSON.parse(json_object)
40
39
  response = parsed_json["response"]&.map do |v|
41
40
  v = v.to_json
42
41
  AssemblyAI::Lemur::LemurQuestionAnswer.from_json(json_object: v)
@@ -8,7 +8,7 @@ require "json"
8
8
  module AssemblyAI
9
9
  class Realtime
10
10
  class FinalTranscript
11
- # @return [String]
11
+ # @return [String] Describes the type of message
12
12
  attr_reader :message_type
13
13
  # @return [Boolean] Whether the text is punctuated and cased
14
14
  attr_reader :punctuated
@@ -37,7 +37,7 @@ module AssemblyAI
37
37
 
38
38
  OMIT = Object.new
39
39
 
40
- # @param message_type [String]
40
+ # @param message_type [String] Describes the type of message
41
41
  # @param punctuated [Boolean] Whether the text is punctuated and cased
42
42
  # @param text_formatted [Boolean] Whether the text is formatted, for example Dollar -> $
43
43
  # @param audio_start [Integer] Start time of audio sample relative to session start, in milliseconds
@@ -8,7 +8,7 @@ require "json"
8
8
  module AssemblyAI
9
9
  class Realtime
10
10
  class PartialTranscript
11
- # @return [String]
11
+ # @return [String] Describes the type of message
12
12
  attr_reader :message_type
13
13
  # @return [Integer] Start time of audio sample relative to session start, in milliseconds
14
14
  attr_reader :audio_start
@@ -33,7 +33,7 @@ module AssemblyAI
33
33
 
34
34
  OMIT = Object.new
35
35
 
36
- # @param message_type [String]
36
+ # @param message_type [String] Describes the type of message
37
37
  # @param audio_start [Integer] Start time of audio sample relative to session start, in milliseconds
38
38
  # @param audio_end [Integer] End time of audio sample relative to session start, in milliseconds
39
39
  # @param confidence [Float] The confidence score of the entire transcription, between 0 and 1
@@ -7,7 +7,7 @@ require "json"
7
7
  module AssemblyAI
8
8
  class Realtime
9
9
  class SessionBegins
10
- # @return [String]
10
+ # @return [String] Describes the type of the message
11
11
  attr_reader :message_type
12
12
  # @return [String] Unique identifier for the established session
13
13
  attr_reader :session_id
@@ -21,7 +21,7 @@ module AssemblyAI
21
21
 
22
22
  OMIT = Object.new
23
23
 
24
- # @param message_type [String]
24
+ # @param message_type [String] Describes the type of the message
25
25
  # @param session_id [String] Unique identifier for the established session
26
26
  # @param expires_at [DateTime] Timestamp when this session will expire
27
27
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
@@ -9,7 +9,7 @@ module AssemblyAI
9
9
  # This message is sent at the end of the session, before the SessionTerminated
10
10
  # message.
11
11
  class SessionInformation
12
- # @return [String]
12
+ # @return [String] Describes the type of the message
13
13
  attr_reader :message_type
14
14
  # @return [Float] The total duration of the audio in seconds
15
15
  attr_reader :audio_duration_seconds
@@ -21,7 +21,7 @@ module AssemblyAI
21
21
 
22
22
  OMIT = Object.new
23
23
 
24
- # @param message_type [String]
24
+ # @param message_type [String] Describes the type of the message
25
25
  # @param audio_duration_seconds [Float] The total duration of the audio in seconds
26
26
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
27
27
  # @return [AssemblyAI::Realtime::SessionInformation]
@@ -6,7 +6,7 @@ require "json"
6
6
  module AssemblyAI
7
7
  class Realtime
8
8
  class SessionTerminated
9
- # @return [String]
9
+ # @return [String] Describes the type of the message
10
10
  attr_reader :message_type
11
11
  # @return [OpenStruct] Additional properties unmapped to the current class definition
12
12
  attr_reader :additional_properties
@@ -16,7 +16,7 @@ module AssemblyAI
16
16
 
17
17
  OMIT = Object.new
18
18
 
19
- # @param message_type [String]
19
+ # @param message_type [String] Describes the type of the message
20
20
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
21
21
  # @return [AssemblyAI::Realtime::SessionTerminated]
22
22
  def initialize(message_type:, additional_properties: nil)
@@ -4,35 +4,50 @@ module AssemblyAI
4
4
  class Transcripts
5
5
  # The type of entity for the detected entity
6
6
  class EntityType
7
+ ACCOUNT_NUMBER = "account_number"
7
8
  BANKING_INFORMATION = "banking_information"
8
9
  BLOOD_TYPE = "blood_type"
9
10
  CREDIT_CARD_CVV = "credit_card_cvv"
10
11
  CREDIT_CARD_EXPIRATION = "credit_card_expiration"
11
12
  CREDIT_CARD_NUMBER = "credit_card_number"
12
13
  DATE = "date"
14
+ DATE_INTERVAL = "date_interval"
13
15
  DATE_OF_BIRTH = "date_of_birth"
14
16
  DRIVERS_LICENSE = "drivers_license"
15
17
  DRUG = "drug"
18
+ DURATION = "duration"
16
19
  EMAIL_ADDRESS = "email_address"
17
20
  EVENT = "event"
21
+ FILENAME = "filename"
22
+ GENDER_SEXUALITY = "gender_sexuality"
23
+ HEALTHCARE_NUMBER = "healthcare_number"
18
24
  INJURY = "injury"
25
+ IP_ADDRESS = "ip_address"
19
26
  LANGUAGE = "language"
20
27
  LOCATION = "location"
28
+ MARITAL_STATUS = "marital_status"
21
29
  MEDICAL_CONDITION = "medical_condition"
22
30
  MEDICAL_PROCESS = "medical_process"
23
31
  MONEY_AMOUNT = "money_amount"
24
32
  NATIONALITY = "nationality"
33
+ NUMBER_SEQUENCE = "number_sequence"
25
34
  OCCUPATION = "occupation"
26
35
  ORGANIZATION = "organization"
36
+ PASSPORT_NUMBER = "passport_number"
27
37
  PASSWORD = "password"
28
38
  PERSON_AGE = "person_age"
29
39
  PERSON_NAME = "person_name"
30
40
  PHONE_NUMBER = "phone_number"
41
+ PHYSICAL_ATTRIBUTE = "physical_attribute"
31
42
  POLITICAL_AFFILIATION = "political_affiliation"
32
43
  RELIGION = "religion"
44
+ STATISTICS = "statistics"
33
45
  TIME = "time"
34
46
  URL = "url"
35
47
  US_SOCIAL_SECURITY_NUMBER = "us_social_security_number"
48
+ USERNAME = "username"
49
+ VEHICLE_ID = "vehicle_id"
50
+ ZODIAC_SIGN = "zodiac_sign"
36
51
  end
37
52
  end
38
53
  end
@@ -8,11 +8,11 @@ module AssemblyAI
8
8
  # Details of the transcript page. Transcripts are sorted from newest to oldest.
9
9
  # The previous URL always points to a page with older transcripts.
10
10
  class PageDetails
11
- # @return [Integer]
11
+ # @return [Integer] The number of results this page is limited to
12
12
  attr_reader :limit
13
- # @return [Integer]
13
+ # @return [Integer] The actual number of results in the page
14
14
  attr_reader :result_count
15
- # @return [String]
15
+ # @return [String] The URL used to retrieve the current page of transcripts
16
16
  attr_reader :current_url
17
17
  # @return [String] The URL to the next page of transcripts. The previous URL always points to a
18
18
  # page with older transcripts.
@@ -28,9 +28,9 @@ module AssemblyAI
28
28
 
29
29
  OMIT = Object.new
30
30
 
31
- # @param limit [Integer]
32
- # @param result_count [Integer]
33
- # @param current_url [String]
31
+ # @param limit [Integer] The number of results this page is limited to
32
+ # @param result_count [Integer] The actual number of results in the page
33
+ # @param current_url [String] The URL used to retrieve the current page of transcripts
34
34
  # @param prev_url [String] The URL to the next page of transcripts. The previous URL always points to a
35
35
  # page with older transcripts.
36
36
  # @param next_url [String] The URL to the next page of transcripts. The next URL always points to a page
@@ -6,7 +6,7 @@ require "json"
6
6
 
7
7
  module AssemblyAI
8
8
  class Transcripts
9
- # The result of the sentiment analysis model
9
+ # The result of the Sentiment Analysis model
10
10
  class SentimentAnalysisResult
11
11
  # @return [String] The transcript of the sentence
12
12
  attr_reader :text
@@ -46,7 +46,6 @@ module AssemblyAI
46
46
  # @return [AssemblyAI::Transcripts::TopicDetectionModelResult]
47
47
  def self.from_json(json_object:)
48
48
  struct = JSON.parse(json_object, object_class: OpenStruct)
49
- parsed_json = JSON.parse(json_object)
50
49
  status = struct["status"]
51
50
  results = parsed_json["results"]&.map do |v|
52
51
  v = v.to_json
@@ -67,7 +67,7 @@ module AssemblyAI
67
67
  attr_reader :dual_channel
68
68
  # @return [AssemblyAI::Transcripts::SpeechModel]
69
69
  attr_reader :speech_model
70
- # @return [String] The URL to which we send webhooks upon trancription completion
70
+ # @return [String] The URL to which we send webhooks upon transcription completion
71
71
  attr_reader :webhook_url
72
72
  # @return [Integer] The status code we received from your server when delivering your webhook, if a
73
73
  # webhook URL was provided
@@ -172,7 +172,7 @@ module AssemblyAI
172
172
  attr_reader :sentiment_analysis
173
173
  # @return [Array<AssemblyAI::Transcripts::SentimentAnalysisResult>] An array of results for the Sentiment Analysis model, if it is enabled.
174
174
  # See [Sentiment
175
- # analysis](https://www.assemblyai.com/docs/models/sentiment-analysis) for more
175
+ # Analysis](https://www.assemblyai.com/docs/models/sentiment-analysis) for more
176
176
  # information.
177
177
  attr_reader :sentiment_analysis_results
178
178
  # @return [Boolean] Whether [Entity
@@ -230,7 +230,7 @@ module AssemblyAI
230
230
  # ://www.assemblyai.com/docs/models/speech-recognition#dual-channel-transcription)
231
231
  # was enabled in the transcription request, either true or false
232
232
  # @param speech_model [AssemblyAI::Transcripts::SpeechModel]
233
- # @param webhook_url [String] The URL to which we send webhooks upon trancription completion
233
+ # @param webhook_url [String] The URL to which we send webhooks upon transcription completion
234
234
  # @param webhook_status_code [Integer] The status code we received from your server when delivering your webhook, if a
235
235
  # webhook URL was provided
236
236
  # @param webhook_auth [Boolean] Whether webhook authentication details were provided
@@ -300,7 +300,7 @@ module AssemblyAI
300
300
  # can be true or false
301
301
  # @param sentiment_analysis_results [Array<AssemblyAI::Transcripts::SentimentAnalysisResult>] An array of results for the Sentiment Analysis model, if it is enabled.
302
302
  # See [Sentiment
303
- # analysis](https://www.assemblyai.com/docs/models/sentiment-analysis) for more
303
+ # Analysis](https://www.assemblyai.com/docs/models/sentiment-analysis) for more
304
304
  # information.
305
305
  # @param entity_detection [Boolean] Whether [Entity
306
306
  # Detection](https://www.assemblyai.com/docs/models/entity-detection) is enabled,
@@ -443,7 +443,6 @@ module AssemblyAI
443
443
  # @return [AssemblyAI::Transcripts::Transcript]
444
444
  def self.from_json(json_object:)
445
445
  struct = JSON.parse(json_object, object_class: OpenStruct)
446
- parsed_json = JSON.parse(json_object)
447
446
  id = struct["id"]
448
447
  language_model = struct["language_model"]
449
448
  acoustic_model = struct["acoustic_model"]
@@ -16,16 +16,98 @@ module AssemblyAI
16
16
  IT = "it"
17
17
  PT = "pt"
18
18
  NL = "nl"
19
- HI = "hi"
20
- JA = "ja"
19
+ AF = "af"
20
+ SQ = "sq"
21
+ AM = "am"
22
+ AR = "ar"
23
+ HY = "hy"
24
+ AS = "as"
25
+ AZ = "az"
26
+ BA = "ba"
27
+ EU = "eu"
28
+ BE = "be"
29
+ BN = "bn"
30
+ BS = "bs"
31
+ BR = "br"
32
+ BG = "bg"
33
+ MY = "my"
34
+ CA = "ca"
21
35
  ZH = "zh"
36
+ HR = "hr"
37
+ CS = "cs"
38
+ DA = "da"
39
+ ET = "et"
40
+ FO = "fo"
22
41
  FI = "fi"
42
+ GL = "gl"
43
+ KA = "ka"
44
+ EL = "el"
45
+ GU = "gu"
46
+ HT = "ht"
47
+ HA = "ha"
48
+ HAW = "haw"
49
+ HE = "he"
50
+ HI = "hi"
51
+ HU = "hu"
52
+ IS = "is"
53
+ ID = "id"
54
+ JA = "ja"
55
+ JW = "jw"
56
+ KN = "kn"
57
+ KK = "kk"
58
+ KM = "km"
23
59
  KO = "ko"
60
+ LO = "lo"
61
+ LA = "la"
62
+ LV = "lv"
63
+ LN = "ln"
64
+ LT = "lt"
65
+ LB = "lb"
66
+ MK = "mk"
67
+ MG = "mg"
68
+ MS = "ms"
69
+ ML = "ml"
70
+ MT = "mt"
71
+ MI = "mi"
72
+ MR = "mr"
73
+ MN = "mn"
74
+ NE = "ne"
75
+ NO = "no"
76
+ NN = "nn"
77
+ OC = "oc"
78
+ PA = "pa"
79
+ PS = "ps"
80
+ FA = "fa"
24
81
  PL = "pl"
82
+ RO = "ro"
25
83
  RU = "ru"
84
+ SA = "sa"
85
+ SR = "sr"
86
+ SN = "sn"
87
+ SD = "sd"
88
+ SI = "si"
89
+ SK = "sk"
90
+ SL = "sl"
91
+ SO = "so"
92
+ SU = "su"
93
+ SW = "sw"
94
+ SV = "sv"
95
+ TL = "tl"
96
+ TG = "tg"
97
+ TA = "ta"
98
+ TT = "tt"
99
+ TE = "te"
100
+ TH = "th"
101
+ BO = "bo"
26
102
  TR = "tr"
103
+ TK = "tk"
27
104
  UK = "uk"
105
+ UR = "ur"
106
+ UZ = "uz"
28
107
  VI = "vi"
108
+ CY = "cy"
109
+ YI = "yi"
110
+ YO = "yo"
29
111
  end
30
112
  end
31
113
  end
@@ -68,7 +68,6 @@ module AssemblyAI
68
68
  # @return [AssemblyAI::Transcripts::TranscriptListItem]
69
69
  def self.from_json(json_object:)
70
70
  struct = JSON.parse(json_object, object_class: OpenStruct)
71
- parsed_json = JSON.parse(json_object)
72
71
  id = struct["id"]
73
72
  resource_url = struct["resource_url"]
74
73
  status = struct["status"]
@@ -28,14 +28,14 @@ module AssemblyAI
28
28
  attr_reader :dual_channel
29
29
  # @return [AssemblyAI::Transcripts::SpeechModel]
30
30
  attr_reader :speech_model
31
- # @return [String] The URL to which AssemblyAI send webhooks upon trancription completion
31
+ # @return [String] The URL to which AssemblyAI send webhooks upon transcription completion
32
32
  attr_reader :webhook_url
33
33
  # @return [String] The header name which should be sent back with webhook calls
34
34
  attr_reader :webhook_auth_header_name
35
35
  # @return [String] Specify a header name and value to send back with a webhook call for added
36
36
  # security
37
37
  attr_reader :webhook_auth_header_value
38
- # @return [Boolean] Whether Key Phrases is enabled, either true or false
38
+ # @return [Boolean] Enable Key Phrases, either true or false
39
39
  attr_reader :auto_highlights
40
40
  # @return [Integer] The point in time, in milliseconds, to begin transcribing in your media file
41
41
  attr_reader :audio_start_from
@@ -79,16 +79,16 @@ module AssemblyAI
79
79
  # Moderation](https://www.assemblyai.com/docs/models/content-moderation), can be
80
80
  # true or false
81
81
  attr_reader :content_safety
82
- # @return [Integer] The confidence threshold for content moderation. Values must be between 25 and
83
- # 100.
82
+ # @return [Integer] The confidence threshold for the Content Moderation model. Values must be
83
+ # between 25 and 100.
84
84
  attr_reader :content_safety_confidence
85
85
  # @return [Boolean] Enable [Topic
86
86
  # Detection](https://www.assemblyai.com/docs/models/topic-detection), can be true
87
87
  # or false
88
88
  attr_reader :iab_categories
89
- # @return [Boolean] Whether [Automatic language
90
- # /www.assemblyai.com/docs/models/speech-recognition#automatic-language-detection)
91
- # was enabled in the transcription request, either true or false.
89
+ # @return [Boolean] Enable [Automatic language
90
+ # www.assemblyai.com/docs/models/speech-recognition#automatic-language-detection),
91
+ # either true or false.
92
92
  attr_reader :language_detection
93
93
  # @return [Array<AssemblyAI::Transcripts::TranscriptCustomSpelling>] Customize how words are spelled and formatted using to and from values
94
94
  attr_reader :custom_spelling
@@ -115,9 +115,9 @@ module AssemblyAI
115
115
  attr_reader :summary_model
116
116
  # @return [AssemblyAI::Transcripts::SummaryType] The type of summary
117
117
  attr_reader :summary_type
118
- # @return [Boolean] Whether custom topics is enabled, either true or false
118
+ # @return [Boolean] Enable custom topics, either true or false
119
119
  attr_reader :custom_topics
120
- # @return [Array<String>] The list of custom topics provided, if custom topics is enabled
120
+ # @return [Array<String>] The list of custom topics
121
121
  attr_reader :topics
122
122
  # @return [OpenStruct] Additional properties unmapped to the current class definition
123
123
  attr_reader :additional_properties
@@ -134,11 +134,11 @@ module AssemblyAI
134
134
  # ://www.assemblyai.com/docs/models/speech-recognition#dual-channel-transcription)
135
135
  # transcription, can be true or false.
136
136
  # @param speech_model [AssemblyAI::Transcripts::SpeechModel]
137
- # @param webhook_url [String] The URL to which AssemblyAI send webhooks upon trancription completion
137
+ # @param webhook_url [String] The URL to which AssemblyAI send webhooks upon transcription completion
138
138
  # @param webhook_auth_header_name [String] The header name which should be sent back with webhook calls
139
139
  # @param webhook_auth_header_value [String] Specify a header name and value to send back with a webhook call for added
140
140
  # security
141
- # @param auto_highlights [Boolean] Whether Key Phrases is enabled, either true or false
141
+ # @param auto_highlights [Boolean] Enable Key Phrases, either true or false
142
142
  # @param audio_start_from [Integer] The point in time, in milliseconds, to begin transcribing in your media file
143
143
  # @param audio_end_at [Integer] The point in time, in milliseconds, to stop transcribing in your media file
144
144
  # @param word_boost [Array<String>] The list of custom vocabulary to boost transcription probability for
@@ -168,14 +168,14 @@ module AssemblyAI
168
168
  # @param content_safety [Boolean] Enable [Content
169
169
  # Moderation](https://www.assemblyai.com/docs/models/content-moderation), can be
170
170
  # true or false
171
- # @param content_safety_confidence [Integer] The confidence threshold for content moderation. Values must be between 25 and
172
- # 100.
171
+ # @param content_safety_confidence [Integer] The confidence threshold for the Content Moderation model. Values must be
172
+ # between 25 and 100.
173
173
  # @param iab_categories [Boolean] Enable [Topic
174
174
  # Detection](https://www.assemblyai.com/docs/models/topic-detection), can be true
175
175
  # or false
176
- # @param language_detection [Boolean] Whether [Automatic language
177
- # /www.assemblyai.com/docs/models/speech-recognition#automatic-language-detection)
178
- # was enabled in the transcription request, either true or false.
176
+ # @param language_detection [Boolean] Enable [Automatic language
177
+ # www.assemblyai.com/docs/models/speech-recognition#automatic-language-detection),
178
+ # either true or false.
179
179
  # @param custom_spelling [Array<AssemblyAI::Transcripts::TranscriptCustomSpelling>] Customize how words are spelled and formatted using to and from values
180
180
  # @param disfluencies [Boolean] Transcribe Filler Words, like "umm", in your media file; can be true or false
181
181
  # @param sentiment_analysis [Boolean] Enable [Sentiment
@@ -192,8 +192,8 @@ module AssemblyAI
192
192
  # can be true or false
193
193
  # @param summary_model [AssemblyAI::Transcripts::SummaryModel] The model to summarize the transcript
194
194
  # @param summary_type [AssemblyAI::Transcripts::SummaryType] The type of summary
195
- # @param custom_topics [Boolean] Whether custom topics is enabled, either true or false
196
- # @param topics [Array<String>] The list of custom topics provided, if custom topics is enabled
195
+ # @param custom_topics [Boolean] Enable custom topics, either true or false
196
+ # @param topics [Array<String>] The list of custom topics
197
197
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
198
198
  # @return [AssemblyAI::Transcripts::TranscriptOptionalParams]
199
199
  def initialize(language_code: OMIT, punctuate: OMIT, format_text: OMIT, dual_channel: OMIT, speech_model: OMIT,
@@ -283,7 +283,6 @@ module AssemblyAI
283
283
  # @return [AssemblyAI::Transcripts::TranscriptOptionalParams]
284
284
  def self.from_json(json_object:)
285
285
  struct = JSON.parse(json_object, object_class: OpenStruct)
286
- parsed_json = JSON.parse(json_object)
287
286
  language_code = struct["language_code"]
288
287
  punctuate = struct["punctuate"]
289
288
  format_text = struct["format_text"]
@@ -65,7 +65,6 @@ module AssemblyAI
65
65
  # @return [AssemblyAI::Transcripts::TranscriptParagraph]
66
66
  def self.from_json(json_object:)
67
67
  struct = JSON.parse(json_object, object_class: OpenStruct)
68
- parsed_json = JSON.parse(json_object)
69
68
  text = struct["text"]
70
69
  start = struct["start"]
71
70
  end_ = struct["end"]
@@ -65,7 +65,6 @@ module AssemblyAI
65
65
  # @return [AssemblyAI::Transcripts::TranscriptSentence]
66
66
  def self.from_json(json_object:)
67
67
  struct = JSON.parse(json_object, object_class: OpenStruct)
68
- parsed_json = JSON.parse(json_object)
69
68
  text = struct["text"]
70
69
  start = struct["start"]
71
70
  end_ = struct["end"]
@@ -61,7 +61,6 @@ module AssemblyAI
61
61
  # @return [AssemblyAI::Transcripts::TranscriptUtterance]
62
62
  def self.from_json(json_object:)
63
63
  struct = JSON.parse(json_object, object_class: OpenStruct)
64
- parsed_json = JSON.parse(json_object)
65
64
  confidence = struct["confidence"]
66
65
  start = struct["start"]
67
66
  end_ = struct["end"]
data/lib/requests.rb CHANGED
@@ -29,7 +29,7 @@ module AssemblyAI
29
29
  @headers = {
30
30
  "X-Fern-Language": "Ruby",
31
31
  "X-Fern-SDK-Name": "assemblyai",
32
- "X-Fern-SDK-Version": "1.0.0-beta.8",
32
+ "X-Fern-SDK-Version": "1.0.0-beta.9",
33
33
  "Authorization": api_key.to_s
34
34
  }
35
35
  @conn = Faraday.new(headers: @headers) do |faraday|
@@ -70,7 +70,7 @@ module AssemblyAI
70
70
  @headers = {
71
71
  "X-Fern-Language": "Ruby",
72
72
  "X-Fern-SDK-Name": "assemblyai",
73
- "X-Fern-SDK-Version": "1.0.0-beta.8",
73
+ "X-Fern-SDK-Version": "1.0.0-beta.9",
74
74
  "Authorization": api_key.to_s
75
75
  }
76
76
  @conn = Faraday.new(headers: @headers) do |faraday|
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.8
4
+ version: 1.0.0.pre.beta.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-04-15 00:00:00.000000000 Z
11
+ date: 2024-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async-http-faraday