robotemi/sdk

Speech to Text conversion

Ahad-Haque opened this issue · 3 comments

Hi, I'm trying to create an app in Temi where I want to show the words that user says. So, how can I convert speech into Text and show it?

You can use wakeup(), and get the text from onAsrResult()

Can you please provide an example? @zjn0505
here is what im trying to get,

robot = Robot.getInstance()
private fun listen(){
robot.wakeup()
//String text = Please provide your implementation on getting text from onAsrResult()
etSpeechToTextOutput.setText(text)
}

Thank you very much!

Nevermind I implemented the feature successfully. Thank you very much. @zjn0505