Skip to content

Commit a217817

Browse files
committed
chore(Speech to Text V1): Hand edit for timestamps and word confidence
1 parent 7d60d7f commit a217817

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Scripts/Services/SpeechToText/V1/Model/SpeechRecognitionAlternative.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ public class SpeechRecognitionAlternative
4242
/// `[[\"hello\",0.0,1.2],[\"world\",1.2,2.5]]`. Timestamps are returned only for the best alternative.
4343
/// </summary>
4444
[JsonProperty("timestamps", NullValueHandling = NullValueHandling.Ignore)]
45-
public List<string> Timestamps { get; set; }
45+
public string[][] Timestamps { get; set; }
4646
/// <summary>
4747
/// A confidence score for each word of the transcript as a list of lists. Each inner list consists of two
4848
/// elements: the word and its confidence score in the range of 0.0 to 1.0, for example:
4949
/// `[[\"hello\",0.95],[\"world\",0.866]]`. Confidence scores are returned only for the best alternative and
5050
/// only with results marked as final.
5151
/// </summary>
5252
[JsonProperty("word_confidence", NullValueHandling = NullValueHandling.Ignore)]
53-
public List<string> WordConfidence { get; set; }
53+
public string[][] WordConfidence { get; set; }
5454
}
5555
}

0 commit comments

Comments
 (0)