tools/utilities/pythonlibs/audio/view_audio.py
def on_read_features(self): 
        """ this is the background thread entry point.  So we read the feature data in a loop
        and pass it to the classifier """
        try:           
            while self.reading_input and self.featurizer:
                feature_data = self.featurizer.read()                
                if feature_data is None:
                    break # eof
                else:                                        
                    self.lock.acquire()
                    self.accumulate_feature(feature_data)
                    if self.show_spectrogram:
                        self.accumulate_spectrogram_image(feature_data)
                    self.lock.release()
        except:
            errorType, value, traceback = sys.exc_info()
            print("### Exception reading input: " + str(errorType) + ": " + str(value) + " " + str(traceback))
            while traceback:
                print(traceback.tb_frame.f_code)
                traceback = traceback.tb_next

        self.reading_input = False
        if self.classifier:
            self.classifier.reset()
 this is the background thread entry point.  So we read the feature data in a loop
        and pass it to the classifier 
this is the background thread entry point.  So we read the feature data in a loop
and pass it to the classifier
this is the background thread entry point . So we read the feature data in a loop and pass it to the classifier
def on_read_features(self): 
        try:           
            while self.reading_input and self.featurizer:
                feature_data = self.featurizer.read()                
                if feature_data is None:
                    break 
                else:                                        
                    self.lock.acquire()
                    self.accumulate_feature(feature_data)
                    if self.show_spectrogram:
                        self.accumulate_spectrogram_image(feature_data)
                    self.lock.release()
        except:
            errorType, value, traceback = sys.exc_info()
            print("### Exception reading input: " + str(errorType) + ": " + str(value) + " " + str(traceback))
            while traceback:
                print(traceback.tb_frame.f_code)
                traceback = traceback.tb_next
        self.reading_input = False
        if self.classifier:
            self.classifier.reset()
def on_read_features ( self ) : try : while self . reading_input and self . featurizer : feature_data = self . featurizer . read ( ) if feature_data is None : break else : self . lock . acquire ( ) self . accumulate_feature ( feature_data ) if self . show_spectrogram : self . accumulate_spectrogram_image ( feature_data ) self . lock . release ( ) except : errorType , value , traceback = sys . exc_info ( ) print ( "### Exception reading input: " + str ( errorType ) + ": " + str ( value ) + " " + str ( traceback ) ) while traceback : print ( traceback . tb_frame . f_code ) traceback = traceback . tb_next self . reading_input = False if self . classifier : self . classifier . reset ( )
this is the background thread entry point.
this is the background thread entry point .
""" this is the background thread entry point.  So we read the feature data in a loop
        and pass it to the classifier """ # eof
self