This repository was archived by the owner on Apr 1, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
lib/assemblyai/transcripts/types Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ class ParagraphsResponse
11
11
attr_reader :id
12
12
# @return [Float]
13
13
attr_reader :confidence
14
- # @return [Integer ]
14
+ # @return [Float ]
15
15
attr_reader :audio_duration
16
16
# @return [Array<AssemblyAI::Transcripts::TranscriptParagraph>]
17
17
attr_reader :paragraphs
@@ -25,7 +25,7 @@ class ParagraphsResponse
25
25
26
26
# @param id [String]
27
27
# @param confidence [Float]
28
- # @param audio_duration [Integer ]
28
+ # @param audio_duration [Float ]
29
29
# @param paragraphs [Array<AssemblyAI::Transcripts::TranscriptParagraph>]
30
30
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
31
31
# @return [AssemblyAI::Transcripts::ParagraphsResponse]
@@ -77,7 +77,7 @@ def to_json(*_args)
77
77
def self . validate_raw ( obj :)
78
78
obj . id . is_a? ( String ) != false || raise ( "Passed value for field obj.id is not the expected type, validation failed." )
79
79
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." )
81
81
obj . paragraphs . is_a? ( Array ) != false || raise ( "Passed value for field obj.paragraphs is not the expected type, validation failed." )
82
82
end
83
83
end
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ class SentencesResponse
11
11
attr_reader :id
12
12
# @return [Float]
13
13
attr_reader :confidence
14
- # @return [Integer ]
14
+ # @return [Float ]
15
15
attr_reader :audio_duration
16
16
# @return [Array<AssemblyAI::Transcripts::TranscriptSentence>]
17
17
attr_reader :sentences
@@ -25,7 +25,7 @@ class SentencesResponse
25
25
26
26
# @param id [String]
27
27
# @param confidence [Float]
28
- # @param audio_duration [Integer ]
28
+ # @param audio_duration [Float ]
29
29
# @param sentences [Array<AssemblyAI::Transcripts::TranscriptSentence>]
30
30
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
31
31
# @return [AssemblyAI::Transcripts::SentencesResponse]
@@ -77,7 +77,7 @@ def to_json(*_args)
77
77
def self . validate_raw ( obj :)
78
78
obj . id . is_a? ( String ) != false || raise ( "Passed value for field obj.id is not the expected type, validation failed." )
79
79
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." )
81
81
obj . sentences . is_a? ( Array ) != false || raise ( "Passed value for field obj.sentences is not the expected type, validation failed." )
82
82
end
83
83
end
You can’t perform that action at this time.
0 commit comments