Class: TencentCloud::Mps::V20190612::AiRecognitionTaskAsrFullTextSegmentItem

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20190612/models.rb

Overview

语音全文识别片段。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(confidence = nil, starttimeoffset = nil, endtimeoffset = nil, text = nil, wordlist = nil) ⇒ AiRecognitionTaskAsrFullTextSegmentItem

Returns a new instance of AiRecognitionTaskAsrFullTextSegmentItem.



2862
2863
2864
2865
2866
2867
2868
# File 'lib/v20190612/models.rb', line 2862

def initialize(confidence=nil, starttimeoffset=nil, endtimeoffset=nil, text=nil, wordlist=nil)
  @Confidence = confidence
  @StartTimeOffset = starttimeoffset
  @EndTimeOffset = endtimeoffset
  @Text = text
  @Wordlist = wordlist
end

Instance Attribute Details

#ConfidenceObject

Parameters:

  • Confidence:

    识别片段置信度。取值:0~100。

  • StartTimeOffset:

    识别片段起始的偏移时间,单位:秒。

  • EndTimeOffset:

    识别片段终止的偏移时间,单位:秒。

  • Text:

    识别文本。

  • Wordlist:

    字词时间戳信息。



2860
2861
2862
# File 'lib/v20190612/models.rb', line 2860

def Confidence
  @Confidence
end

#EndTimeOffsetObject

Parameters:

  • Confidence:

    识别片段置信度。取值:0~100。

  • StartTimeOffset:

    识别片段起始的偏移时间,单位:秒。

  • EndTimeOffset:

    识别片段终止的偏移时间,单位:秒。

  • Text:

    识别文本。

  • Wordlist:

    字词时间戳信息。



2860
2861
2862
# File 'lib/v20190612/models.rb', line 2860

def EndTimeOffset
  @EndTimeOffset
end

#StartTimeOffsetObject

Parameters:

  • Confidence:

    识别片段置信度。取值:0~100。

  • StartTimeOffset:

    识别片段起始的偏移时间,单位:秒。

  • EndTimeOffset:

    识别片段终止的偏移时间,单位:秒。

  • Text:

    识别文本。

  • Wordlist:

    字词时间戳信息。



2860
2861
2862
# File 'lib/v20190612/models.rb', line 2860

def StartTimeOffset
  @StartTimeOffset
end

#TextObject

Parameters:

  • Confidence:

    识别片段置信度。取值:0~100。

  • StartTimeOffset:

    识别片段起始的偏移时间,单位:秒。

  • EndTimeOffset:

    识别片段终止的偏移时间,单位:秒。

  • Text:

    识别文本。

  • Wordlist:

    字词时间戳信息。



2860
2861
2862
# File 'lib/v20190612/models.rb', line 2860

def Text
  @Text
end

#WordlistObject

Parameters:

  • Confidence:

    识别片段置信度。取值:0~100。

  • StartTimeOffset:

    识别片段起始的偏移时间,单位:秒。

  • EndTimeOffset:

    识别片段终止的偏移时间,单位:秒。

  • Text:

    识别文本。

  • Wordlist:

    字词时间戳信息。



2860
2861
2862
# File 'lib/v20190612/models.rb', line 2860

def Wordlist
  @Wordlist
end

Instance Method Details

#deserialize(params) ⇒ Object



2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
# File 'lib/v20190612/models.rb', line 2870

def deserialize(params)
  @Confidence = params['Confidence']
  @StartTimeOffset = params['StartTimeOffset']
  @EndTimeOffset = params['EndTimeOffset']
  @Text = params['Text']
  unless params['Wordlist'].nil?
    @Wordlist = []
    params['Wordlist'].each do |i|
      wordresult_tmp = WordResult.new
      wordresult_tmp.deserialize(i)
      @Wordlist << wordresult_tmp
    end
  end
end