Vdosumry converts speech from videos into text and then summarizes the text.
- ollama: Please install ollama before installing Vdosumry
- poetry: Please install poetry before installing Vdosumry
Ensure your Python version is 3.11 or above, then install the dependencies using the following command:
poetry install
To generate a summary of a video, run the following command:
poetry run vdosumry https://www.youtube.com/watch\?v={youtube_youtube_id}
or
poetry run vdosumry "https://www.youtube.com/watch?v={youtube_youtube_id}"
- --output : Directory to save the summary (default:
./output
) - --model-size : Size of the Whisper model (default:
base
) - --ollama-model : Ollama model to use for summarization (default:
llama3.2
) - --language : summarization language (default:
zh-TW
)
poetry run vdosumry "https://www.youtube.com/watch?v={youtube_youtube_id}" --output="./output" \
--model-size="base" --ollama-model="llama3.2" --language="zh-TW"
Issues and pull requests are welcome. Please ensure your code adheres to the project's coding standards.
Use Ruff to lint your code before opening a pull request.
poetry run ruff format
This project is licensed under the MIT License.