Talk to R

January 5, 2015
By

(This article was first published on Revolutions, and kindly contributed to R-bloggers)

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 on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...



If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.

Search R-bloggers


Sponsors

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)