====== AudioMuse-AI ====== [[https://github.com/NeptuneHub/AudioMuse-AI|AudioMuse-AI]] is AudioMuse-AI is an Open Source environment that brings automatic playlist generation to your self-hosted music library. Using powerful tools like Librosa and ONNX, it performs sonic analysis on your audio files locally, allowing you to curate the perfect playlist for any mood or occasion without relying on external APIs. This pairs with [[services:navidrome|Navidrome]], that you need to have installed. ===== Installation ===== First of all, AudioMuse-AI requires a CPU with **avx** support, so check that your hardware fit the bill: bash ~ # lscpu | grep -i avx Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb pti ssbd ibrs ibpb stibp tpr_shadow flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp vnmi md_clear flush_l1d arch_capabilities As you can see, my CPU supports AVX and AVX2. Then create the usual dedicated user: useradd -m -d /data/daemons/audiomuse-ai audiomuse-ai and, as user **audiomuse-ai**, create the docker compose file. The docker compose file from [[https://github.com/NeptuneHub/AudioMuse-AI/blob/main/deployment/deployment-navidrome.yaml|https://github.com/NeptuneHub/AudioMuse-AI/blob/main/deployment/deployment-navidrome.yaml]] is really complex and hard to read, and doesn't work with the podman-compose i am using, so, here is the one i have rewritten to make it closer to all the other composers file i use: services: audiomuse-ai: image: ghcr.io/neptunehub/audiomuse-ai:latest container_name: audiomuse-ai ports: - "8925:8000" volumes: - /data/daemons/audiomuse-ai/temp_audio:/app/temp_audio environment: MEDIASERVER_TYPE: "navidrome" NAVIDROME_URL: "https://navidrome.mydomain.com" REDIS_URL: "redis://redis:6379/0" TEMP_DIR: "/app/temp_audio" SERVICE_TYPE: "flask" NAVIDROME_USER: "user" NAVIDROME_PASSWORD: "password" POSTGRES_USER: "audiomuse" POSTGRES_PASSWORD: "audiomusepassword" POSTGRES_DB: "audiomusedb" POSTGRES_HOST: "postgres" POSTGRES_PORT: "5432" GEMINI_API_KEY: "your gemini api key" depends_on: - postgres network: - audiomuse-ai-net rq-worker: container_name: audiomuse-ai-worker image: ghcr.io/neptunehub/audiomuse-ai:latest # ports: # - "8925:8000" volumes: - /data/daemons/audiomuse-ai/temp_audio:/app/temp_audio environment: MEDIASERVER_TYPE: "navidrome" NAVIDROME_URL: "https://navidrome.mydomain.com" REDIS_URL: "redis://redis:6379/0" TEMP_DIR: "/app/temp_audio" SERVICE_TYPE: "worker" NAVIDROME_USER: "user" NAVIDROME_PASSWORD: "password" POSTGRES_USER: "audiomuse" POSTGRES_PASSWORD: "audiomusepassword" POSTGRES_DB: "audiomusedb" POSTGRES_HOST: "postgres" POSTGRES_HOST: "postgres" POSTGRES_PORT: "5432" GEMINI_API_KEY: "" depends_on: - postgres - redis network: - audiomuse-ai-net postgres: container_name: postgres image: postgres:15-alpine volumes: - /data/daemons/audiomuse-ai/postgres_data:/var/lib/postgresql/data environment: SERVICE_TYPE: "flask" NAVIDROME_USER: "willy" NAVIDROME_PASSWORD: "Gargiul01=" POSTGRES_USER: "audiomuse" POSTGRES_PASSWORD: "audiomusepassword" POSTGRES_DB: "audiomusedb" POSTGRES_HOST: "postgres" POSTGRES_PORT: "5432" GEMINI_API_KEY: "" network: - audiomuse-ai-net redis: container_name: redis image: redis:7-alpine volumes: - /data/daemons/audiomuse-ai/postgres_data:/var/lib/postgresql/data environment: SERVICE_TYPE: "flask" NAVIDROME_USER: "willy" NAVIDROME_PASSWORD: "Gargiul01=" POSTGRES_USER: "audiomuse" POSTGRES_PASSWORD: "audiomusepassword" POSTGRES_DB: "audiomusedb" POSTGRES_HOST: "postgres" POSTGRES_PORT: "5432" GEMINI_API_KEY: "" network: - audiomuse-ai-net networks: audiomuse-ai-net: dns_enabled: true