Coder Social home page Coder Social logo

vimspeak's Introduction

VimSpeak

VimSpeak lets you control Vim with your voice using speech recognition. For instance, you can say “select three words” to type v3w or “change surrounding brackets to parens” to type cs]) or crazy things like “change occurrences of ‘foo’ into ‘bar’, globally, ignore case, confirm” to type :%s/foo/bar/gic. Of course in insert mode you may dictate whatever you like. To learn the grammar, have a look at the unit tests and the code (“use the source, Luke”). It’s quite declarative and easy to follow.

The idea is to run this console app in the background where it will listen for speech and do SendKeys(...) to the foreground app. The foreground app may be any editor expecting Vim keystrokes. It’s been tested with Visual Studio with Jared Parson’s excellent VsVim extention (also written in F#, BTW) and with Sublime Text in Vintage Mode and, of course, with Vim itself.


It is written in F# and makes use System.Speech.Recognition/Synthesis (.NET 3+). It also relies on SendKeys(...) (.NET 1.1+). I’ve only tested it under Win8, but it may work with Mono on other platforms.


This is a little toy I built over the weekend after watching Tavis Rudd's nifty Strange Loop talk here: http://www.infoq.com/presentations/Programming-Voice I wanted to do the same for Vim. It's nowhere near yet, but a start...

There's a demo/explanation of it here: http://www.youtube.com/watch?v=TEBMlXRjhZY

And another demo applying it to a VimGolf challenge: http://www.youtube.com/watch?v=qy84TYvXJbk

Have fun!

vimspeak's People

Contributors

ashleyf avatar roryokane avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.