47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# File 'lib/assemblyai/transcripts/types/transcript_sentence.rb', line 47
def initialize(text:, start:, end_:, confidence:, words:, channel: OMIT, speaker: OMIT,
additional_properties: nil)
@text = text
@start = start
@end_ = end_
@confidence = confidence
@words = words
@channel = channel if channel != OMIT
@speaker = speaker if speaker != OMIT
@additional_properties = additional_properties
@_field_set = {
"text": text,
"start": start,
"end": end_,
"confidence": confidence,
"words": words,
"channel": channel,
"speaker": speaker
}.reject do |_k, v|
v == OMIT
end
end
|