/kevin-hart-demo

Demo of an Speech-to-text transcription app inspired by Kevin Hart

Primary LanguageHTML

Kevin Hart Demo App

Companion repo for the YouTube Short - Transcribe your ideas like Kevin Hart Using AssemblyAI

You can run the application without changes, just add your AssemblyAI API key.

Prerequisites

You must have:

  1. Python installed
  2. pip installed
  3. An AssemblyAI account

Setup

  1. Clone this repository and cd into it

    git clone https://github.com/AssemblyAI-Examples/kevin-hart-demo.git
    cd kevin-hart-demo
  2. Create and activate a virtual environment (optional)

    MacOS/Linux:

    python -m venv venv  # you may need to use `python3` instead
    source ./venv/bin/activate

    Windows:

    python -m venv venv  # you may need to use `python3` instead
    .\venv\Scripts\activate.bat
  3. Install dependencies

    pip install -r requirements.txt
  4. Set your AssemblyAI API key as an environment variable (you can get a key here)

# Mac/Linux:
export ASSEMBLYAI_API_KEY=<YOUR_KEY>

# Windows:
set ASSEMBLYAI_API_KEY=<YOUR_KEY>
  1. Run python run.py to locally run the Kevin Hart Demo App

To use the application

  1. Record a voice memo or have any audio file handy.
    Note: You'll need to save the voice memo by clicking the ellipsis and selecting 'Save to Files'
  2. Navigate to the 'Transcripts' page.
  3. Click the 'Choose File' button and upload your voice memo/audio file.
  4. Once the transcript has been processed, you can find the transcript result and audio file under the 'Transcripts' header.