Giter Site home page Giter Site logo

whisperxmac's Introduction

Local Installation

You can clone this repo, and install this directly as a python package instead of using the one off of the main repo. The setup.py is changed to support arm64 vs the main repo. You will need to specify the compute type and language.

cd whisperx
pip3 install .
whisperx input.mp3 --compute_type int8 --language en

DockerHub Image:

https://hub.docker.com/repository/docker/justinwlin/whisperxmac/general

Docker Build Commands

Build Command:

docker build -t whisperx_image .

Example how to run it and mount it on your current working directory

(In mine the docker image is named justinwlin/whisperxmac:1.0) This mounts your current working directory + then runs the whisperx command on the input.mp3 file

docker run --rm -it -v $(pwd):/app justinwlin/whisperxmac:1.0 /bin/bash
whisperx input.mp3 --compute_type int8 --language en
whisperx output.mp3 --compute_type int8 --language en --highlight_words True

Depot

I'm using Depot to build my Dockerfile, to build for mac / arm64:

depot build -t whisperx_image . --platform linux/arm64 --load

Original Repo:

https://github.com/m-bain/whisperX

Github Issue:

WhisperX doesn't run on mac due to pyannote.audio upgrading a dependency to a version that doesn't support mac. pyannote/pyannote-audio#1505

WhisperX Issue: m-bain/whisperX#499

whisperxmac's People

Contributors

justinwlin avatar

Stargazers

石林行者 avatar Grant Barrett avatar li avatar Chandra (tckb) avatar Ishan Marikar avatar  avatar

Watchers

 avatar

Forkers

meaixuexi colin4k

whisperxmac's Issues

float16 compute type is not supported.

ValueError: Requested float16 compute type, but the target device or backend do not support efficient float16 computation.

I tried the following code: whisperx /Users/usr/Downloads/VLC-Aug-25-11.35.53.mp3 compute_type=“int8” --language fr

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.