Skip to content

Minimal Telegram + Yandex Speech Kit speech-to-text bot.

License

Notifications You must be signed in to change notification settings

alexeyev/ysk-minimal-tgbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ysk-minimal-tgbot

Based on earlier experience and Telegram / YandexSpeechKit docs.

NOTA BENE. Suitable for processing 30-seconds messages only.

Preparing secret keys

Create a file config.ini with the following contents:

[telegram]
key=your_telegram_bot_key

[yandex]
id=your_yandex_cloud_service_api_id
key=your_yandex_cloud_service_api_key

I suggest that you do not commit it.

Telegram

Ask @BotFather for a new bot and all the corresponding keys and stuff. Then write a secret key into config.ini as a [teleram].key thing.

Yandex

Get an API key for a Service at YandexCloud.

  1. Go to https://console.cloud.yandex.ru/
  2. "Перейти в текущий каталог" (by that time you should have created some YCloud account).
  3. "Сервисные аккаунты" on the left panel.
  4. "Создать сервисный аккаунт".
  5. Everything else is obvious.

You will be provided with your id and a key; this is the last time you will have seen your key, so do not forget to copy and save it somewhere. Including config.ini.

And we're good to go

python bot.py

License

This is Beerware, so worry not.

About

Minimal Telegram + Yandex Speech Kit speech-to-text bot.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages