Code Monkey home page Code Monkey logo

Comments (13)

YU000jp avatar YU000jp commented on June 30, 2024

Additionally, server error message:

Downloading the video: https://www.youtube.com/watch?v=v3JX3mzrAoI into audio ...
Traceback (most recent call last):
  File "D:\------\logseq-whisper-subtitles-server\logseq_whisper_subtitles_server\app.py", line 29, in transcribe
    audio_path = download_youtube(youtube_url)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\-----\logseq-whisper-subtitles-server\logseq_whisper_subtitles_server\services.py", line 54, in download_youtube
    audio_stream.download(filename=audio_name, output_path='.')
  File "C:\Python311\Lib\site-packages\pytube\streams.py", line 312, in download
    with open(file_path, "wb") as fh:
         ^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'D:\\-----\\logseq-whisper-subtitles-server\\logseq_whisper_subtitles_server\\.\\youtube/youtube_audio_735dad45a111435d9fdd69c81d90e9fa.mp3'
127.0.0.1 - - [15/Oct/2023 10:29:28] "POST /transcribe HTTP/1.1" 200 -

from logseq-whisper-subtitles-server.

usoonees avatar usoonees commented on June 30, 2024

Ah, I understand. The path usage on Windows is different from that on a Mac. I hadn't tested this before, but I'll work on resolving the issue tonight.

from logseq-whisper-subtitles-server.

usoonees avatar usoonees commented on June 30, 2024

First, thank you for providing such a great plugin. I try and do not know how to use. It looks like the file isn't downloading.

What I did; Run from the menu of the block with "{{youtube URL}}". Error message:

logseq-whisper-subtitle-server error: [Errno 2] No such file or directory: 
'D:\\ ------ \\logseq-whisper-subtitles-server\\logseq_whisper_subtitles_server\\.\\youtube/youtube_audio_6968954bf60841b48f987933359b93d3.mp3'

My guess is, the server is running. But the file was not found in the directory.

Apologies for the inconvenience. There was a minor bug related to the file path. Could you please pull the latest version from the main branch and try again?

from logseq-whisper-subtitles-server.

YU000jp avatar YU000jp commented on June 30, 2024

It seems like progress has been made. But...

Logseq error message: "not supported source yet"

I used this URL. https://youtu.be/v3JX3mzrAoI ({{youtube https://youtu.be/v3JX3mzrAoI}})

I'm not looking for an immediate solution, but just to report. I will also cooperate as much as possible. 🫡

from logseq-whisper-subtitles-server.

YU000jp avatar YU000jp commented on June 30, 2024

youtube_pattern = r"https://www\.youtube\.com/watch\?v=[a-zA-Z0-9_-]+"

The cause of the problem has been found. The URL did not match the pattern. I will try fixing locally.

from logseq-whisper-subtitles-server.

usoonees avatar usoonees commented on June 30, 2024

@YU000jp Ah, I see the issue. It seems that the link was missing the "https://youtu.be/" prefix and only had "https://www.youtube.com/". Could you please pull the latest version and try again?
image

from logseq-whisper-subtitles-server.

YU000jp avatar YU000jp commented on June 30, 2024

Two errors occurred.

  1. "logseq-whisper-subtitle-server error: The size of tensor a (386) must match the size of tensor b (3) at non-singleton dimension 3"

  2. logseq-whisper-subtitle-server error: cannot reshape tensor of 0 elements into shape [1, 0, 8, -1] because the unspecified dimension size -1 can be any value and is ambiguous

from logseq-whisper-subtitles-server.

usoonees avatar usoonees commented on June 30, 2024

Could you please provide me with the complete error stack?

from logseq-whisper-subtitles-server.

usoonees avatar usoonees commented on June 30, 2024

Can you run with the test audio?

cd logseq_whisper_subtitles_server
python services.py

from logseq-whisper-subtitles-server.

YU000jp avatar YU000jp commented on June 30, 2024

It took some time, but it was reflected in Logseq. After waiting a few minutes, it appears that you received the processing.
I would like to be able to display messages being processed using "logseq.provideUI()".

from logseq-whisper-subtitles-server.

usoonees avatar usoonees commented on June 30, 2024

Yeah, you're right. The speed is tied to the local machine's capabilities. It's a bit slow on CPU; maybe a message should be displayed.

from logseq-whisper-subtitles-server.

usoonees avatar usoonees commented on June 30, 2024

Just outputting verbose logs to the console for now, which also means it could possibly switch to stream output for logseq, I will try to implement this.

from logseq-whisper-subtitles-server.

YU000jp avatar YU000jp commented on June 30, 2024

Let me explain just in case. A popup will be displayed when use "logseq.provideUI()".

"logseq.provideUI()" sample code:
https://github.com/YU000jp/logseq-plugin-side-block/blob/31fa885980550180d569510a0d08f9699fca0ace/src/index.ts#L143

Process for remove the popup:
https://github.com/YU000jp/logseq-plugin-side-block/blob/31fa885980550180d569510a0d08f9699fca0ace/src/index.ts#L96C5-L96C95

from logseq-whisper-subtitles-server.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.