Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (12 sloc) 0.311 kb
framework 'AppKit'
recognizer = NSSpeechRecognizer.alloc.init
recognizer.setDelegate self
def speechRecognizer sender, didRecognizeCommand: command
puts "I heard the command #{command}!"
end
recognizer.setCommands [
"Hello, James",
"How are you?",
"Nice weather, isn't it?"
]
recognizer.startListening
Jump to Line
Something went wrong with that request. Please try again.