Skip to content

Commit

Permalink
scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ppwwyyxx committed Jun 11, 2014
1 parent 032a423 commit eed87e0
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,14 @@ Speaker Recognition Command Line Tool

optional arguments:
-h, --help show this help message and exit
-t TASK, --task TASK Task to do. Either "enroll", "predict"
-t TASK, --task TASK Task to do. Either "enroll" or "predict"
-i INPUT, --input INPUT
Input Files(to predict) or Directories(to enroll)
-m MODEL, --model MODEL
Model file to save(in enroll) or use(in predict)

Note that wildcard inputs should be *quoted*, and they will be sent to glob
Wav files in each input directory will be labeled as the basename of the directory.
Note that wildcard inputs should be *quoted*, and they will be sent to glob module.

Examples:
Train:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 4 additions & 3 deletions src/speaker-recognition.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python2
# -*- coding: UTF-8 -*-
# File: speaker-recognition.py
# Date: Tue Jun 10 17:08:13 2014 +0800
# Date: Wed Jun 11 11:15:00 2014 +0800
# Author: Yuxin Wu <[email protected]>

import argparse
Expand All @@ -20,7 +20,8 @@
def get_args():
desc = "Speaker Recognition Command Line Tool"
epilog = """
Note that wildcard inputs should be *quoted*, and they will be sent to glob
Wav files in each input directory will be labeled as the basename of the directory.
Note that wildcard inputs should be *quoted*, and they will be sent to glob module.
Examples:
Train:
Expand All @@ -33,7 +34,7 @@ def get_args():
formatter_class=argparse.RawDescriptionHelpFormatter)

parser.add_argument('-t', '--task',
help='Task to do. Either "enroll", "predict"',
help='Task to do. Either "enroll" or "predict"',
required=True)

parser.add_argument('-i', '--input',
Expand Down

0 comments on commit eed87e0

Please sign in to comment.