Answers.Body: <p>While you can use NLTK for analyzing and parsing the text obtained from the speech to text interface (e.g. Siri), there are higher level APIs available for this. The class of problem you are trying to solve in NLP is "intent detection". </p>
  
  <p>There are several open source and commerical APIs available for this including Amazon Alexa, Google Cloud Natural Language, Azure, as well as libraries like RASA NLU, etc.</p>
  
  <p>The high level flow of your program will be:</p>
  
  <ul>
  <li>Record/receive spoken audio</li>
  <li>Convert audio speech to text</li>
  <li>Detect intent of the text command using an intent detection library</li>
  <li>Use the intent to feed a script/automation that generates the code in your IDE</li>
  </ul>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-30T00:52:45.977Z
Answers.LastActivityDate: 2018-01-30T00:52:45.977Z
Answers.UserDisplayName: Adnan S
Answers.Body: <p>you could implement a simple TTS system that can translate your voice line by line to code , but it would of no use . you cant express code in a line-by-line manner. Coding is a highly iterative process at first you come up with a rough sketch for which you add details later on , and from NLP point of view this is a highly ambitious project . </p>
  
  <p>At the heart almost all of 
  ai techniques (neural networks) are functions that map one domain to another , you cant map natural language sentences to instructions in code.</p>
  
  <p>However you can implement a tts system for a small language like LOGO. </p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-29T13:06:33.183Z
Answers.Text: TTS = text-to-speech; you presumably mean ASR (automatic speech recognition) or STT (speech-to-text).
Answers.UserDisplayName: Oliver Mason
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-29T06:38:10.127Z
Answers.LastActivityDate: 2018-06-29T06:38:10.127Z
Answers.UserDisplayName: thecomplexitytheorist
Body: <p>I want to develop (in Java) a voice plugin for Eclipse on a Mac that helps me jot down high-level classes and stub methods. For example, I would like to command it to create a class that inherits from <code>X</code> and add a method that returns <code>String</code>.</p>
  
  <p>Could somebody help me point out the right material to learn to achieve that?</p>
  
  <p>I don't mind using an existing solution if it exists. As far as I understand, I would have to use some Siri interface and use nltk to convert the natural text into commands. Maybe there's some chatbot library that saves me some boilerpate NLP code to directly jump on to writing grammar or selecting sentence patterns.</p>
  
Tags: <natural-language-processing><reference-request><chat-bots>
Title: Is there an AI system that automatically generates classes and methods by giving it voice commands?
UserDisplayName: comiventor
ThreadText: # Is there an AI system that automatically generates classes and methods by giving it voice commands?
  
  (Asked by: username_0 on 2018-01-23)
  
  I want to develop (in Java) a voice plugin for Eclipse on a Mac that helps me jot down high-level classes and stub methods. For example, I would like to command it to create a class that inherits from `X` and add a method that returns `String`.
  
  Could somebody help me point out the right material to learn to achieve that?
  
  I don't mind using an existing solution if it exists. As far as I understand, I would have to use some Siri interface and use nltk to convert the natural text into commands. Maybe there's some chatbot library that saves me some boilerpate NLP code to directly jump on to writing grammar or selecting sentence patterns.
  
  **Tags:** natural-language-processing, reference-request, chat-bots
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2018-01-30. Score: 1
  
  While you can use NLTK for analyzing and parsing the text obtained from the speech to text interface (e.g. Siri), there are higher level APIs available for this. The class of problem you are trying to solve in NLP is "intent detection".
  
  There are several open source and commerical APIs available for this including Amazon Alexa, Google Cloud Natural Language, Azure, as well as libraries like RASA NLU, etc.
  
  The high level flow of your program will be:
  
  * Record/receive spoken audio
  * Convert audio speech to text
  * Detect intent of the text command using an intent detection library
  * Use the intent to feed a script/automation that generates the code in your IDE
  
  
  ---
  
  ### Answer by username_2 on 2018-06-29. Score: 0
  
  you could implement a simple TTS system that can translate your voice line by line to code , but it would of no use . you cant express code in a line-by-line manner. Coding is a highly iterative process at first you come up with a rough sketch for which you add details later on , and from NLP point of view this is a highly ambitious project .
  
  At the heart almost all of
  ai techniques (neural networks) are functions that map one domain to another , you cant map natural language sentences to instructions in code.
  
  However you can implement a tts system for a small language like LOGO.
  
  > **Comments:**
  > **username_3**: TTS = text-to-speech; you presumably mean ASR (automatic speech recognition) or STT (speech-to-text).  
  
  ---
  
  