Talk to R

[This article was first published on Revolutions, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Here's a neat demo from Yihui Xie: you can talk to this R graph and customize it with voice commands.

Talk to R

You'll need to click through the link to start the demo in a new window, and you'll need to be using Chrome and allow access to your microphone. (If you can't get it to work on your system, here's a video demo of Yihui using the app.) But with that done, you can use voice commands like "color green" to change the point color, the title, or even add a regression line.

Behind the scenes, this is a simple Shiny app, implemented in the R language. (You can find the R code for the app here.) The voice recognition is handled by the annyang Javascript library, which in turn triggers events captured in R with the Shiny.onInputChange function. It's not perfect (try as I might I couldn't get it to put "customized" instead of "customize" in the title), but it's a very promising prototype of voice-controlled apps in R. 

Yihui Xie: A Shiny app based on annyang that responds to voice input

To leave a comment for the author, please follow the link and comment on their blog: Revolutions.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)