Audio key error, code: 1 #1

Open
opened 2025-11-29 12:15:59 +00:00 by jirat-sumitanun · 0 comments

I got this error Audio key error, code: 1

here is my things
I use librespot-spotizerr-phoenix to login and got the credentials.json

from librespot.zeroconf import ZeroconfServer
import time
import logging
import pathlib

zs = ZeroconfServer.Builder().create()
logging.warning("Transfer playback from desktop client to librespot-spotizerr via Spotify Connect in order to store session")

while True:
    time.sleep(1)
    if zs._ZeroconfServer__session:
        logging.warning(f"Grabbed {zs._ZeroconfServer__session} for {zs._ZeroconfServer__session.username()}")

        if pathlib.Path("credentials.json").exists():
            logging.warning("Session stored in credentials.json. Now you can Ctrl+C")
            break

I have used deezspot-spotizerr before and this credentials way work for me but now it's not

from pathlib import Path
from deezspot.spotloader import SpoLogin # Corrected import path

# You need Spotify API credentials (client_id, client_secret)
credentials_path = Path("credentials.json").absolute().as_posix()
client_id = "my client_id"
client_secret = "my client_secret"

spotify_downloader = SpoLogin(
    credentials_path,
    client_id,
    client_secret
)

# Download a track from Spotify
track_link_spo = "https://open.spotify.com/track/3FUaNR2HD1XaeOmw4puhkz"
downloaded_track_spo = spotify_downloader.download_track(
    link_track=track_link_spo,
    output_dir="./downloads/tracks",
    quality_download="NORMAL", #"VERY_HIGH" or "HIGH", "NORMAL"
    #convert_to="flac" # Optional: convert to FLAC
)
print(f"Downloaded Spotify track: {downloaded_track_spo.song_path}")

Do I really need to use spotizerr-phoenix with Docker method or a premium account?
I don't understand why spotizerr-phoenix work while deezspot-spotizerr-phoenix not

I got this error `Audio key error, code: 1` here is my things I use librespot-spotizerr-phoenix to login and got the credentials.json ``` from librespot.zeroconf import ZeroconfServer import time import logging import pathlib zs = ZeroconfServer.Builder().create() logging.warning("Transfer playback from desktop client to librespot-spotizerr via Spotify Connect in order to store session") while True: time.sleep(1) if zs._ZeroconfServer__session: logging.warning(f"Grabbed {zs._ZeroconfServer__session} for {zs._ZeroconfServer__session.username()}") if pathlib.Path("credentials.json").exists(): logging.warning("Session stored in credentials.json. Now you can Ctrl+C") break ``` I have used deezspot-spotizerr before and this credentials way work for me but now it's not ``` from pathlib import Path from deezspot.spotloader import SpoLogin # Corrected import path # You need Spotify API credentials (client_id, client_secret) credentials_path = Path("credentials.json").absolute().as_posix() client_id = "my client_id" client_secret = "my client_secret" spotify_downloader = SpoLogin( credentials_path, client_id, client_secret ) # Download a track from Spotify track_link_spo = "https://open.spotify.com/track/3FUaNR2HD1XaeOmw4puhkz" downloaded_track_spo = spotify_downloader.download_track( link_track=track_link_spo, output_dir="./downloads/tracks", quality_download="NORMAL", #"VERY_HIGH" or "HIGH", "NORMAL" #convert_to="flac" # Optional: convert to FLAC ) print(f"Downloaded Spotify track: {downloaded_track_spo.song_path}") ``` Do I really need to use spotizerr-phoenix with Docker method or a premium account? I don't understand why spotizerr-phoenix work while deezspot-spotizerr-phoenix not
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
spotizerrphoenix/deezspot-spotizerr-phoenix#1
No description provided.