Skip to content

Commit

Permalink
fix(Speech to Text): Revise SpeechRecognitionAlternative model
Browse files Browse the repository at this point in the history
  • Loading branch information
mediumTaj committed May 22, 2020
1 parent c19361d commit 01f0627
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ public class SpeechRecognitionAlternative
/// `[["hello",0.0,1.2],["world",1.2,2.5]]`. Timestamps are returned only for the best alternative.
/// </summary>
[JsonProperty("timestamps", NullValueHandling = NullValueHandling.Ignore)]
public List<string> Timestamps { get; set; }
public List<List<string>> Timestamps { get; set; }
/// <summary>
/// A confidence score for each word of the transcript as a list of lists. Each inner list consists of two
/// elements: the word and its confidence score in the range of 0.0 to 1.0, for example:
/// `[["hello",0.95],["world",0.866]]`. Confidence scores are returned only for the best alternative and only
/// with results marked as final.
/// </summary>
[JsonProperty("word_confidence", NullValueHandling = NullValueHandling.Ignore)]
public List<string> WordConfidence { get; set; }
public List<List<string>> WordConfidence { get; set; }
}
}

0 comments on commit 01f0627

Please sign in to comment.