https://github.com/qu4tro/nato-spell
Spelling engine for the NATO phonetic alphabet
https://github.com/qu4tro/nato-spell
nato-alphabet-converter nato-phonetic-alphabet nato-spell python
Last synced: 11 months ago
JSON representation
Spelling engine for the NATO phonetic alphabet
- Host: GitHub
- URL: https://github.com/qu4tro/nato-spell
- Owner: Qu4tro
- Created: 2020-04-10T14:48:44.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-16T01:51:21.000Z (about 6 years ago)
- Last Synced: 2025-06-20T21:48:34.528Z (12 months ago)
- Topics: nato-alphabet-converter, nato-phonetic-alphabet, nato-spell, python
- Language: Python
- Size: 3.6 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nato-spell
**nato-spell** is a Python package that can be used to spell a string / file with the well-known NATO phonetic alphabet.
## Installation
System requirements:
- **aplay** (ALSA command line player - it may already be installed on your computer)
- **python >= 3**
Use [pip](https://pip.pypa.io/en/stable/) or pipx to install `nato-spell`.
```bash
pip install nato-spell
On Arch Linux, you can install from AUR. For example:
```
yay -S nato-spell-git
```
## Usage
Minimal example
```
nato-spell SPELLME
```
Spelling from stdin
```
echo SPELLME | nato-spell -
```
Increase the delay between characters (unit is seconds, default is 0)
```
nato-spell SPELLME --char-delay=1
```
Use a different sound directory
```
nato-spell SPELLME --sound-dir=/home/me/my-sound-dir
```
And finally, an example, where we use them all together.
```
echo SPELLME | nato-spell - --sound-dir=/home/me/my-sound-dir --char-delay=1
```
## Sound assets
These sounds were published by Tim Kahn and hosted on freesound.org
- Tim Kahn ( https://freesound.org/people/tim.kahn/ )
Thank you Amy Gedgaudas and Tim Kahn for all these sounds.
They're licensed under:
http://creativecommons.org/licenses/by/3.0/
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
## License
[MIT](https://choosealicense.com/licenses/mit/)