Skip to content

Commit 1ecb7b8

Browse files
committed
chore(speech to text): Apply manual changes
1 parent 7d62fc3 commit 1ecb7b8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/IBM.WatsonDeveloperCloud.SpeechToText.v1/ISpeechToTextService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public partial interface ISpeechToTextService
2525
{
2626
SpeechModel GetModel(string modelId, Dictionary<string, object> customData = null);
2727
SpeechModels ListModels(Dictionary<string, object> customData = null);
28-
SpeechRecognitionResults Recognize(byte[] audio, string contentType, string model = null, string customizationId = null, string acousticCustomizationId = null, string baseModelVersion = null, double? customizationWeight = null, long? inactivityTimeout = null, List<string> keywords = null, float? keywordsThreshold = null, long? maxAlternatives = null, float? wordAlternativesThreshold = null, bool? wordConfidence = null, bool? timestamps = null, bool? profanityFilter = null, bool? smartFormatting = null, bool? speakerLabels = null, Dictionary<string, object> customData = null);
28+
SpeechRecognitionResults RecognizeSessionless(byte[] audio, string contentType, string model = null, string customizationId = null, string acousticCustomizationId = null, string baseModelVersion = null, double? customizationWeight = null, long? inactivityTimeout = null, List<string> keywords = null, float? keywordsThreshold = null, long? maxAlternatives = null, float? wordAlternativesThreshold = null, bool? wordConfidence = null, bool? timestamps = null, bool? profanityFilter = null, bool? smartFormatting = null, bool? speakerLabels = null, Dictionary<string, object> customData = null);
2929
RecognitionJob CheckJob(string id, Dictionary<string, object> customData = null);
3030
RecognitionJobs CheckJobs(Dictionary<string, object> customData = null);
3131
RecognitionJob CreateJob(byte[] audio, string contentType, string model = null, string callbackUrl = null, string events = null, string userToken = null, long? resultsTtl = null, string customizationId = null, string acousticCustomizationId = null, string baseModelVersion = null, double? customizationWeight = null, long? inactivityTimeout = null, List<string> keywords = null, float? keywordsThreshold = null, long? maxAlternatives = null, float? wordAlternativesThreshold = null, bool? wordConfidence = null, bool? timestamps = null, bool? profanityFilter = null, bool? smartFormatting = null, bool? speakerLabels = null, Dictionary<string, object> customData = null);

src/IBM.WatsonDeveloperCloud.SpeechToText.v1/Model/SpeechRecognitionAlternative.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ public class SpeechRecognitionAlternative : BaseModel
4242
/// `[[\"hello\",0.0,1.2],[\"world\",1.2,2.5]]`. 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]]`. Returned only for the best alternative and only with results marked
5050
/// 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

5656
}

src/IBM.WatsonDeveloperCloud.SpeechToText.v1/SpeechToTextService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ public SpeechModels ListModels(Dictionary<string, object> customData = null)
286286
/// default to false)</param>
287287
/// <param name="customData">Custom data object to pass data including custom request headers.</param>
288288
/// <returns><see cref="SpeechRecognitionResults" />SpeechRecognitionResults</returns>
289-
public SpeechRecognitionResults Recognize(byte[] audio, string contentType, string model = null, string customizationId = null, string acousticCustomizationId = null, string baseModelVersion = null, double? customizationWeight = null, long? inactivityTimeout = null, List<string> keywords = null, float? keywordsThreshold = null, long? maxAlternatives = null, float? wordAlternativesThreshold = null, bool? wordConfidence = null, bool? timestamps = null, bool? profanityFilter = null, bool? smartFormatting = null, bool? speakerLabels = null, Dictionary<string, object> customData = null)
289+
public SpeechRecognitionResults RecognizeSessionless(byte[] audio, string contentType, string model = null, string customizationId = null, string acousticCustomizationId = null, string baseModelVersion = null, double? customizationWeight = null, long? inactivityTimeout = null, List<string> keywords = null, float? keywordsThreshold = null, long? maxAlternatives = null, float? wordAlternativesThreshold = null, bool? wordConfidence = null, bool? timestamps = null, bool? profanityFilter = null, bool? smartFormatting = null, bool? speakerLabels = null, Dictionary<string, object> customData = null)
290290
{
291291
if (audio == null)
292292
throw new ArgumentNullException(nameof(audio));

0 commit comments

Comments
 (0)