Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

ovos-utterance-plugin-cancel

PyPI License

An OpenVoiceOS utterance transformer plugin that cancels an utterance when the user says a cancel/nevermind phrase at the end.

Example: "Hey Mycroft, can you tell me the weather in… ugh, nevermind that" → utterance is dropped, no skill fires.

Installation

pip install ovos-utterance-plugin-cancel

How it works

The plugin runs before skill matching. It checks whether the utterance tail matches any phrase from locale/<lang>/cancel.intent. On a match, it returns an empty utterance list with context {"canceled": True, "cancel_word": "<phrase>"}.

Language selection is automatic via langcodes.closest_match. Phrases support bracket-expansion syntax (e.g. cancel (it|that)).

Supported languages

ca-ES · da-DK · de-DE · en-US · es-ES · fr-FR · gl-ES · it-IT · nl-NL · pt-BR · pt-PT

To add a language, create ovos_utterance_plugin_cancel/locale/<lang>/cancel.intent with one phrase per line.

Configuration

This plugin is enabled by default in ovos-config alongside the other standard utterance transformers:

"utterance_transformers": {
    "ovos-utterance-normalizer": {},
    "ovos-utterance-plugin-cancel": {},
    "ovos-utterance-corrections-plugin": {}
}

To disable it, add "enable": false to your config:

"utterance_transformers": {
    "ovos-utterance-plugin-cancel": {"enable": false}
}

Development

git clone https://github.com/OpenVoiceOS/ovos-utterance-plugin-cancel
cd ovos-utterance-plugin-cancel
uv pip install -e ".[dev]"
uv run pytest test/ -v --cov=ovos_utterance_plugin_cancel

Credits

Download files

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

Source Distribution

ovos_utterance_plugin_cancel-0.3.0a2.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

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

ovos_utterance_plugin_cancel-0.3.0a2-py3-none-any.whl (26.7 kB view details)

Uploaded Python 3

File details

Details for the file ovos_utterance_plugin_cancel-0.3.0a2.tar.gz.

File metadata

File hashes

Hashes for ovos_utterance_plugin_cancel-0.3.0a2.tar.gz
Algorithm Hash digest
SHA256 83041b525023b583ce407f40a3522ba4103eb5b3eaca07470a9e6f7ae4308542
MD5 971ef85687d0bec4eb9086f9c43f4610
BLAKE2b-256 57081095935e7d263d73580f0f1fdb13adc726938a16f749e7c3ae5efc547f43

See more details on using hashes here.

File details

Details for the file ovos_utterance_plugin_cancel-0.3.0a2-py3-none-any.whl.

File metadata

File hashes

Hashes for ovos_utterance_plugin_cancel-0.3.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 95202b987d0d941a3ae36f3b7cc782f6e3c8e29b8280204601257f1531e27ba0
MD5 b557603f6f7d84c9b993fee8198b346e
BLAKE2b-256 33f62587fb29305305395eed1f23ed5f090a7ed67600a3c271f9f7b29f5ef526

See more details on using hashes here.

Supported by

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