gh repo clone astaff/freespeech
cd freespeech
or
git clone https://github.com/astaff/freespeech.git
cd freespeech
.env
file into /
mkdir id
and copy credentials (Google, etc) to id/
Run bin/copy_hooks.sh
From project home directory:
pip install -e .
and freespeech --help
pip install -e ".[test]"
make test
make data
pip install -e ".[docs]" && make docs
Currently, text-to-speech from Azure is used. In order to get a working environment, one needs to:
AZURE_REGION
and AZURE_SUBSCRIPTION_KEY
required by the app
link to guideGeneral quickstart guide: https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/get-started-speech-to-text
TBD
Service is available as a chatbot. You would need to create a chat bot via
https://t.me/BotFather (and hence obtain TELEGRAM_BOT_TOKEN
to set env). Please also
disable privacy mode for bot since we want to react to plain mentions in groups.
This can be done in BotFather settings for your bot via telegram itself.
TELEGRAM_WEBHOOK_URL
should also be set. This should be a publicly accessible URL
pointing to the webhook. Telegram would push messages to this URL. Typically this would
look like http://address.tld:8080/tg_webhook
when ran with start-telegram
on address.tld
host.
You can use ngrok to forward local port from development machine to a public address.