Metadata-Version: 2.4
Name: aashay-aac
Version: 0.1.1
Summary: AASHAY, an open AAC board for Indic languages, e.g., Hindi, Marathi and Gujarati (easy to extend to other Indic languages)
License-Expression: CC-BY-NC-SA-4.0
Project-URL: Homepage, https://github.com/LatentContext/AASHAY
Project-URL: Repository, https://github.com/LatentContext/AASHAY
Project-URL: Documentation, https://github.com/LatentContext/AASHAY#readme
Project-URL: Issues, https://github.com/LatentContext/AASHAY/issues
Keywords: aac,augmentative-alternative-communication,accessibility,indic,hindi,marathi,gujarati,next-word-prediction,keystroke-savings,word-order
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Text Processing :: Linguistic
Classifier: Intended Audience :: Science/Research
Classifier: Natural Language :: English
Classifier: Natural Language :: Hindi
Classifier: Natural Language :: Marathi
Classifier: Topic :: Communications
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: NOTICE.md
Requires-Dist: fastapi>=0.110
Requires-Dist: uvicorn>=0.29
Requires-Dist: pydantic>=2
Requires-Dist: python-multipart>=0.0.9
Requires-Dist: redis>=5
Requires-Dist: numpy>=1.26
Requires-Dist: scipy>=1.11
Requires-Dist: soundfile>=0.12
Requires-Dist: torch>=2.4
Requires-Dist: transformers<5,>=4.45
Provides-Extra: app
Provides-Extra: google
Requires-Dist: google-auth<3,>=2.40; extra == "google"
Dynamic: license-file

# aashay_aac

**An open AAC board for Hindi, Marathi and Gujarati, started with one command.**

👆 Choose words → 🔮 Get suggestions → ✅ Check the sentence → 🔊 Speak it

## Install and start

```
pip install aashay_aac         # the board and every library it needs
aashay start                   # opens on http://127.0.0.1:8000; create an account on first use
```

- 🗄️ **Redis** keeps accounts and personal lists. `aashay start` launches a private one when `redis-server` is installed (Debian or Ubuntu: `sudo apt install redis-server`; macOS: `brew install redis`). To use your own: `aashay start --redis-url redis://HOST:6379/0`.
- ⬇️ **First start** downloads the sentence model (about 1 GB, from Hugging Face) once.
- 📁 **One folder** holds all state: `~/.aashay` (change it with `--home DIR` or `AASHAY_HOME`).
- 🔒 The board listens on this computer only (`--host 127.0.0.1`).
- 🛑 `aashay status` shows whether it runs; `aashay stop` stops it and saves the data.
- 🔊 **Speech** needs the IndicF5 checkpoint, which is not in the package. Without it the board works and Speak shows a message.
- 🧠 The language-model adapters are not in the package. Without them the count models rank the next words.
- 💡 Smaller install without a GPU: `pip install aashay_aac --extra-index-url https://download.pytorch.org/whl/cpu`

More options: `aashay start --help`. The command is `aashay`. Source, setup guide and the full README: <https://github.com/LatentContext/AASHAY>

## The core alone

The research core (a suffix index, the keystroke-saving KSR@5 harness, n-gram word-order search, a command line and a Python client) uses the Python standard library only. To install just that, without the board's libraries: `pip install aashay_aac --no-deps`.

The commands below work on a model bundle (an `index/` and a `data/` folder, built with `aashay/phone/build_bundle.py` in the repository). `--lang` is one of `en`, `hi`, `mr`, `gu`.

```
aashay info     --bundle DIR
aashay predict  --bundle DIR --lang hi --context "मुझे पानी" --top 5
aashay unjumble --bundle DIR --lang en --chips water want I
aashay ksr      --bundle DIR --lang hi --file messages.txt
```

```python
from aashay_lm.client import AashayClient

client = AashayClient("http://localhost:8000")
client.sign_in("user", "password")
client.predict_next(["मुझे"], language="hi")
```

## Licence

CC BY-NC-SA 4.0 (non-commercial, share alike). The package also carries third-party material under its own licences: Blissymbols (CC BY-SA 4.0, © Blissymbolics Communication International) and fonts. See `NOTICE.md`.
