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

How to run the transcribe_wav.py code directly instead of using the release wheel package? #21

Open
QingWind6 opened this issue Oct 19, 2023 · 1 comment

Comments

@QingWind6
Copy link

I need to make certain modifications to the code, such as converting the frequency of the WAV file before reading it and then transcribing the speech. However, if I run transcribe_wav.py directly, it will throw an error:
Traceback (most recent call last):

  File "E:\useful-transformers-main\examples\whisper\transcribe_wav.py", line 4, in <module>
    from .whisper import decode_wav_file
ImportError: attempted relative import with no known parent package

How can I run the transcribe_wav.py code directly instead of using the release wheel package?
Thank you so much!

@HduHestin
Copy link

Have you solve it? i meet the same problem

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

No branches or pull requests

2 participants