summaryrefslogtreecommitdiff
path: root/get.pl
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-04-19 16:58:59 +0200
committerJules Laplace <julescarbon@gmail.com>2018-04-19 16:58:59 +0200
commit123ad50cbfb7c17dae8c04d94a7c8b7da53f4e5a (patch)
tree2884db2743a13b7772adbd970dc3f6ab5f3254e9 /get.pl
parent70502d8b2dc626d0a94e6bcde47383d3f4419404 (diff)
parent55cdfa754eea6356ef425afdd2c374886be992ad (diff)
Merge branch 'master' of asdf.us:samplernn
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('..');
+}
+