Open jypelle opened 2 years ago
var jsonData = { "results": [{ "keywords_result": { "blocked": [{ "normalized_text": "blocked", "start_time": 1.1, "confidence": 0.64, "end_time": 1.68 }] }, "alternatives": [{ "confidence": 0.81, "transcript": "your Name is Charlie " }, { "transcript": "your Name is Charlie and " }, { "transcript": "your Name is Charlies " } ], "final": true }], "result_index": 0 }; for (var i = 0; i < jsonData.results[0].alternatives.length; i++) { if (jsonData.results[0].alternatives[i].confidence > 0) { console.log(jsonData.results[0].alternatives[i].transcript); } }
var jsonData = { "results": [{ "keywords_result": { "blocked": [{ "normalized_text": "blocked", "start_time": 1.1, "confidence": 0.64, "end_time": 1.68 }] }, "alternatives": [{ "confidence": 0.81, "transcript": "your Name is Charlie " }, { "transcript": "your Name is Charlie and " }, { "transcript": "your Name is Charlies " } ], "final": true }], "result_index": 0 }; for (var i = 0; i < jsonData.results[0].alternatives.length; i++) { if (jsonData.results[0].alternatives[i].confidence > 0) { console.log(jsonData.results[0].alternatives[i].transcript); } }