From 52770b985051800b48f5f19b13ac2662cf381f53 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Wed, 26 Apr 2023 19:24:25 -0400 Subject: [PATCH] fish: add music recognition function --- src/.config/fish/aliases.fish | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/.config/fish/aliases.fish b/src/.config/fish/aliases.fish index 9e5a113..1b7d25b 100644 --- a/src/.config/fish/aliases.fish +++ b/src/.config/fish/aliases.fish @@ -31,3 +31,12 @@ function xx; $EDITOR ~/dox/not/xx.tsv; end function dr; $EDITOR ~/dox/not/dr.txt; end function bk; $EDITOR ~/dox/not/bk.txt; end function rem; $EDITOR ~/dox/not/rem; end + +# music recognition +function musrec + # if file exists + if test -e $argv + # recognize it + http --form POST "https://api.audd.io?api_token=$(cat ~/.config/audd_token)" file@$argv + end +end