Skip to content

Commit

Permalink
add warning in enroll
Browse files Browse the repository at this point in the history
  • Loading branch information
ppwwyyxx committed Jul 19, 2015
1 parent b060974 commit 00afb3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 88 deletions.
3 changes: 3 additions & 0 deletions src/gui/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,9 @@ def do_enroll(self):
new_signal = self.backend.filter(*self.enrollWav)
print "After removed: {0} -> {1}".format(len(self.enrollWav[1]), len(new_signal))
print "Enroll: {:.4f} seconds".format(float(len(new_signal)) / Main.FS)
if len(new_signal) == 0:
print "Error! Input is silent! Please enroll again"
return
self.backend.enroll(name, Main.FS, new_signal)

def start_train(self):
Expand Down
88 changes: 0 additions & 88 deletions src/gui/start.py

This file was deleted.

0 comments on commit 00afb3b

Please sign in to comment.