Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Whisper Addition] Add in Whisper Implementation #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pavanagrawal123
Copy link

This is a janky (but working) implementation for Whisper if anyone wants to try this on a non MacOS system.

You'll have to build the C++ version of Whisper from here: https://github.com/ggerganov/whisper.cpp (instructions are great on the upstream repo!)

Also, some small fixes in case you have a GPU w/ CUDA -- in some instances tensors were getting loaded on separate devices.

In order to use whisper, the top of file parameters will have to be changed.

@invictus2010
Copy link

invictus2010 commented Dec 22, 2022

This looks just like what I'm looking for! Any sense of why I get the following error though?

    hear_process = get_hear()
  File "main.py", line 89, in get_hear
    whisper_model_location])
  File "/Users/<name>/opt/anaconda3/lib/python3.7/subprocess.py", line 800, in __init__
    restore_signals, start_new_session)
  File "/Users/<name>/opt/anaconda3/lib/python3.7/subprocess.py", line 1551, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '~/Users/<name>/projects/whisper.cpp/stream': '~/Users/<name>/projects/whisper.cpp/stream'

I've triple checked the path; I definitely have the stream binary at the location.

@invictus2010
Copy link

Changed it ../whisper.cpp/stream and error cleared. Disregard above!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants