code: def callback(recognizer, audio):
      try:
          # You can download the data here: http://download.tensorflow.org/models/speech_commands_v0.01.zip
          spoken = recognizer.recognize_tensorflow(
              audio,
              tensor_graph="speech_recognition/tensorflow-data/conv_actions_frozen.pb",
              tensor_label="speech_recognition/tensorflow-data/conv_actions_labels.txt",
          )
          print(spoken)
      except sr.UnknownValueError:
          print("Tensorflow could not understand audio")
      except sr.RequestError as e:
          print(
              "Could not request results from Tensorflow service; {0}".format(
                  e
              )
          )
  
imports: import time
  import speech_recognition
  from tensorflow.contrib.framework.python.ops import audio_ops
label_desc: Use image node_id 1 for calling a global function with example usage: callback(recognizer, audio) without return types