0

I am making a package for github's atom. In that I need to record voice and output it on the window.

How do I record voice and output is as text in coffeeScript?

optimusprime
  • 149
  • 7
  • 1
    Find a voice-to-text library. If you can't find one in JavaScript, find one that you can compile to JS (Emscripten for C/C++, Ruby on Rails for Ruby, etc.). Also, I'm not sure if this is even possible. – Isiah Meadows Jul 23 '14 at 09:49
  • 1
    I find this to be a very intriguing queston, even though it lacks some effort. A pity it gets downvoted so fast without any hint of explanation. – frhd Jul 23 '14 at 10:17

1 Answers1

1

1. Record Voice

This has been asked a lot:

2. Output as text

Now comes the tricky part (not that the previous step is easy): You need speech recognition. Here are some js libraries you could use:

Alternative: Web Speech API

If you're up to the task of building your own speech recognition and want to learn new stuff, go ahead. I've done it once with tcl/tk and there was a lot of learning but also fun involved. However, it takes some time to get it right, i.e. get usable results. If you don't want to reinvent the wheel, just use the Web Speech API:

Community
  • 1
  • 1
frhd
  • 7,348
  • 5
  • 20
  • 39
  • Thanks! Will go through all of that! – optimusprime Jul 23 '14 at 12:38
  • I read through almost all of that and yes it is indeed possible for a web app (Though there might be some bugs while actually doing it). I am particularly looking for something for the Github Atom Editor. Do you think Pocketsphinx.js can be used from Atom? I am relatively knew to JS. – optimusprime Jul 23 '14 at 18:51
  • 1
    Github's Atom is based on Node.js and WebKit, using CoffeeScript, HTML and CSS. I would assume that it's possible to fully integrate Pocketsphinx.js. I certainly would like to see a speech to text feature in there! – frhd Jul 24 '14 at 07:37
  • 1
    @frhd did you find a way to run Pocketsphinx on Atom package? – Mouhamad Kawas Nov 22 '16 at 10:23
  • @frhd did you try any library to get voice in Atom? – Mouhamad Kawas Nov 22 '16 at 18:04
  • @MouhamadKawas: I haven't tried. I don't use Atom, actually. – frhd Nov 27 '16 at 17:02