Class: TencentCloud::Mps::V20190612::LiveStreamAsrWordsRecognitionResult

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

Overview

直播 AI Asr 单词识别结果

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(word = nil, startptstime = nil, endptstime = nil, confidence = nil) ⇒ LiveStreamAsrWordsRecognitionResult

Returns a new instance of LiveStreamAsrWordsRecognitionResult.



17065
17066
17067
17068
17069
17070
# File 'lib/v20190612/models.rb', line 17065

def initialize(word=nil, startptstime=nil, endptstime=nil, confidence=nil)
  @Word = word
  @StartPtsTime = startptstime
  @EndPtsTime = endptstime
  @Confidence = confidence
end

Instance Attribute Details

#ConfidenceObject

Parameters:

  • Word:

    语音关键词。

  • StartPtsTime:

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

  • EndPtsTime:

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

  • Confidence:

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



17063
17064
17065
# File 'lib/v20190612/models.rb', line 17063

def Confidence
  @Confidence
end

#EndPtsTimeObject

Parameters:

  • Word:

    语音关键词。

  • StartPtsTime:

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

  • EndPtsTime:

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

  • Confidence:

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



17063
17064
17065
# File 'lib/v20190612/models.rb', line 17063

def EndPtsTime
  @EndPtsTime
end

#StartPtsTimeObject

Parameters:

  • Word:

    语音关键词。

  • StartPtsTime:

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

  • EndPtsTime:

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

  • Confidence:

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



17063
17064
17065
# File 'lib/v20190612/models.rb', line 17063

def StartPtsTime
  @StartPtsTime
end

#WordObject

Parameters:

  • Word:

    语音关键词。

  • StartPtsTime:

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

  • EndPtsTime:

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

  • Confidence:

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



17063
17064
17065
# File 'lib/v20190612/models.rb', line 17063

def Word
  @Word
end

Instance Method Details

#deserialize(params) ⇒ Object



17072
17073
17074
17075
17076
17077
# File 'lib/v20190612/models.rb', line 17072

def deserialize(params)
  @Word = params['Word']
  @StartPtsTime = params['StartPtsTime']
  @EndPtsTime = params['EndPtsTime']
  @Confidence = params['Confidence']
end