Comments (6)
ok nevermind, i found out i have to start librespot-java under user pi through lxterminal, then it‘s working. same old issue with pulseaudio starting as a user and not systemwide.
from spocon.
Did you have a look at https://github.com/librespot-org/librespot-java/tree/dev/player#audio-output-configuration?
from spocon.
ok, trying to investigate that. but where are the available mixer devices actually being logged?
log was already enabled in config.toml
"systemctl status spocon" gives me the following output:
● spocon.service - SpoCon
Loaded: loaded (/lib/systemd/system/spocon.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2021-02-13 12:47:48 CET; 15min ago
Process: 2102 ExecStartPre=/bin/sh -c until ping -c1 spotify.com; do sleep 5; done; (code=exited, status=0/SUCCESS)
Main PID: 2104 (java)
Tasks: 42 (limit: 3720)
CGroup: /system.slice/spocon.service
└─2104 /usr/bin/java -jar /opt/spocon/librespot-java-api-v1.5.4.jar
Feb 13 12:48:12 B2RASP4 java[2104]: 2021-02-13 12:48:12,547 TRACE DeviceStateHandler:154 - Update volume. {volume: 65535/65536}
Feb 13 12:48:12 B2RASP4 java[2104]: 2021-02-13 12:48:12,589 INFO DeviceStateHandler:249 - Put state. {ts: 1613216891977, connId: ZTkwO...1MTRE, reason: VOLUME_CHAN
Feb 13 12:48:12 B2RASP4 java[2104]: 2021-02-13 12:48:12,865 INFO DeviceStateHandler:249 - Put state. {ts: 1613216892140, connId: ZTkwO...1MTRE, reason: VOLUME_CHAN
Feb 13 12:48:13 B2RASP4 java[2104]: 2021-02-13 12:48:13,134 INFO DeviceStateHandler:249 - Put state. {ts: 1613216892343, connId: ZTkwO...1MTRE, reason: VOLUME_CHAN
Feb 13 12:48:13 B2RASP4 java[2104]: 2021-02-13 12:48:13,412 INFO DeviceStateHandler:249 - Put state. {ts: 1613216892549, connId: ZTkwO...1MTRE, reason: VOLUME_CHAN
Feb 13 12:48:15 B2RASP4 java[2104]: 2021-02-13 12:48:15,007 TRACE DealerClient:97 - Received request. {mid: hm://connect-state/v1/player/command, key: a140e2f7-48cd
Feb 13 12:48:15 B2RASP4 java[2104]: 2021-02-13 12:48:15,008 DEBUG Player:293 - Received command: Pause
Feb 13 12:48:15 B2RASP4 java[2104]: 2021-02-13 12:48:15,013 DEBUG DealerClient:109 - Handled request. {key: xxxx-xxxx-xxxx-xxxx-xxxxxxxxxx, result: SUCCESS}
Feb 13 12:48:15 B2RASP4 java[2104]: 2021-02-13 12:48:15,282 INFO DeviceStateHandler:249 - Put state. {ts: 1613216895009, connId: ZTkwO...1MTRE, reason: PLAYER_STAT
Feb 13 12:48:15 B2RASP4 java[2104]: 2021-02-13 12:48:15,562 TRACE DeviceStateHandler:160 - Received cluster update at 1613216895553: cluster { timestamp: 1613216895
from spocon.
ok, i was able to filter the available devices by manually starting spocon:
2021-02-13 13:36:48,227 FATAL Player:600 - An error with the mixer occurred. This is likely a configuration issue, please consult the project repository.
xyz.gianlu.librespot.player.mixing.LineHelper$MixerException: Couldn't find a suitable mixer, openLine: 'interface SourceDataLine supporting format PCM_SIGNED 44100.0 Hz, 16 bit, stereo, 4 bytes/frame, little-endian', available: [Port sndrpihifiberry [hw:0], version 5.10.11-v8+, sndrpihifiberry [plughw:0,0], version 5.10.11-v8+]
what would the suitable keywords be according to that?
from spocon.
Not entirely sure about which one you should use, but the keyword for the first one would be [hw:0]
and [plughw:0,0]
for the second one.
from spocon.
thx for the help!
from spocon.
Related Issues (20)
- Docker image HOT 7
- Executing librespot java api fails HOT 5
- Remove dependency on openjdk for debian package HOT 10
- Multiple instances of spocom on the same machine with different configurations? HOT 2
- permission denied when using PIPE HOT 1
- Spotify does not see spocon spotify-connect HOT 2
- I have an Ubuntu server 20.04 running headless on a Dell laptop. Will SpoCon run on it? HOT 2
- audio-sink not visible to spotify's familiy members HOT 1
- Stuck on "Connecting to Spocon" HOT 1
- No sound on Ubunu Desktop 22.04 HOT 2
- Debian 11 ppa not working HOT 2
- [QUESTION] NO SOUND WHICH SOUNDCARD NUMBER SHOULD I USE HOT 2
- Can I use Spocon with Pulseaudio? HOT 1
- SpoCon Crashes on Play HOT 2
- Spocon stopped working -- librespot-java upgrade required HOT 10
- Couldn't establish a new session HOT 1
- SpoCon Does Not Work Any Longer With librespot-java v1.6.2 HOT 1
- Connecting but no sound coming out
- Raspberry pi 1 support? HOT 1
- Spocon via Owntone randomly pauses. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spocon.