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

USING THIS SETUP ON CPU #42

Open
shanky100 opened this issue Aug 22, 2023 · 14 comments
Open

USING THIS SETUP ON CPU #42

shanky100 opened this issue Aug 22, 2023 · 14 comments

Comments

@shanky100
Copy link

Hi, just wanted to ask if it is possible to use this repo using CPU , if yes then do I need to make any specific changes to the code or any other additional step. OS: Ubuntu 20 LTS and python 3.8

@shanky100
Copy link
Author

I managed to get the system up and running, whatever I speak the analog signal changes but I do not received any transcription on the UI/web page. I cna see the transcription being generated in the terminal logs.

Is someone else facing the same issue, any suggestions will be helpful.

@saharmor
Copy link
Owner

Can you attach the console log (a screenshot would do) + a screen recording?

@ethanzrd
Copy link
Collaborator

Following Sahar's request, please make sure that the screen recording is at least 15 seconds if you're using the real-time mode with a transcription timeout of 5 seconds :)

@shanky100
Copy link
Author

@saharmor Thank you for the reply, I am attaching a screen recording which you can check, although in terminal I see the transcriptions after some time but I do not get nay print on the web page UI.

issue.mp4

image

I hope this helps to get a better understanding on the challenge I am facing.

@ethanzrd
Copy link
Collaborator

That's odd. I don't know what could be causing this.
I have an odd request, let me know if you want me to clarify.

Once you see "Transcription generated", forcefully terminate the program (Ctrl +C), go to the project files, open the backend folder, and there you should see a folder called temp. Within that folder, there's a file called batch.wav, could you please upload it to Drive and share the link? Or compress it and drag-and-drop it?

@shanky100
Copy link
Author

shanky100 commented Aug 22, 2023

https://github.com/saharmor/whisper-playground/assets/132049696/d4355b4c-8e27-422f-b345-b76e69bf1f87
@ethanzrd I just checked what you suggested but I don't see any temp folder getting created in the backed folder.

I by mistake said backed folder in the video but I mean temp folder only. YOu can check the recording

Also, I forcefully terminated the program after a transcript got generated for a segment, but still I cannot locate any temp folder being created in the backed folder or any batch.wav file.

@ethanzrd
Copy link
Collaborator

You're right, I was mistaken. This only applies to the sequential mode. Speaking of which, could you try it and let me know if you're having any problems there? If you are, then the batch.wav file will be present for you to include :)

@shanky100
Copy link
Author

@ethanzrd I checked with sequential mode. There it generated the wav file and it is having the voice recording. But I neither see any transcription in my terminal logs nor on the whisper playground WEB PAGE.

I am sharing the wav file.
temp.zip

image

@ethanzrd
Copy link
Collaborator

Huh, that is odd. I'll test a bit with the recording tomorrow :)

@shanky100
Copy link
Author

One more thing I checked , I am getting the transcript in my

tag but the issue is that it is not getting displayed on the web page. Here is a screenshot for the same.
Any guess/suggestion for this behaviour?

image

@shanky100
Copy link
Author

@saharmor Thank you for the reply, I am attaching a screen recording which you can check, although in terminal I see the transcriptions after some time but I do not get nay print on the web page UI.

issue.mp4
image

I hope this helps to get a better understanding on the challenge I am facing.

is there any update/solution which can be recommended?

@ethanzrd
Copy link
Collaborator

ethanzrd commented Aug 24, 2023

As for the HTML problem, have you tried expanding the window?

I don't know what could be causing your transcription issue as your audio is valid, I'll try to run it on a clean Windows installation and get back to you.

@shanky100 shanky100 reopened this Aug 25, 2023
@shanky100
Copy link
Author

I made a fresh installation and had to make change in package.json
"start": "react-scripts --openssl-legacy-provider start" to "start": "react-scripts start --openssl-legacy-provider"
Also I updated my chrome to latest version.

I can see the transcription now, but in starting for most of the segments the transcription being generated is empy, after 30 secs it starts to transcribe something but before that I get no transcript.
Is there any suggestion/solution which can be recommended.

image

@ethanzrd
Copy link
Collaborator

That's what I couldn't understand. I'm currently a bit busy with other things, but once some time frees up, I'll run a fresh Windows installation and run the project to see if there's any dependencies we might have missed that could be causing this strange behavior.

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

3 participants