def METHOD_NAME(self, results):
    texts = []
    matches = results.getStringArrayList(SpeechResults)
    for match in matches.toArray():
        if isinstance(match, bytes):
            match = match.decode('utf-8')
        texts.append(match)
    if texts and self.result_callback:
        self.result_callback(texts)