Metadata-Version: 2.4
Name: ovos-skill-morse-code
Version: 0.2.1
Summary: Encodes text to Morse code, played as generated audible beeps. Fully offline, nothing recorded.
Author: emkay-voice
Maintainer: Andreas Lorensen
License: Apache-2.0
Project-URL: Homepage, https://github.com/emkay-voice/ovos-skill-morse-code
Project-URL: Issues, https://github.com/emkay-voice/ovos-skill-morse-code/issues
Project-URL: Emkay, https://github.com/emkay-voice/emkay
Project-URL: Icon, https://raw.githubusercontent.com/emkay-voice/ovos-skill-morse-code/main/icon.png
Keywords: ovos,openvoiceos,skill,voice,assistant,morse,code,novelty,ham,radio,emkay
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Intended Audience :: End Users/Desktop
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Multimedia :: Sound/Audio :: Speech
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: ovos-workshop<10.0.0,>=0.0.15
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Dynamic: license-file

# <img src='icon.png' card_color='#40A0DB' width='50' height='50' style='vertical-align:bottom'/> Morse Code

Encodes text to International Morse Code, played as generated audible
beeps - "how do you say SOS in morse" beeps out `... --- ...`. Same
generated-audio philosophy as
[ovos-skill-metronome](https://github.com/andlo/ovos-skill-metronome)/
[ovos-skill-tuning-fork](https://github.com/andlo/ovos-skill-tuning-fork):
nothing recorded, nothing to source or license.

It is part of [Emkay](https://github.com/emkay-voice/emkay), OpenVoiceOS in
the browser, and works on any [OpenVoiceOS](https://openvoiceos.org).

[![Build](https://github.com/emkay-voice/ovos-skill-morse-code/actions/workflows/publish.yml/badge.svg)](https://github.com/emkay-voice/ovos-skill-morse-code/actions/workflows/publish.yml)
[![PyPI version](https://img.shields.io/pypi/v/ovos-skill-morse-code.svg)](https://pypi.org/project/ovos-skill-morse-code/)

## Usage
```
"how do you say SOS in morse code"
"play hello world in morse"
"hvordan siger man SOS på morse"    (Danish)
```

## Decode (morse -> text) is not implemented

This skill only *encodes* (text -> beeps). Decoding would require the
user to speak something like "dot dot dot dash dash dash dot dot dot"
and have that reliably transcribed by STT into literal "dot"/"dash"
words - a much less reliable path than encoding, and arguably a
different feature entirely, not a small addition. Left out of this
release rather than built on shaky ground.

## Timing

Standard relative Morse timing units (dash = 3× a dot, gap between
characters = 3× a dot, gap between words = 7× a dot), but a fixed,
short dot duration rather than trying to match a specific "words per
minute" telegraphy convention - the goal is a clearly recognizable
representation, not amateur-radio-accurate speed.

## On a screen

On a device with a screen (Emkay, a Mark II, any OVOS GUI) the code is shown as well as played. Asked as an intent, the text is at the top and each character gets a round tile with its dots and dashes, the letter underneath, using the stock `SYSTEM_grid` template. Played through OCP ("play hello world in morse"), the whole text and its code become the now-playing picture. Everything is drawn as SVG on the fly, so nothing is downloaded.

## Install
```bash
pip install ovos-skill-morse-code
```

## Development

See [DEVELOPMENT.md](DEVELOPMENT.md).

## Category
**Utility**

## Tags
#morse-code #novelty #ham-radio
