this is my existing snippet: ``` return when (resp...
# announcements
n
this is my existing snippet:
Copy code
return when (response.resultsCount) {
    0 -> "No match found, try again"
    else -> {
        val speechRecognitionResult = response.resultsList[0]
        when (speechRecognitionResult.alternativesCount) {
            0 -> "No match found, try again"
            else -> speechRecognitionResult.alternativesList[0].transcript
        }
    }
}