Skip to content

Commit

Permalink
Merge pull request #40 from g8a9/feat/support-speech-from-array
Browse files Browse the repository at this point in the history
Support audio processing as arrays
  • Loading branch information
emanuele-moscato authored Mar 27, 2024
2 parents c8dd6e1 + 4ff1c2b commit 4d46242
Show file tree
Hide file tree
Showing 17 changed files with 1,372 additions and 710 deletions.
21 changes: 10 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,24 +42,23 @@ For the default installation, which does **not** include the dependencies for th
pip install -U ferret-xai
```

Our main dependencies are 🤗 `tranformers` and `datasets`.
**Troubleshoothing**

If the speech XAI functionalities are needed, then

```
pip install -U ferret-xai[speech]
```

At the moment, the speech XAI-related dependencies are the only extra ones, so installing with `ferret-xai[speech]` or `ferret-xai[all]` is equivalent.

**Important** Some of our dependencies might use the package name for `scikit-learn` and that breaks ferret installation. \
Some of our dependencies might use the package name for `scikit-learn` and that breaks ferret installation. \
If your pip install command fails, try:

```bash
SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL=True pip install -U ferret-xai
```

This is hopefully a temporary situation!
### (Optional) Install XAI Speech functionalities

If the speech XAI functionalities are needed, then follow these steps:

1. install the library with: `pip install -U ferret-xai[speech]` or `pip install -U ferret-xai[all]`
2. install whisperX with `pip install git+https://github.com/m-bain/whisperx.git`
3. install system-wide [ffmpeg](https://ffmpeg.org/download.html). If you have no sudo rights, you can try with `conda install conda-forge::ffmpeg`


### Explain & Benchmark

Expand Down
Loading

0 comments on commit 4d46242

Please sign in to comment.