Orion/README.md

45 lines
1.8 KiB
Markdown
Raw Permalink Normal View History

2022-04-09 18:14:29 +01:00
# Orion
2022-04-15 23:35:33 +01:00
Orion is a telegram bot that converts voice messages into text and org-mode files.
It can be trained for better accuracy.
2022-04-18 19:10:26 +01:00
## Requirements
You need to have Golang and Python installed.
## Usage
2022-04-15 23:35:33 +01:00
In order to use it, first you need to setup the project which you can just call
2022-04-18 19:10:26 +01:00
`./builder setup` . Also you need to store your bot's token (that you get from
Telegram's bot father) in the `.env` file like:
```
BOT_TOKEN=<ACTUAL_TOKEN_GOES_HERE>
```
and then you can run Orion via the builder script again with the
2022-04-15 23:35:33 +01:00
following command:
```bash
2022-04-16 11:56:00 +01:00
./builder run -owner TELEGRAM_ID -org-file ORG_FILE_PATH -model PATH_TO_MODEL -scorer PATH_TO_SCORER
2022-04-15 23:35:33 +01:00
```
2022-04-15 23:38:29 +01:00
* **TELEGRAM_ID**: Is your telegram id. It will only reply to you and tell others
2022-04-15 23:35:33 +01:00
to F off.
2022-04-16 11:56:00 +01:00
* **ORG_FILE_PATH**: Path to an `org-mode` file that **HAS TO EXIST**. Orion will append entries
to this file.
2022-04-15 23:38:29 +01:00
* **PATH_TO_MODEL(optoinal)**: Is the path to the model file you want to use for speech recognition.
2022-04-15 23:35:33 +01:00
the default points to the default model in the models directory.
2022-04-15 23:38:29 +01:00
* **PATH_TO_SCORER(optional)**: Is the path to the scorer to be use to speech recognition.
2022-04-15 23:35:33 +01:00
the default points to the default scorer in the models directory.
Models and scorers should be compatible with [Coqui](https://coqui.ai/).
2022-04-16 12:19:15 +01:00
## Rigel
**Orion** contains a text to speech server as well. Since I'm lazy I use Rigel to read stuff for
me. I integrated Rigel in my Emacs environment as well and it such a useful tool. For more info
on Rigel check out its [readme](https://devheroes.codes/lxsameer/Orion/src/branch/master/rigel/README.md)
Also if you want to integrate Rigel into your Emacs have a look at [the lib I created for it](https://devheroes.codes/FG42/FG42/src/branch/master/core/cubes/rigel/core.el)
for inspiration. Also you can use Rigel with anything it's not an Emacs only tool.