Kristofer Söderström 79bfa76b36 added example
2023-03-22 11:51:34 +01:00
2023-03-22 11:51:34 +01:00
2023-03-22 11:21:02 +01:00
2023-03-22 11:42:22 +01:00
2023-03-22 11:38:51 +01:00

transcribe

Simple implementation of OpenAI's Whisper to transcribe audio files from your local folders.

Instructions

Using the script

  1. This package was made and tested in an Anaconda environment, if you're not familiar with python I would recommend this method. See here for instructions.
  2. This is a simple script with no installation. Simply download the .py file into your work folder. Then you can either import it to another script or notebook for use. I recommend jupyter notebook for new users.

Requirements

  1. Whisper requires some additional libraries. The setup page states: "The codebase also depends on a few Python packages, most notably HuggingFace Transformers for their fast tokenizer implementation and ffmpeg-python for reading audio files." Users might not need to specifically install Transfomers. However, a conda installation might be needed for ffmepg, which takes care of setting up PATH variables. Install with:
 conda install -c conda-forge ffmpeg-python
  1. The main functionality comes from openai-whisper. See their page for details. As of 2023-03-22 you can install via:
pip install -U openai-whisper

Example

See the example implementation on jupyter notebook.

Description
Simple implementation of OpenAI's whisper model to transcribe audio files from your local folders.
Readme MIT 3 MiB
Languages
Python 88.2%
Jupyter Notebook 9%
Shell 1.6%
Batchfile 1.2%