-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
adnan wahab
committed
Oct 23, 2024
1 parent
a7e67b2
commit 28f3e88
Showing
7 changed files
with
201 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
200k_prs/whisper.cpp/ | ||
archive/ | ||
hardware/* | ||
web-ui/archive | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
# # To run Whisper with micromamba, follow these steps to set up the environment and install Whisper efficiently: | ||
|
||
# # Step 1: Create a New Environment with micromamba | ||
|
||
# # 1. Create a new environment: | ||
# # First, create a new environment for Whisper with Python 3.9 or later (required by Whisper): | ||
|
||
# micromamba create -n whisper_env python=3.9 | ||
|
||
|
||
# # 2. Activate the environment: | ||
|
||
# micromamba activate whisper_env | ||
|
||
|
||
|
||
# Step 2: Install Dependencies | ||
|
||
# # 1. Install pip (if it’s not already installed): | ||
|
||
# micromamba install pip | ||
|
||
|
||
# 2. Install Whisper using pip: | ||
# # Once the environment is activated, you can install Whisper: | ||
|
||
# pip install git+https://github.com/openai/whisper.git | ||
|
||
# # Alternatively, if you want the stable version from PyPI: | ||
|
||
# pip install whisper | ||
|
||
|
||
|
||
# Step 3: Install Optional Dependencies (for GPU) | ||
|
||
# If you have a GPU and want to leverage it for faster transcription, you’ll need PyTorch with CUDA support: | ||
|
||
#1. Install PyTorch with CUDA: | ||
|
||
|
||
|
||
|
||
#Step 4: Run Whisper | ||
|
||
# Once you have Whisper and its dependencies installed, you can start transcribing audio: | ||
|
||
#1. Run Whisper on an MP3 file: | ||
|
||
#whisper your_audio_file.mp3 --model small | ||
|
||
# You can specify different model sizes (tiny, small, medium, large) depending on your desired accuracy and performance trade-off. | ||
|
||
# Example Workflow: | ||
|
||
#1. Create and activate the environment: | ||
|
||
micromamba create -n whisper_env python=3.9 | ||
micromamba activate whisper_env | ||
micromamba install pytorch torchvision torchaudio -c pytorch | ||
|
||
# If you need a specific CUDA version, you can specify it like this: | ||
|
||
micromamba install pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorch | ||
|
||
|
||
#2. Install Whisper: | ||
|
||
# pip install whisper | ||
|
||
|
||
# #3. Transcribe your MP3 file: | ||
|
||
# whisper ~/*.mp3 --model small | ||
|
||
# ... existing code ... | ||
|
||
# 2. Install Whisper: | ||
pip install openai-whisper | ||
|
||
# 3. Transcribe your MP3 file: | ||
python -m whisper ~/*.mp3 --model small | ||
|
||
# ... existing code ... | ||
|
||
# This will produce a transcription text file in the same directory as your MP3 file. | ||
|
||
# Let me know if you run into any issues! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters