summaryrefslogtreecommitdiff
path: root/get.pl
diff options
context:
space:
mode:
Diffstat (limited to 'get.pl')
-rwxr-xr-xget.pl17
1 files changed, 17 insertions, 0 deletions
diff --git a/get.pl b/get.pl
new file mode 100755
index 0000000..4447ab3
--- /dev/null
+++ b/get.pl
@@ -0,0 +1,17 @@
+#!/usr/bin/perl
+
+$SIG{TERM} = $SIG{INT} = sub { exit 1 };
+
+chdir('datasets');
+
+foreach (@ARGV){
+ my $s = $_;
+ if ($s !~/\..*$/) { $s .= ".wav"; }
+ system('/usr/bin/wget', 'https://neural:spawn5@asdf.us/neural/' . $s);
+ system('/usr/bin/perl', 'dataset.pl', $s);
+}
+
+END {
+ chdir('..');
+}
+