setup.sh: support Fedora
This commit is contained in:
@@ -25,7 +25,7 @@ input from microphone and pre-recorded audio files.
|
|||||||
- [Citations](#citations)
|
- [Citations](#citations)
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
- Install PyAudio
|
- Install PortAudio
|
||||||
```bash
|
```bash
|
||||||
bash scripts/setup.sh
|
bash scripts/setup.sh
|
||||||
```
|
```
|
||||||
@@ -35,6 +35,16 @@ input from microphone and pre-recorded audio files.
|
|||||||
pip install whisper-live
|
pip install whisper-live
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
- Install 3.12 venv on Fedora
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo dnf install -y python3.12 python3.12-pip
|
||||||
|
python3.12 -m venv whisper_env
|
||||||
|
source whisper_env/bin/activate
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
### Setting up NVIDIA/TensorRT-LLM for TensorRT backend
|
### Setting up NVIDIA/TensorRT-LLM for TensorRT backend
|
||||||
- Please follow [TensorRT_whisper readme](https://github.com/collabora/WhisperLive/blob/main/TensorRT_whisper.md) for setup of [NVIDIA/TensorRT-LLM](https://github.com/NVIDIA/TensorRT-LLM) and for building Whisper-TensorRT engine.
|
- Please follow [TensorRT_whisper readme](https://github.com/collabora/WhisperLive/blob/main/TensorRT_whisper.md) for setup of [NVIDIA/TensorRT-LLM](https://github.com/NVIDIA/TensorRT-LLM) and for building Whisper-TensorRT engine.
|
||||||
|
|
||||||
|
|||||||
+16
-4
@@ -13,8 +13,20 @@ if [[ "$OSTYPE" == "darwin"* ]]; then
|
|||||||
|
|
||||||
# Install packages using Homebrew
|
# Install packages using Homebrew
|
||||||
brew install portaudio wget
|
brew install portaudio wget
|
||||||
else
|
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
||||||
# Linux (Debian/Ubuntu)
|
# Linux
|
||||||
echo "Detected Linux, using apt-get for installation"
|
if [[ -f /etc/os-release ]]; then
|
||||||
apt-get install portaudio19-dev wget -y
|
source /etc/os-release
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ "${ID:-}" == "fedora" ]]; then
|
||||||
|
echo "Detected Fedora, using dnf for installation"
|
||||||
|
dnf install -y portaudio-devel wget
|
||||||
|
else
|
||||||
|
echo "Detected Linux (assuming Debian/Ubuntu), using apt-get for installation"
|
||||||
|
apt-get install -y portaudio19-dev wget
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "Unsupported operating system: $OSTYPE"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
Reference in New Issue
Block a user