Following is a repost of a github posting from yesterday
I have a raspberry pi connected to a NFC reader, with mpc-mopidy-spotify installed and working.
The NFC reader reads in the spotify URI from a NFC card, and sends it to MPC to play the specific song.
With the command ‘mpc status’, I can see that the specific song is playing with volume set to 100%.
I have raspi-config set to force audio output to the 3.5mm ear jack, and have a speaker connected to the raspberry-pi’s ear jack. The speaker successfully outputs sound when I play youtube, but there is no sound coming from the speaker when MPC is running.
Following is my mopidy.conf :
#mixer = softwar
#mixer_volume = 80
#output = autoaudiosink device=hw:1,0
When I run the following command, I can hear an audible tone:
$ gst-launch-1.0 audiotestsrc ! audioresample ! autoaudiosink
My MPC/Mopidy-Spotify is all up to date.
Furthermore, following is the output from the command "sudo mopidyctl config"
[core] cache_dir = /var/cache/mopidy config_dir = /etc/mopidy data_dir = /var/lib/mopidy max_tracklist_length = 10000 restore_state = false [logging] color = true console_format = %(levelname)-8s %(message)s debug_format = %(levelname)-8s %(asctime)s [%(process)d:%(threadName)s] %(name)s\n %(message)s debug_file = /var/log/mopidy/mopidy-debug.log config_file = /etc/mopidy/logging.conf [audio] mixer = software mixer_volume = output = autoaudiosink buffer_time = [proxy] scheme = hostname = port = username = password = [mpd] enabled = true hostname = 127.0.0.1 port = 6600 password = max_connections = 20 connection_timeout = 60 zeroconf = Mopidy MPD server on $hostname command_blacklist = listall listallinfo default_playlist_scheme = m3u [http] enabled = true hostname = 127.0.0.1 port = 6680 static_dir = zeroconf = Mopidy HTTP server on $hostname [stream] enabled = true protocols = http https mms rtmp rtmps rtsp metadata_blacklist = timeout = 5000 [m3u] enabled = true base_dir = default_encoding = latin-1 default_extension = .m3u8 playlists_dir = /var/lib/mopidy/playlists [softwaremixer] enabled = true [file] enabled = true media_dirs = $XDG_MUSIC_DIR|Music ~/|Home excluded_file_extensions = .jpg .jpeg show_dotfiles = false follow_symlinks = false metadata_timeout = 1000 [local] enabled = true library = json media_dir = /var/lib/mopidy/media scan_timeout = 1000 scan_flush_threshold = 100 scan_follow_symlinks = false excluded_file_extensions = .directory .html .jpeg .jpg .log .nfo .png .txt [spotify] enabled = true username = email@example.com password = ******** client_id = 857ef26d-3169-4d5e-b05f-4619e2cd695f client_secret = ******** bitrate = 160 volume_normalization = true private_session = false timeout = 10 allow_cache = true allow_network = true allow_playlists = true search_album_count = 20 search_artist_count = 10 search_track_count = 50 toplist_countries =
Please let me know how I may solve this issue.
Thank you so much!!