public SpeechToTextResult() { scenario = ""; name = ""; lexical = ""; confidence = 0; properties = new SpeechToTextConfidence(); }
public SpeechToTextHeader() { status = string.Empty; scenario = string.Empty; name = string.Empty; lexical = string.Empty; HttpError = string.Empty; properties = new SpeechToTextConfidence(); }
public SpeechToTextHeader(JsonObject jsonObject) { status = jsonObject.GetNamedString(statusKey, ""); scenario = jsonObject.GetNamedString(scenarioKey, ""); name = jsonObject.GetNamedString(nameKey, ""); lexical = jsonObject.GetNamedString(lexicalKey, ""); JsonObject propertiesObject = jsonObject.GetNamedObject(propertiesKey, null); if (propertiesObject != null) { properties = new SpeechToTextConfidence(propertiesObject); } }
public SpeechToTextResult(JsonObject jsonObject) { scenario = jsonObject.GetNamedString(scenarioKey, ""); name = jsonObject.GetNamedString(nameKey, ""); lexical = jsonObject.GetNamedString(lexicalKey, ""); string s = jsonObject.GetNamedString(confidenceKey, ""); double.TryParse(s, out confidence); JsonObject propertiesObject = jsonObject.GetNamedObject(propertiesKey, null); if (propertiesObject != null) { properties = new SpeechToTextConfidence(propertiesObject); } }