Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
for(int count = 0; count < results.getAlternatives().size(); count++) {
// Get object by current count
SpeechReturnDTO speech = (SpeechReturnDTO) results.getAlternatives().toArray()[count];
// Inserting value into tXMLMap
output_row.confidence[count] = speech.getConfidence();
output_row.transcript[count] = speech.getTranscript();
}
for(int count = 0; count < results.getAlternatives().size(); count++) {
// Get object by current count
SpeechReturnDTO speech = (SpeechReturnDTO) results.getAlternatives().toArray()[count];
// Inserting value into tXMLMap
output_row.body.result.alternative[count].confidence = speech.getConfidence();
output_row.body.result.alternative[count].transcript = speech.getTranscript();
// Copying first data
output_row[0].confidence = alternative[0].confidence;
output_row[0].transcript = alternative[0].transcript;
// Copying second data
output_row[1].confidence = alternative[1].confidence;
output_row[1].confidence = alternative[1].confidence;
// and so on...