Skip to main content

seren-soma

The nervous system of a SerenSoma body: a Stack-chan robot's voice, ears and touch.

pip install seren-soma
seren-soma                  # http://<this box>:7480/viewer
seren-soma --describe       # one line of JSON, for installers
  • The robot checks in at /ota/ and talks over a websocket. What it hears goes to Lodestar to be transcribed and lands in heard.jsonl; what the mind says comes back through Lodestar, in its voice.
  • It reads the head sensor into strokes, pokes, scritches and resting hands, and shows the face the robot's face file names for each.
  • It owns night mode (caps on the robot's lights, speaker and screen) and work hours, so the body behaves with nothing else running.

Talking back and forth. Whoever answers (a mind, a game, a script) does two things:

  • GET /heard?after=<t>&wait=25 returns what was heard after time t, and with wait holds an empty answer open until something is heard. So the words arrive the moment they are transcribed, with no file to keep reading. Start with after=0 to get the last entry's t.
  • POST /say {"text": "...", "emotion": "happy", "wake": true} says a line. It goes out a sentence at a time: the first sentence is rendered and starts playing while the rest render behind it, so the wait is for one sentence. "whole": true renders the line in one piece instead.

GET /api/voice-timing (and the page's Voice tab) times every leg of each turn: waiting for quiet, transcribing, the answer being thought of, rendering the first sentence, opening the channel. It keeps how many words, never which. The quiet that ends a turn is a live setting there (channel.end_silence_ms, 900 by default). When the robot opens its channel after the speech service has sat idle, a throwaway line is rendered so the voice is loaded before anyone needs it.

Who keeps the conversation (a prototype). By default this server does. With conversation: lodestar in the config, Lodestar keeps it, once, for every place a conversation happens, and this server is only the robot's ears and mouth: it hands finished clips to Lodestar, pulls the sound to play from it, and keeps the microphone (who may open it, the tap, Stop). Lodestar's clock is then the only one: when Lodestar says back and forth is over, or forgets it in a restart, the microphone closes. The routes above pass through to Lodestar, so nothing that talks to this server changes. See seren_soma/relay.py.

Copy seren-soma.yaml.sample to ~/seren-soma/seren-soma.yaml. Everything it keeps is in the state folder, ~/seren-soma/state/ by default: its two tokens, the robot's control token, what was heard, the touch log, the settings and its own log.

Its page (/viewer) shows whether it's alive and its log. "Copy for help" replaces everything that was heard with a word count, so the log can go to someone helping without what was said. Its Touch and Servos tabs are the bench: every channel of the touch chip live, a chart of which pad answers where (kept as touch_map.json in the state folder), and the neck servos' own readings with a sweep test. They need firmware with the bench routes; see firmware/docs/bench.md.

It binds the LAN, because the robot dials in, so it won't start without its API token; with none configured it makes one in the state folder. The robot gets a separate token for its voice connection, and the check-in answers only the robot's own address.

AGPL-3.0-or-later.

Metadata

Release files for seren-soma 1.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for seren-soma 1.7.0
File Size Uploaded Provenance Actions
seren_soma-1.7.0.tar.gz 148.7 kB With provenance Details for seren_soma-1.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for seren-soma 1.7.0
File Interpreter ABI Platform Actions
seren_soma-1.7.0-py3-none-any.whl Python 3 none any Details for seren_soma-1.7.0-py3-none-any.whl

Total release size: 271.6 kB

Release files / seren_soma-1.7.0.tar.gz

Download URL seren_soma-1.7.0.tar.gz
Size 148.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5df358779336bd27c563f38bace46c333b6d6cc5006c5b6e95272464d273f62e
BLAKE2b-256 checksum
How to use checksums
24ff336b8415462d3fe50a1abe1cd84f8f724146803bf17b6a1a3cc2dc8d9ff4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.

Transparency log

Release files / seren_soma-1.7.0-py3-none-any.whl

Download URL seren_soma-1.7.0-py3-none-any.whl
Size 122.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cf770b7508340676b0177bd73f95ea75259213056df90d449228bb917e87fd89
BLAKE2b-256 checksum
How to use checksums
ddc3cee92afe1372703cb354d55bed418193d904e97329fdb6fe3e5df711a448
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.

Transparency log

Security for seren-soma 1.7.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for seren_soma-1.7.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page