tools/utilities/pythonlibs/audio/view_audio.py
def main(featurizer_model=None, classifier=None, sample_rate=None, channels=None, input_device=None, categories=None, 
        image_width=80, threshold=None, wav_file=None, clear=5, serial=None):
    """ Main function to create root UI and AudioDemo object, then run the main UI loop """
    root = tk.Tk()
    root.geometry("800x800")
    app = AudioDemo(featurizer_model, classifier, sample_rate, channels, input_device, categories, image_width, 
                    threshold, wav_file, clear, serial)
    root.bind("+", app.on_plus_key)
    root.bind("-", app.on_minus_key)
    while True:
        try:
            root.mainloop()
            break
        except UnicodeDecodeError:
            pass
 Main function to create root UI and AudioDemo object, then run the main UI loop 
Main function to create root UI and AudioDemo object, then run the main UI loop
Main function to create root UI and AudioDemo object then run the main UI loop
def main(featurizer_model=None, classifier=None, sample_rate=None, channels=None, input_device=None, categories=None, 
        image_width=80, threshold=None, wav_file=None, clear=5, serial=None):
    root = tk.Tk()
    root.geometry("800x800")
    app = AudioDemo(featurizer_model, classifier, sample_rate, channels, input_device, categories, image_width, 
                    threshold, wav_file, clear, serial)
    root.bind("+", app.on_plus_key)
    root.bind("-", app.on_minus_key)
    while True:
        try:
            root.mainloop()
            break
        except UnicodeDecodeError:
            pass
def main ( featurizer_model = None , classifier = None , sample_rate = None , channels = None , input_device = None , categories = None , image_width = 80 , threshold = None , wav_file = None , clear = 5 , serial = None ) : root = tk . Tk ( ) root . geometry ( "800x800" ) app = AudioDemo ( featurizer_model , classifier , sample_rate , channels , input_device , categories , image_width , threshold , wav_file , clear , serial ) root . bind ( "+" , app . on_plus_key ) root . bind ( "-" , app . on_minus_key ) while True : try : root . mainloop ( ) break except UnicodeDecodeError : pass
Main function to create root UI and AudioDemo object, then run the main UI loop
Main function to create root UI and AudioDemo object then run the main UI loop
""" Main function to create root UI and AudioDemo object, then run the main UI loop """
featurizer_model
classifier
sample_rate
channels
input_device
categories
image_width
threshold
wav_file
clear
serial