This repository contains utility functions to assist with transcribing audio recordings. The audio recordings are interviews conducted as part of the MSE 343 Human-Computer Interaction (HCI) project. I used a combination of OpenAI's LLMs and Whisper Models as well as HuggingFace's open-source alternatives to allow for variation in models depending on the need.
- Python 3.x installed on your machine
- Basic knowledge of command-line operations
Using a virtual environment is recommended to manage project-specific dependencies and avoid conflicts with other Python projects.
-
Navigate to the project directory:
cd path/to/Audio_Transcription -
Create the virtual environment:
python3 -m venv .venv
- This command creates a folder named
.venvin your project directory. - The
.venvfolder contains a standalone Python installation along with its ownpip.
- This command creates a folder named
-
On Windows:
.venv\Scripts\activate
-
On macOS/Linux:
source .venv/bin/activate- After activation, your command prompt will be prefixed with
(.venv)to indicate that the virtual environment is active.
- After activation, your command prompt will be prefixed with
With the virtual environment activated, you can now install project dependencies.
-
If you have a
requirements.txtfile:pip install -r requirements.txt
-
To install packages individually (e.g.,
numpy,pandas):pip install package_name
When you're done working on the project, deactivate the virtual environment:
deactivate- This returns you to your system's default Python interpreter.
A requirements.txt file lists all the Python packages needed to run the project, along with their versions.
-
Ensure all necessary packages are installed in your virtual environment.
-
Generate the
requirements.txtfile:pip freeze > requirements.txt- This command writes all the installed packages and their versions to
requirements.txt.
- This command writes all the installed packages and their versions to
To install all the dependencies listed in requirements.txt:
-
Activate the virtual environment (if not already active).
-
Run the installation command:
pip install -r requirements.txt
- This installs all packages specified in the file, ensuring a consistent environment across different setups.
Feel free to contribute to this project by submitting issues or pull requests. For any questions or suggestions, please contact the repository maintainer.