robotemi / sdk

temi is an unparalleled robotic platform introducing a new dimension of development - movement. Using temi’s SDK, developers can create new functionalities and introduce new use cases via temi’s Android tablet. temi’s movement and navigation capabilities run off of it's Linux computer and uses a set of 16 sensors including a Lidar, depth cameras, driving cameras, and microphones. We encourage our developer community to suggest and request expanded functionality within the SDK and we will adhere to your needs. We want to enable you to create skills like never seen before! We will be constantly improving the SDK and its documentation. Please feel free to reach out to us with any questions or thoughts at developers@robotemi.com
https://www.robotemi.com/
201 stars 85 forks source link

Speech to Text conversion #445

Closed Ahad-Haque closed 3 months ago

Ahad-Haque commented 3 months ago

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?

zjn0505 commented 3 months ago

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

Ahad-Haque commented 3 months ago

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!

Ahad-Haque commented 3 months ago

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