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 not working #109

Open
imiraoui opened this issue Apr 23, 2023 · 4 comments
Open

Whisper not working #109

imiraoui opened this issue Apr 23, 2023 · 4 comments

Comments

@imiraoui
Copy link

Thanks for this amazing plugin. I have shared a few voice notes to the logseq app in .m4a format. When I run the command '/whisper' on that block nothing happens and no text gets transcribed. Any idea how come?

If I run this on an empty block, I do get an error message telling me there is no audio file on that block so I'm not sure what I'm doing wrong...

@juanjonavarro
Copy link
Contributor

What is the size of the .m4a file? The Whisper API has a limit of 25MB per file.

@briansunter
Copy link
Owner

Is there an error message in the console (some instructions are on the readme for finding this)

@jakemkc
Copy link

jakemkc commented Sep 21, 2023

Hi all,
I just installed this plugin and got the same problem as imiraoui. I used voice memo in iOS to do recording, then share to Logseq to get a *.m4a file

I tried to follow the instruction to check console for hints of the problem, and it said "file not found"

Logseq referred to this link: ![New%2520Recording](../assets/New%2520Recording.m4a, and it works. I can play the audio in Logseq

I tried to figure out the file path in the error message, and it is:
file:///Users/jake/Library/Mobile%20Documents/iCloud~com~logseq~logseq/Documents/daily_trial/assets/New%2520Recording.m4a

I can't open this link with Firefox, it said file not found.

So I tried to open a link with assets directory in Firefox:
file:///Users/jake/Library/Mobile%20Documents/iCloud~com~logseq~logseq/Documents/daily_trial/assets

It listed a file named New%2520Recording.m4a. But when I click into it, Firefox can play the file, but the path automatically changed to
file:///Users/jake/Library/Mobile Documents/iCloud~com~logseq~logseq/Documents/daily_trial/assets/New%252520Recording.m4a

You can see the file name has changed.

I tried to locate the file in Finder, and the path is /Users/jake/Library/Mobile Documents/iCloud~com~logseq~logseq/Documents/daily_trial/assets/New%2520Recording.m4a. The file name is New%2520Recording.m4a.

I don't sure why in "file:///" the file name is not the same as what I see in Finder..but I think the bug is here and I hope it will help you to fix the problem. @briansunter

Best,
Jake

Screenshots:
Shot 1
Shot 20
Shot 21

@usoonees
Copy link
Contributor

usoonees commented Oct 13, 2023

Try installing the latest version; it appears that the previous version has a duplicated '/' in the URL. Or just change the URL from http://api.openai.com/v1/ to http://api.openai.com/v1 in plugin settings.

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

5 participants