title: How to make custom speech recognition in python?
body: <p>I tried out following code: </p>
  
  <pre><code>import speech_recognition as sr
  
  r = sr.Recognizer()
  with sr.Microphone() as source:
      r.adjust_for_ambient_noise(source)
      print("Say something!")
      audio = r.listen(source)
  
  try:
     text = r.recognize_google(audio)
     print("You said: {}".format(text))
  except:
     print("Sorry")
  </code></pre>
  
  <p>This code works fine and print whatever i say. </p>
  
  <p>But i want something like: </p>
  
  <p><code>If someone says: i want to create a new article / create a new article /create article....</code></p>
  
  <p>something like that</p>
  
  <p>Then i want to get output like: </p>
  
  <p><code>create a new article</code></p>
  
  <p>Basically i want to know how to do this(steps) or what modules can help me.</p>
  
  <p>Any help is appreciated</p>