def _speechRecognition(self, req):
    res = SpeechRecognitionSphinx4SrvResponse()
    words = self._sphinx4.performSpeechRecognition(req.path, req.audio_source, req.user)
    rapp_print (words)
    # Error handling - Must be implemented with exceptions
    if len(words) == 1 and words[0] in "Error:":
      res.error = words[0]
      res.words = []
      return res

    for word in words:
      if self._configuration_params._language != "en":
        rapp_print ("Word: #" + word + "#")
        if word == "" or word == '<unk>':
          continue
        res.words.append(self._word_mapping[word])
      else:
        res.words.append(word.replace("'"," "))

    return res;

  ## Performs Sphinx4 configuration
  #
  # @param req  [rapp_platform_ros_communications::SpeechDetectionSphinx4Wrapper::SpeechRecognitionSphinx4ConfigureSrvRequest] The sphinx configuration request
  # @return res [rapp_platform_ros_communications::SpeechDetectionSphinx4Wrapper::SpeechRecognitionSphinx4ConfigureSrvRequest] The sphinx configuration response
dataset/ETHPy150Open rapp-project/rapp-platform/rapp_speech_detection_sphinx4/src/rapp_speech_detection_sphinx4/speech_recognition_sphinx4.py/SpeechRecognitionSphinx4._speechRecognition/swapped operands of `in`