UtteranceAnalysis
public struct UtteranceAnalysis : Codable, Equatable
The results of the analysis for an utterance of the input content.
-
The unique identifier of the utterance. The first utterance has ID 0, and the ID of each subsequent utterance is incremented by one.
Declaration
Swift
public var utteranceID: Int
-
The text of the utterance.
Declaration
Swift
public var utteranceText: String
-
An array of
ToneChatScore
objects that provides results for the most prevalent tones of the utterance. The array includes results for any tone whose score is at least 0.5. The array is empty if no tone has a score that meets this threshold.Declaration
Swift
public var tones: [ToneChatScore]
-
2017-09-21
: An error message if the utterance contains more than 500 characters. The service does not analyze the utterance.2016-05-19
: Not returned.Declaration
Swift
public var error: String?