- Ffmpeg
- (Optional) Docker
gh repo clone astaff/freespeech
cd freespeech
or
git clone https://github.com/astaff/freespeech.git
cd freespeech
- Copy
.env
file into/
mkdir id
and copy credentials (Google, etc) toid/
Run bin/copy_hooks.sh
From project home directory:
- To run locally:
pip install -e .
andfreespeech --help
- To test locally:
pip install -e ".[test]"
- To run the tests:
make test
- To generate training data:
make data
- To build docs locally:
pip install -e ".[docs]" && make docs
Currently, text-to-speech from Azure is used. In order to get a working environment, one needs to:
- Have a Microsoft Azure account. https://azure.microsoft.com/en-us/free/ to get started
- Create a Speech resource in certain Azure region https://ms.portal.azure.com/#create/Microsoft.CognitiveServicesSpeechServices
- Obtain values for
AZURE_REGION
andAZURE_SUBSCRIPTION_KEY
required by the app link to guide
General 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.