|
|
%!s(int64=2) %!d(string=hai) anos | |
|---|---|---|
| bin | %!s(int64=2) %!d(string=hai) anos | |
| lib | %!s(int64=2) %!d(string=hai) anos | |
| .env.sample | %!s(int64=2) %!d(string=hai) anos | |
| .gitignore | %!s(int64=2) %!d(string=hai) anos | |
| .rubocop.yml | %!s(int64=2) %!d(string=hai) anos | |
| Dockerfile | %!s(int64=2) %!d(string=hai) anos | |
| Gemfile | %!s(int64=2) %!d(string=hai) anos | |
| Gemfile.lock | %!s(int64=2) %!d(string=hai) anos | |
| Makefile | %!s(int64=2) %!d(string=hai) anos | |
| README.md | %!s(int64=2) %!d(string=hai) anos |
The bot listens for messages and responds to voice messages by transcribing the message using Yandex SpeechKit.
Create a file named .env in the project directory and set the following environment variables:
TELEGRAM_BOT_TOKEN=<your telegram bot token>
YANDEX_SPEECHKIT_API_KEY=<your Yandex SpeechKit API key>
AWS_ACCESS_KEY_ID=<your AWS access key ID>
AWS_SECRET_ACCESS_KEY=<your AWS secret access key>
AWS_BUCKET=<your AWS S3 bucket name>
To build the Docker image, run the following command:
make build
To start the bot container, run the following command:
make start
To view the logs of the bot container, run the following command:
make logs