mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 14:59:27 -05:00
fix: music recognition for songrec 0.6.3+ (#3027)
Comment on Discussion When sdata/dist-arch/ Changes / comment_on_discussion (push) Has been cancelled
Comment on Discussion When sdata/dist-arch/ Changes / comment_on_discussion (push) Has been cancelled
This commit is contained in:
@@ -53,7 +53,7 @@ while true; do
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
ffmpeg -f s16le -ar 44100 -ac 2 -i "$TMP_RAW" -acodec libmp3lame -y -hide_banner -loglevel error "$TMP_MP3" 2>/dev/null
|
ffmpeg -f s16le -ar 44100 -ac 2 -i "$TMP_RAW" -acodec libmp3lame -y -hide_banner -loglevel error "$TMP_MP3" 2>/dev/null
|
||||||
RESULT=$(songrec audio-file-to-recognized-song "$TMP_MP3" 2>/dev/null || true)
|
RESULT=$(songrec recognize --json "$TMP_MP3" 2>/dev/null || true)
|
||||||
|
|
||||||
if echo "$RESULT" | grep -q '"matches": \[' && [ ${#RESULT} -gt $MIN_VALID_RESULT_LENGTH ]; then
|
if echo "$RESULT" | grep -q '"matches": \[' && [ ${#RESULT} -gt $MIN_VALID_RESULT_LENGTH ]; then
|
||||||
echo "$RESULT"
|
echo "$RESULT"
|
||||||
|
|||||||
Reference in New Issue
Block a user