SeaDve / Mousai

Identify songs in seconds
GNU General Public License v3.0
981 stars 36 forks source link

Use Mousai from the command line #3

Open onny opened 3 years ago

onny commented 3 years ago

Hey, it would be cool to use Mousai from the commandline like

mousai --recognize-audio

and it would print the result without using the GUI. Best regards Jonas

SeaDve commented 3 years ago

Nice idea, although, I'm currently busy with school. I'll try to implement it on weekends, together with new features

Also, with flatpak it might be flatpak run io.github.seadve.Kooha --args, so it may be longer than what's convenient.

abinlatheef commented 2 years ago

Any updates. BTW, thanks for do this.

SeaDve commented 2 years ago

The codebase has been refactored to simplify the implementation for this.

ChristianSilvermoon commented 2 years ago

Nice idea, although, I'm currently busy with school. I'll try to implement it on weekends, together with new features

Also, with flatpak it might be flatpak run io.github.seadve.Kooha --args, so it may be longer than what's convenient.

This can be simplified by either of the following:

# Solution 1: Alias The Flatpak Command For That App
alias mousai='flatpak run io.github.seadve.Mousai'
mousai --args # Shortest and sweetest

# Solution 2: Add System & User Flatpak Apps to $PATH
PATH="/var/lib/flatpak/exports/bin:${XDG_DATA_HOME:-$HOME/.local/share}/flatpak/exports/bin:$PATH"
io.github.seadve.Mousai --args # Not likely to be confused for a non-flatpak app
gregorni commented 1 year ago

Does --recognize-audio really need to be specified? I would think --hidden or --cli should be enough.