A real-time transcription project using React and a socketio python server. The goal of this project is to enable developers to create web demos and speech2text prototypes with just a few lines of code. Examples can be medical dictation apps, a note-taking CRM for entrepreneurs, etc.
Currently only supports real-time transcription using Google Cloud Speech
https://user-images.githubusercontent.com/6180201/124362454-370e6600-dc35-11eb-8374-77da5aec25b2.mp4
yarn
instructionsThe code assumes an environment variable GOOGLE_SERVICE_JSON_FILE
that points to a valid GCP service account file.
If you need to get a service account:
More info in Google Cloud's docs here and here.
Then, set the environment variable GOOGLE_SERVICE_JSON_FILE
to the path of the JSON file containing your service account key, e.g. /users/sahar/documents/sample-project-3c1a5892b00e.json
. Further details can be found in this Medium article.
python -m venv $ENV_NAME
source $ENV_NAME/bin/activate
(for MacOS, Unix, or Linux users) or .\ENV_NAME\Scripts\activate
(for Windows users)pip install -r backend/requirements.txt
GOOGLE_SERVICE_JSON_FILE
to point to your file pathyarn install
in the root directoryyarn start
to start the frontend and start-backend
to run the backend