Пример #1
0
 public SpeechToTextHeader()
 {
     status     = string.Empty;
     scenario   = string.Empty;
     name       = string.Empty;
     lexical    = string.Empty;
     HttpError  = string.Empty;
     properties = new SpeechToTextConfidence();
 }
Пример #2
0
        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);
            }
        }