Metadata-Version: 2.4
Name: ovos-skill-guardian
Version: 0.1.0a2
Summary: OpenVoiceOS skill: what the assistant sent out today and who hears what you say, from its network log
Author: Andreas Lorensen
License: Apache-2.0
Project-URL: Homepage, https://github.com/emkay-voice/ovos-skill-guardian
Project-URL: Issues, https://github.com/emkay-voice/ovos-skill-guardian/issues
Project-URL: Emkay, https://github.com/emkay-voice/emkay
Project-URL: Icon, https://raw.githubusercontent.com/emkay-voice/ovos-skill-guardian/main/res/icon.png
Keywords: ovos,openvoiceos,skill,privacy,network,emkay
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: ovos-utils>=0.0.38
Requires-Dist: ovos-workshop<10.0.0,>=0.0.15
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Requires-Dist: ovos-bus-client; extra == "test"
Dynamic: license-file

# <img src='res/icon.png' width='50' height='50' style='vertical-align:bottom'/> Guardian

An [OpenVoiceOS](https://openvoiceos.org) skill that tells what the assistant
sent out on the network today, and who hears what you say. Privacy as
something you can ask about, not just a setting.

It is made for [Emkay](https://github.com/emkay-voice/emkay), OpenVoiceOS in
the browser, which keeps a log of everything it contacts (⚙ → Network in
its menu). The skill reads that log.

## Usage

```
"What did you send out today?"   "Hvad har du sendt ud i dag?"
"Who hears what I say?"          "Hvem hører hvad jeg siger?"
```

- **What went out today**: the services contacted today, most used first,
  with how many times ("Wikipedia 3 times, the voice 2 times and
  blog.openvoiceos.org once"). The assistant's own site files are left out:
  they are the assistant itself, not something sent out.
- **Who hears me**: where speech recognition happens. From the STT plugin
  in the configuration: on the device (Whisper, Røst, Vosk …), the
  browser's own recognition (Google in Chrome, Apple in Safari), or a
  server, named from the log when it has been used today.

In all twelve languages Emkay ships: English, Danish, German, Dutch, French,
Spanish, Italian, Portuguese (BR and PT), Catalan, Galician and Basque. The
translations other than English and Danish are in
[`tools/translations.py`](tools/translations.py), so they can be reviewed in
one place.

## The log

One JSON object per request, one per line, in
`~/.local/state/emkay/network.jsonl` (setting `log_path`):

```json
{"t": 1794863530091, "host": "stt.openvoiceos.pt", "method": "POST", "status": 200, "bytes": 52, "who": "ovos-stt-plugin-server", "kind": "stt", "service": "speech recognition (OpenVoiceOS server)"}
```

The format is described in Emkay's
[docs/network-log.md](https://github.com/emkay-voice/emkay/blob/main/docs/network-log.md).
It is not tied to Emkay: on any OpenVoiceOS install, anything that writes
these lines can feed this skill. Where nothing does, the skill says it keeps
no log, and still answers who hears you from the configuration.

Nothing in the log says what was asked: only when, which host, the method,
the status, the size and who asked.

## Later

The name is for what comes next: the "local only" mode (emkay-voice/emkay#23),
where the same network layer that logs also blocks everything that is not
local, and this skill switches it by voice ("go offline", "are you online?").

## Settings

| setting | default |
|---|---|
| `log_path` | `~/.local/state/emkay/network.jsonl` |

## License

Apache-2.0
