Whispering is the API service for transcription.
-
Clone this repository
git clone git@github.com:sugarforever/whispering.git
-
Install
poetry
Whispering is using
poetry
to manage python dependencies.curl -sSL https://install.python-poetry.org | python3 -
-
Go to the cloned directory
whispering
, initialize a poetry shell, and install the dependencies.$ cd whispering $ poetry shell $ poetry install
-
Copy
.env.example
to.env
and set OPENAI_API_KEYThere are 2 environmental variables referenced by the service:
-
X_API_KEYS
X_API_KEYS is used to protect the API endpoint from anonymous usage. You should always pass it as a HTTP header
X-API-KEY
. -
OPENAI_API_KEY
OPENAI_API_KEY is used to call the OpenAI transcribe API.
-
-
Start the service
poetry run uvicorn main:app
The service should be up and running on http://localhost:8000