This release is a pre-release and may not be stable for production use.
ovos-media-provider-somafm
OVOS MediaProvider plugin for SomaFM. It replaces
the deprecated OCP search skill
ovos-skill-somafm.
Instead of broadcasting ovos.common_play.query over the bus and waiting for
skills to answer, the OCP pipeline loads MediaProvider plugins in-process,
gates them by routing, and calls search() directly. This plugin wraps the
radiosoma client. Its
converters.station_to_releases function maps each SomaFM channel into
mediavocab.Release objects, one
per stream encoding.
SomaFM is a fixed, curated channel list, so search() is a local filter over
the station catalog. It matches signals.title against the channel name and
description, and signals.content_genres against the channel genre tags.
Install
pip install ovos-media-provider-somafm
Usage
The OCP pipeline discovers and loads this plugin through its entry point. To call it directly:
from mediavocab import Signals
from ovos_media_provider_somafm import SomaFMMediaProvider
provider = SomaFMMediaProvider()
releases = provider.search(Signals(title="deep space"))
A query with neither title nor content_genres set matches every station,
so a bare RADIO request browses the whole catalog.
Routing
| Axis | Value |
|---|---|
media |
RADIO |
playback_type |
AUDIO |
genre_filter |
(none) |
Entry point
[project.entry-points."opm.media.provider"]
somafm = "ovos_media_provider_somafm:SomaFMMediaProvider"
Configuration
| Key | Default | Description |
|---|---|---|
max_results |
10 |
Maximum number of matching channels returned per search. |
Related projects
ovos-plugin-manager: defines theMediaProvidertemplate this plugin implements.radiosoma: the SomaFM API client this plugin wraps.mediavocab: theRelease/Signalsvocabulary used to describe search queries and results.ovos-skill-somafm: the deprecated OCP search skill this plugin replaces.
License
Apache-2.0
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ovos_media_provider_somafm-0.0.1a4.tar.gz.
File metadata
- Download URL: ovos_media_provider_somafm-0.0.1a4.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6bae7496abae5085fd2d36b3c5adc1b0cdae8d876beab8f635e6c38a5e01405c
|
|
| MD5 |
2799ed4695b9739f57324096824b755a
|
|
| BLAKE2b-256 |
e611bb5f1127b5bb9482ac69892685f8200519db3cff09c3854bc45335cdb772
|
File details
Details for the file ovos_media_provider_somafm-0.0.1a4-py3-none-any.whl.
File metadata
- Download URL: ovos_media_provider_somafm-0.0.1a4-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ca0701cc25d6d1708c918c8852fbdea585d009de4063cafddf620daf697942a
|
|
| MD5 |
9384899c33f86547222c197f49df034c
|
|
| BLAKE2b-256 |
89ce6df2436cc70146af03420dbfed0e3c56f87c3a0bc26e742dccf1a0d91f5a
|