{"library":"soco","title":"SoCo (Sonos Controller)","type":"library","description":"SoCo is a Python library for controlling Sonos speakers. It provides a simple interface to discover, query, and control Sonos devices over a local network. Current version 0.31.0 supports Python >=3.6, with releases approximately every few months.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install soco"],"cli":null},"imports":["from soco import SoCo"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":null,"github":"https://github.com/SoCo/SoCo","docs":null,"changelog":null,"pypi":"https://pypi.org/project/soco/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"from soco import SoCo\n\n# Discover a speaker by IP (replace with your speaker's IP)\nspeaker = SoCo('192.168.1.10')\n\n# Play music (e.g., a URI)\nspeaker.play_uri('x-rincon-mp3radio://stream.example.com:8000/stream')\n\n# Adjust volume\nspeaker.volume = 30\n\n# Get current track info\ntrack = speaker.get_current_track_info()\nprint(track.title)","lang":"python","description":"Quickstart: import SoCo, create instance with IP, control playback, volume, and get track info.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}