Metadata-Version: 2.4
Name: aashay-aac
Version: 0.1.2
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

AASHAY keeps what you meant, including a clear yes or no, before it speaks.

- 👆 **Select:** tap symbols or words in हिन्दी, मराठी or ગુજરાતી, or type them. The next word is suggested as you go.
- ✅ **Verify:** AASHAY checks the selected concepts and their polarity, then proposes a sentence you can read and edit.
- 🔊 **Voice:** hear the message in a clear Indic voice, or in your own voice if you choose to add 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
```

- 🗄️ **Storage:** accounts are kept in Redis. `aashay start` runs it for you when it 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** can take a few minutes while the board downloads what it needs; later starts are quick.
- 📁 **One folder** holds all your data: `~/.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 your data.
- 🔊 **Speech** needs a voice file that is not part of the package. Without it the board works and Speak shows a message.
- 🧠 Optional improvements to the next-word suggestions are not part of the package; suggestions work without them.
- 💡 No graphics card? Add `--extra-index-url https://download.pytorch.org/whl/cpu` to the install command for a lighter download.

Data and metrics: <https://github.com/LatentContext/AASHAY/blob/main/docs/DATA.md>. 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`.
