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

Commit 0d244d0

Browse files
authored
Merge pull request #39 from AssemblyAI/fern-bot/07-03-2024-0151PM
🌿 Fern Regeneration -- July 3, 2024
2 parents bdce5f6 + 4e2b4c1 commit 0d244d0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/assemblyai/transcripts/types/paragraphs_response.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class ParagraphsResponse
1111
attr_reader :id
1212
# @return [Float]
1313
attr_reader :confidence
14-
# @return [Integer]
14+
# @return [Float]
1515
attr_reader :audio_duration
1616
# @return [Array<AssemblyAI::Transcripts::TranscriptParagraph>]
1717
attr_reader :paragraphs
@@ -25,7 +25,7 @@ class ParagraphsResponse
2525

2626
# @param id [String]
2727
# @param confidence [Float]
28-
# @param audio_duration [Integer]
28+
# @param audio_duration [Float]
2929
# @param paragraphs [Array<AssemblyAI::Transcripts::TranscriptParagraph>]
3030
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
3131
# @return [AssemblyAI::Transcripts::ParagraphsResponse]
@@ -77,7 +77,7 @@ def to_json(*_args)
7777
def self.validate_raw(obj:)
7878
obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
7979
obj.confidence.is_a?(Float) != false || raise("Passed value for field obj.confidence is not the expected type, validation failed.")
80-
obj.audio_duration.is_a?(Integer) != false || raise("Passed value for field obj.audio_duration is not the expected type, validation failed.")
80+
obj.audio_duration.is_a?(Float) != false || raise("Passed value for field obj.audio_duration is not the expected type, validation failed.")
8181
obj.paragraphs.is_a?(Array) != false || raise("Passed value for field obj.paragraphs is not the expected type, validation failed.")
8282
end
8383
end

lib/assemblyai/transcripts/types/sentences_response.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class SentencesResponse
1111
attr_reader :id
1212
# @return [Float]
1313
attr_reader :confidence
14-
# @return [Integer]
14+
# @return [Float]
1515
attr_reader :audio_duration
1616
# @return [Array<AssemblyAI::Transcripts::TranscriptSentence>]
1717
attr_reader :sentences
@@ -25,7 +25,7 @@ class SentencesResponse
2525

2626
# @param id [String]
2727
# @param confidence [Float]
28-
# @param audio_duration [Integer]
28+
# @param audio_duration [Float]
2929
# @param sentences [Array<AssemblyAI::Transcripts::TranscriptSentence>]
3030
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
3131
# @return [AssemblyAI::Transcripts::SentencesResponse]
@@ -77,7 +77,7 @@ def to_json(*_args)
7777
def self.validate_raw(obj:)
7878
obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
7979
obj.confidence.is_a?(Float) != false || raise("Passed value for field obj.confidence is not the expected type, validation failed.")
80-
obj.audio_duration.is_a?(Integer) != false || raise("Passed value for field obj.audio_duration is not the expected type, validation failed.")
80+
obj.audio_duration.is_a?(Float) != false || raise("Passed value for field obj.audio_duration is not the expected type, validation failed.")
8181
obj.sentences.is_a?(Array) != false || raise("Passed value for field obj.sentences is not the expected type, validation failed.")
8282
end
8383
end

0 commit comments

Comments
 (0)