Skip to content

Commit 667d4bc

Browse files
authored
Merge branch 'master' into mamoonraja-patch-1
2 parents 5de8d5a + b75a19c commit 667d4bc

File tree

8 files changed

+10
-9
lines changed

8 files changed

+10
-9
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 2.15.0
2+
current_version = 2.15.3
33
commit = True
44
message = [skip ci] docs: Update version numbers from {current_version} -> {new_version}
55

Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ PROJECT_NAME = "IBM Watson SDK for Unity"
3838
# could be handy for archiving the generated documentation or if some version
3939
# control system is used.
4040

41-
PROJECT_NUMBER = 2.15.0
41+
PROJECT_NUMBER = 2.15.3
4242

4343
# Using the PROJECT_BRIEF tag one can provide an optional one line description
4444
# for a project that appears at the top of each page and should give viewer a

Examples/ServiceExamples/Scripts/ExampleCustomHeaders.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public bool Active
182182
_speechToText.EnableWordConfidence = true;
183183
_speechToText.EnableTimestamps = true;
184184
_speechToText.SilenceThreshold = 0.01f;
185-
_speechToText.MaxAlternatives = 0;
185+
_speechToText.MaxAlternatives = 1;
186186
_speechToText.EnableInterimResults = true;
187187
_speechToText.OnError = OnError;
188188
_speechToText.InactivityTimeout = -1;

Examples/ServiceExamples/Scripts/ExampleStreaming.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public bool Active
102102
_service.EnableWordConfidence = true;
103103
_service.EnableTimestamps = true;
104104
_service.SilenceThreshold = 0.01f;
105-
_service.MaxAlternatives = 0;
105+
_service.MaxAlternatives = 1;
106106
_service.EnableInterimResults = true;
107107
_service.OnError = OnError;
108108
_service.InactivityTimeout = -1;

Examples/ServiceExamples/Scripts/ExampleStreamingSplitSamples.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public bool Active
108108
_service.EnableWordConfidence = true;
109109
_service.EnableTimestamps = true;
110110
_service.SilenceThreshold = 0.01f;
111-
_service.MaxAlternatives = 0;
111+
_service.MaxAlternatives = 1;
112112
_service.EnableInterimResults = true;
113113
_service.OnError = OnError;
114114
_service.InactivityTimeout = -1;

Scripts/Services/SpeechToText/v1/SpeechToText.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1298,7 +1298,6 @@ private SpeechRecognitionEvent ParseRecognizeResponse(IDictionary resp)
12981298
if (ialternative.Contains("word_confidence"))
12991299
{
13001300
IList iconfidence = ialternative["word_confidence"] as IList;
1301-
13021301
WordConfidence[] confidence = new WordConfidence[iconfidence.Count];
13031302
for (int i = 0; i < iconfidence.Count; ++i)
13041303
{
@@ -1308,7 +1307,9 @@ private SpeechRecognitionEvent ParseRecognizeResponse(IDictionary resp)
13081307

13091308
WordConfidence wc = new WordConfidence();
13101309
wc.Word = (string)iwordconf[0];
1311-
wc.Confidence = (double)iwordconf[1];
1310+
string wordConf = iwordconf[1].ToString();
1311+
double.TryParse(wordConf, out double wordConfDouble);
1312+
wc.Confidence = wordConfDouble;
13121313
confidence[i] = wc;
13131314
}
13141315

Scripts/Services/VisualRecognition/v3/VisualRecognition.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ public bool DetectFaces(string url, SuccessCallback<DetectedFaces> successCallba
472472
/// <param name="acceptLanguage">The language used for the value of `gender_label` in the response. (optional,
473473
/// default to en)</param>
474474
/// <param name="customData">Custom data.</param>
475-
public bool DetectFaces(SuccessCallback<DetectedFaces> successCallback, FailCallback failCallback, string imagePath, string acceptLanguage, Dictionary<string, object> customData = null)
475+
public bool DetectFaces(SuccessCallback<DetectedFaces> successCallback, FailCallback failCallback, string imagePath, string acceptLanguage = null, Dictionary<string, object> customData = null)
476476
{
477477
if (successCallback == null)
478478
throw new ArgumentNullException("successCallback");

Scripts/Utilities/Constants.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public static class Path
4747
public static class String
4848
{
4949
/// <exclude />
50-
public const string Version = "watson-apis-unity-sdk-2.15.0";
50+
public const string Version = "watson-apis-unity-sdk-2.15.3";
5151
/// <exclude />
5252
public const string DebugDispalyQuality = "Quality: {0}";
5353
/// <summary>

0 commit comments

Comments
 (0)