From 381f5ead89ca0ec435b05dccab3b3ec2e04c3a26 Mon Sep 17 00:00:00 2001 From: Shuadissen Date: Wed, 22 Jun 2016 19:23:13 +0300 Subject: [PATCH] Delete formants.py --- formants.py | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 formants.py diff --git a/formants.py b/formants.py deleted file mode 100644 index b4cac77..0000000 --- a/formants.py +++ /dev/null @@ -1,34 +0,0 @@ -import Extract_Features as features -from subprocess import call -import os -import sys -import shlex -def easy_call(command, debug_mode=False): - try: - #command = "time " + command - if debug_mode: - print >>sys.stderr, command - call(command, shell=True) - except Exception as exception: - print "Error: could not execute the following" - print ">>", command - print type(exception) # the exception instance - print exception.args # arguments stored in .args - exit(-1) -wav_file = sys.argv[1] -if len(sys.argv) == 4: - begin = sys.argv[2] - end = sys.argv[3] - Data = features.Create_features(str(wav_file),float(begin),float(end)) - ff = str(os.path.dirname(os.path.realpath(__file__))+'/Features/features_' + wav_file.replace('.wav','.txt')) - easy_call("th load_estimation_model.lua " + ff) - -elif len(sys.argv) == 2: - Data = features.Create_features(str(wav_file)) - ff = str(os.path.dirname(os.path.realpath(__file__))+'/Features/features_' + wav_file.replace('.wav','.txt')) - easy_call("th load_tracking_model.lua " + ff) -else: - print('wrong amount of parameters') - - -