dupontgu / retro-ipod-spotify-client

The software that powers the sPot: a 4th generation "Click Wheel" iPod with a full Spotify client.
Apache License 2.0
892 stars 90 forks source link

Song only plays first few seconds & How to use bluetooth audio? #64

Open TheBasedDoge opened 2 years ago

TheBasedDoge commented 2 years ago

So I almost have everything fully working now. I am down to two issues.

  1. When selecting a song, it "plays" the first 3 or so seconds and then pauses on 00:03. Hitting play wont do anything and i just have to select the song again.
  2. When it's playing I don't get any audio. Bluetooth is connected and shows the following for status: [Galaxy Buds2 (C0C4)]# info 60:3A:AF:4D:C0:C4 Device 60:3A:AF:4D:C0:C4 (public) Name: Galaxy Buds2 (C0C4) Alias: Galaxy Buds2 (C0C4) Class: 0x00240404 Icon: audio-card Paired: yes Trusted: no Blocked: no Connected: yes LegacyPairing: no UUID: Serial Port (00001101-0000-1000-8000-00805f9b34fb) UUID: Audio Sink (0000110b-0000-1000-8000-00805f9b34fb) UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb) UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb) UUID: Handsfree (0000111e-0000-1000-8000-00805f9b34fb) UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb) UUID: Vendor specific (2e73a4ad-332d-41fc-90e2-16bef06523f2) UUID: Vendor specific (a23d00bc-217c-123b-9c00-fc44577136ee) UUID: Vendor specific (b4a9d6a0-b2e3-4e40-976d-a69f167ea895) UUID: Vendor specific (e7ab2241-ca64-4a69-ac02-05f5c6fe2d62) UUID: Vendor specific (f8620674-a1ed-41ab-a8b9-de9ad655729d)

Also, how to auto connect bluetooth on startup? I have to manually connect via terminal over SSH each time.

TheBasedDoge commented 2 years ago

I think I got autoconnect to work. But I cannot get any audio and still have the same song pausing issue

TheBasedDoge commented 2 years ago

Ok, progress. I commented out dtaudio in config.txt and now BT audio works. Verified with a local test file.

Spotipy will not play a song when i select it though, just counts up a few seconds then stops.

doris1347 commented 1 year ago

FYI: When you make a track selection (http request) with the "sPoT" you will see it as being selected in the Spotify app. device list of your phone or computer (and your selection will start playing) ### as long as your audio endpoint (bluetooth) is configured and working if not your selected track will only increment 3 seconds and dropout. the same will happen if you first select your device using another authorized Spotify client, if your audio endpoint (bluetooth) isn't up and running your connection will dropout after approx. 3 seconds no audio!

Use Raspberry Pi OS Legacy Buster 10 and Raspotify 14 or 16!

When editing bash profile ... '#!/bin/bash' should be ... #!/bin/bash without the accent marks !!! sudo nano ~/.bash_profile - this is a typo in the #69 instructions!

Be sure to run ... pip3 install -r requirements.txt ... from the frontend folder cd retro-ipod-spotify-client/frontend

Be sure to remove the <> symbols from your user name and password credentials sudo nano /etc/default/raspotify OPTIONS="--username XXXXXXXX --password XXXXXXXXX"

You must have an authentic .cache file!

You must have a Spotify Premium account!

Good Luck & Have Fun! 😉