Skip to main content

Reads arXiv paper abstracts aloud - provider skill for ovos-common-reading-pipeline-plugin

Project description

arXiv Papers (provider)

A provider skill for ovos-common-reading-pipeline-plugin, reading arXiv paper abstracts aloud.

A second real-world test that common-reading works for more than fairy tales - this one introduces a new content_type ("paper"), sourced from a completely different kind of feed (per-category, updated daily).

Tests PyPI version

This skill has no standalone voice interface. It registers no intents and never speaks. It only answers ovos.common_reading.* bus messages, so you also need ovos-common-reading-pipeline-plugin installed and added to your pipeline config for it to be useful at all.

Install

pip install ovos-skill-arxiv-papers ovos-common-reading-pipeline-plugin

Source

Feeds from https://rss.arxiv.org/rss/<category> (RSS 2.0), one subject category at a time - default cs.AI, configurable via this skill's settings (category, e.g. cs.CL, math.QA, q-bio.NC - see arXiv's category taxonomy). Refreshed at most once a day, matching arXiv's own daily feed rebuild schedule.

Only the abstract is read, not the full paper - papers are PDFs, out of scope for TTS narration. The raw feed description includes arXiv's own arXiv:<id> Announce Type: <type> header before the abstract text; this provider strips that off before offering the text.

Translation

Like ovos-skill-ovosblog, this machine-translates titles (for matching and search responses) and abstracts (when reading them aloud) for non-English devices, using whatever ovos-plugin-manager language-translation plugin is configured. Search responses include "machine_translated": true/false for disclosure.

If no translation plugin is available, this provider does not respond to searches at all for a non-English device, rather than silently offering English content the user didn't ask for.

Note for anyone comparing providers: unlike ovos-skill-andersen-tales/ovos-skill-grimm-tales/ ovos-skill-andrew-lang-tales, which check a fixed SUPPORTED_LANGUAGES set at load time and refuse to load at all otherwise, this provider always loads regardless of device language - it can't know in advance whether a translation plugin will be available, so it always registers its bus events and decides per-search instead (see above).

Collection hints

Responds to collection_hint values in the device's own language - e.g. "arxiv"/"archive" (arXiv is commonly pronounced "archive", so that's a likely STT transcription) on English, "videnskabelige artikler" on Danish, "artículos científicos" on Spanish - matched fuzzily against that language's own alias list (see locale/<lang>/collection.voc). Like ovos-skill-ovosblog, this provider works on any device language, so aliases fall back to English for any language we haven't bothered translating - see ovos-common-reading-pipeline-plugin#26. The collection name itself ("arXiv") stays untranslated - it's a proper noun.

Content type

Responds to content_type hints of "paper", "abstract", "research", or "study". Ignores everything else (e.g. "story", "article").

"Surprise me"

A search with no specific phrase but a matching collection_hint (e.g. "read me a paper from arXiv") returns the most recent paper in the configured category, by pubDate.

Terms of use

arXiv explicitly provides these per-category RSS feeds for this kind of use (see arXiv's RSS documentation) - review the Terms of Use for arXiv APIs before adjusting the request frequency below the daily cache TTL here.

Credits

Content and feed from arxiv.org, an open-access e-print repository operated by Cornell University.

Category

Science

Tags

#science #research #arxiv #papers #provider

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ovos_skill_arxiv_papers-0.1.2.tar.gz (27.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ovos_skill_arxiv_papers-0.1.2-py3-none-any.whl (27.4 kB view details)

Uploaded Python 3

File details

Details for the file ovos_skill_arxiv_papers-0.1.2.tar.gz.

File metadata

  • Download URL: ovos_skill_arxiv_papers-0.1.2.tar.gz
  • Upload date:
  • Size: 27.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for ovos_skill_arxiv_papers-0.1.2.tar.gz
Algorithm Hash digest
SHA256 bdb5181a076dc15ac4b3aa785aced56bbdcf0ad580e1fed1d86e2c6d9ea5cc25
MD5 1bf26a93cd00a7731e7383462656e3fb
BLAKE2b-256 deba1078b63d1b411cf16ccf94a28fc2e765c4c3b4949ad3bce75687e8c2c7fb

See more details on using hashes here.

Provenance

The following attestation bundles were made for ovos_skill_arxiv_papers-0.1.2.tar.gz:

Publisher: publish.yml on andlo/ovos-skill-arxiv-papers

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ovos_skill_arxiv_papers-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for ovos_skill_arxiv_papers-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bdb1dd4a36cd4d38bd6f58c33e717ae443fbb592dde0c50ae39fb3c48c45831c
MD5 e90e2d5d135df61da3277cb07713a386
BLAKE2b-256 3c5f978d2c446b43908d40c34c6b9c55fe5e40742e3e99063ea780281a1cda1b

See more details on using hashes here.

Provenance

The following attestation bundles were made for ovos_skill_arxiv_papers-0.1.2-py3-none-any.whl:

Publisher: publish.yml on andlo/ovos-skill-arxiv-papers

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page