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

Chrome Extension Empty Output #22

Open
pythonlearner1025 opened this issue Sep 10, 2023 · 1 comment
Open

Chrome Extension Empty Output #22

pythonlearner1025 opened this issue Sep 10, 2023 · 1 comment

Comments

@pythonlearner1025
Copy link

pythonlearner1025 commented Sep 10, 2023

Versions:

  • @xenova/transformers": "^2.1.0
  • Manifest v3.0

Issue
The final result of the transcription is always an empty text.

Steps to Replicate

  • Clone this repository
  • Load it as chrome extension
  • Enable microphone by clicking "Record"
  • Activate extension popup (click on icon or press down "Ctrl+B" (windows) OR "Cmd+B" (mac)
  • Open DevTools inspector by right-clicking and selecting "inspect" option on the extension popup
  • Hold down "v" to record, release "v" stop recording and to begin transcribing it.
  • Observe console outputs
  • he completed output (return value of "transcriber") will be always empty
  • Line 105 of background.js

Notes:

• Uncaught (in promise) Error: Unsupported model type: whisper at Function.from_pretrained (background.bundle. is:2:640741
async background. bundle. is:2:689608
  • I am mostly copy-pasting code from this repo's worker.js into my repo's background.js (extension worker).

Screenshots:
Screenshot 2023-09-09 at 11 25 15 PM

@xenova
Copy link
Owner

xenova commented Sep 18, 2023

Hi there. The "unsupported" issue should be fixed in v2.6.1 (it was an issue related to minification). Could you try again with that version?

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