Skip to content

This sample demonstrates interacting with the Deepgram API from Flask to make transcriptions of prerecorded files.

License

Notifications You must be signed in to change notification settings

deepgram-starters/prerecorded-flask-starter

Repository files navigation

Pre-recorded Transcription Flask Starter

Discord

This sample demonstrates interacting with the Deepgram API from Flask to make transcriptions of prerecorded files. It uses the Deepgram Python SDK, with a javascript client built from web components (no npm requirements).

What is Deepgram?

Deepgram is a foundational AI company providing speech-to-text and language understanding capabilities to make data readable and actionable by human or machines.

Sign-up to Deepgram

Before you start, it's essential to generate a Deepgram API key to use in this project. Sign-up now for Deepgram and create an API key.

Quickstart

Manual

Follow these steps to get started with this starter application.

Clone the repository

Go to GitHub and clone the repository.

Install dependencies

Install the project dependencies.

pip install -r requirements.txt

Edit the config file

Copy the code from sample.env and create a new file called .env. Paste in the code and enter your API key you generated in the Deepgram console.

DEEPGRAM_API_KEY=%api_key%

Run the application

Once running, you can access the application in your browser.

flask run -p 8080

Setting up a Python developer environment

Install virtualenv.

pip install virtualenv

Create a virtual environment.

python -m venv env

Activate the environment.

source env/bin/activate

Then install your dependencies with pip and they will be installed in the virtual environment rather than your user.

pip install -r requirements.txt

Issue Reporting

If you have found a bug or if you have a feature request, please report them at this repository issues section. Please do not report security vulnerabilities on the public GitHub issue tracker. The Security Policy details the procedure for contacting Deepgram.

Getting Help

We love to hear from you so if you have questions, comments or find a bug in the project, let us know! You can either:

Author

Deepgram

License

This project is licensed under the MIT license. See the LICENSE file for more info.

About

This sample demonstrates interacting with the Deepgram API from Flask to make transcriptions of prerecorded files.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published