This release is a pre-release and may not be stable for production use.
ovos-utterance-plugin-cancel
This is an OpenVoiceOS utterance transformer plugin. It cancels an utterance when the user says a cancel or "nevermind" phrase at the end.
Example: for the phrase "Hey Mycroft, can you tell me the weather in… ugh, nevermind that", the plugin drops the utterance, and no skill fires.
Installation
pip install ovos-utterance-plugin-cancel
How it works
The plugin runs before skill matching. It checks whether the end of the utterance matches any phrase from locale/<lang>/cancel.intent. On a match, it returns an empty utterance list with context {"canceled": True, "cancel_word": "<phrase>"}.
The plugin selects the language automatically with langcodes.closest_match. Phrases support bracket-expansion syntax, for example 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
Related projects
- OpenVoiceOS/ovos-utterance-normalizer: normalizes utterances before this plugin runs
- OpenVoiceOS/ovos-utterance-corrections-plugin: corrects utterances after this plugin runs
Credits
Metadata
Release files for ovos-utterance-plugin-cancel 0.3.4a2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ovos_utterance_plugin_cancel-0.3.4a2.tar.gz | 16.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ovos_utterance_plugin_cancel-0.3.4a2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 44.1 kB
Release files / ovos_utterance_plugin_cancel-0.3.4a2.tar.gz
| Download URL | ovos_utterance_plugin_cancel-0.3.4a2.tar.gz |
|---|---|
| Size | 16.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8eb814211463b3eabae696f69a5c830796a719391f7fc13723ad1cd15327a7f8
|
|
BLAKE2b-256 checksum How to use checksums |
60623f83ac2f04b2f8a6634518193830426a76390624380a0d516ca3f7f2eeac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / ovos_utterance_plugin_cancel-0.3.4a2-py3-none-any.whl
| Download URL | ovos_utterance_plugin_cancel-0.3.4a2-py3-none-any.whl |
|---|---|
| Size | 27.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
539c8a228024a3ab60b5569e090941aa9d1a580771580dc2b4a84a968c48b707
|
|
BLAKE2b-256 checksum How to use checksums |
de1eaaa9d08fa15b2d7e3eafea550b8f127305f895bfed871cda2606ca12f81f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|