Exemplo n.º 1
0
 def show_test_vad_open(self, path=path_to_test):
     askopenfile = filedialog.askopenfile(filetypes=[("Wave audio files", "*.wav *.wave")], defaultextension=".wav",
                                          initialdir=path)
     if not askopenfile is None:
         test(WavFile(askopenfile.name), self.nbc)
     else:
         messagebox.showwarning("Warning", "You should select one file. Please, try again")
Exemplo n.º 2
0
 def show_test_vad_record(self, time):
     wav = self.record_test_audio(time)
     if not wav is None:
         test(wav, self.nbc)
         if show_plots:
             plot = Plotter("DRA")
             plot.add_sub_plot_data("Digitized Recorded Audio", wav.get_one_channel_data(), x_label="Samples",
                                    y_label="Amplitude")
             plot.sub_plot_all_horizontal(show=False, save=True)