fish: add music recognition function

This commit is contained in:
dogeystamp 2023-04-26 19:24:25 -04:00
parent c723a3cac9
commit 52770b9850
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38

View File

@ -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