semvec/pypi-packages huggingface dataset:
maudio 0.0.2
Minimal Morse code audio encoder ( WAV format )
License: MIT
Requires Python: >=3.6
Keywords: morse code audio generation

## About

**Maudio** is a command-line tool for generating Morse code audio in `.wav` format from plain text input. It allows configuration of tone frequency, sample rate, amplitude, bit depth, Morse speed (WPM), and optional Farnsworth spacing. Can also output Morse code as text without generating audio.

## Getting Started

### Installation

```bash
git clone https://github.com/Mohd-Sinan/maudio.git
cd maudio
pip install .
```

### Usage

Use the tool like this:

```bash
maudio "your message here" [options]
```

To display the help menu:

```bash
maudio -h
```

You can also pipe input from another command:

```bash
echo "hello world" | maudio --noaudio
```

### Example

```bash
maudio "SOS HELP" -f 700 -w 20 -v
```

### CLI Options

| Option                  | Description                                              |
|-------------------------|----------------------------------------------------------|
| `message`               | Positional argument: the message to convert to Morse     |
| `-h`, `--help`          | Show help message and exit                               |
| `-v`, `--verbose`       | Enable verbose output                                    |
| `-o`, `--output`        | Output WAV file name (default: `temp.wav`)               |
| `-f`, `--frequency`     | Tone frequency in Hz (default: `600`)                    |
| `-s`, `--sample-rate`   | Audio sample rate in Hz (default: `44100`)               |
| `-b`, `--bits`          | Bit depth (default: `16`)                                |
| `-w`, `--wpm`           | Words per minute (speed) (default: `18`)                 |
| `-a`, `--amplitude`     | Tone amplitude (0.0 to 1.0) (default: `0.5`)             |
| `--noaudio`             | Prints Morse code without generating audio.              |
| `--farns`               | Apply Farnsworth timing with given WPM for spacing       |

## Python Example

```python
from maudio import get_cipher, get_audio

# Convert message to Morse code
msg = "hello world"
cipher = get_cipher(msg)
print("Morse code:", cipher)

# Generate audio from Morse code
get_audio(
    cipher,
    output="output.wav",
    wpm=18,
    freq=600,
    bits=16,
    rate=44100,
    amp=0.5,
    farns=None
)
```


### Uninstall?

```bash
pip uninstall maudio
```
sitl 0.0.5
A SITL for Betaflight
License: MIT

# Python Wrapper for the Betaflight SITL

```bash
pip install sitl
```

Run
```bash
ui-server
```

Navigate to [http://localhost:13337](http://localhost:13337)

New terminal: Run
```bash
sitl-websockify
```

Navigate to [https://app.betaflight.com](https://app.betaflight.com). `Options` => `Enable manual connection mode`. Port: `Manual Selection` and paste `ws://127.0.0.1:6761`

Create gamepad mapping in the following form:

```json
{
    "throttle": {"axis": 1, "invert": true},
    "yaw": {"axis": 0, "invert": false},
    "roll": {"axis": 3, "invert": false},
    "pitch": {"axis": 4, "invert": true},
    "arm": {"button": 5, "invert": false}
}
```

You can identify the axes by running:
```bash
sitl-gamepad
```
And moving the axes and buttons around


New terminal: Run
```bash
sitl path/to/gamepad_mapping.json
```


# Troubleshooting

Ports in use:

```bash
netstat -tulpn | grep 13337
netstat -tulpn | grep 6761
netstat -tulpn | grep 5761
netstat -tulpn | grep 9002
netstat -tulpn | grep 9003
netstat -tulpn | grep 9004
```

```bash
kill -9 {PID (last number in row)}
```