Exemplo n.º 1
0
 def get_audio_from_stt(callback):
     """
     Call the default STT to get an audio sample and return it into the callback method
     :param callback: A callback function
     """
     # call the order listener
     oa = OrderListener(callback=callback)
     oa.start()
Exemplo n.º 2
0
 def get_audio_from_stt(callback):
     """
     Call the default STT to get an audio sample and return it into the callback method
     :param callback: A callback function
     """
     # call the order listener
     ol = OrderListener(callback=callback)
     ol.start()
     ol.join()
     # wait that the STT engine has finish his job (or the neurotransmitter neuron will be killed)
     if ol.stt_instance is not None:
         ol.stt_instance.join()
Exemplo n.º 3
0
 def get_audio_from_stt(callback):
     """
     Call the default STT to get an audio sample and return it into the callback method
     :param callback: A callback function
     """
     # call the order listener
     ol = OrderListener(callback=callback)
     ol.start()
     ol.join()
     # wait that the STT engine has finish his job (or the neurotransmitter neuron will be killed)
     if ol.stt_instance is not None:
         ol.stt_instance.join()