Code Monkey home page Code Monkey logo

bili2text's Introduction

bili2text logo

GitHub stars GitHub GitHub last commit GitHub release (latest by date)

Bili2text 📺

简介 🌟

bili2text 是一个用于将 Bilibili 视频转换为文本的工具🛠️。这个项目通过一个简单的流程实现:下载视频、提取音频、分割音频,并使用 whisper 模型将语音转换为文本。整个过程是自动的,只需输入 Bilibili 视频的 av 号即可。整个过程行云流水,一步到胃😂

功能 🚀

  • 🎥下载视频:从 Bilibili 下载指定的视频。
  • 🎵提取音频:从下载的视频中提取音频。
  • 💬音频分割:将音频分割成小段,以便于进行高效的语音转文字处理。
  • 🤖语音转文字:使用 OpenAI 的 whisper 模型将音频转换为文本。

使用方法 📘

  1. 克隆仓库

    git clone https://github.com/lanbinshijie/bili2text.git
    cd bili2text
  2. 安装依赖: 安装必要的 Python 库。

    pip install -r requirements.txt
  3. 运行脚本: 使用 Python 运行 main.py 脚本。

    python main.py

    在提示时输入 Bilibili 视频的 av 号。

  4. 使用UI界面

    python window.py

    在弹出的窗口中输入视频链接,会自动转换为av号,点击下载视频按钮即可完成文件转换。

示例 📋

from downBili import download_video
from exAudio import *
from speech2text import *

av = input("请输入av号:")
filename = download_video(av)
foldername = run_split(filename)
run_analysis(foldername, prompt="以下是普通话的句子。这是一个关于{}的视频。".format(filename))
output_path = f"outputs/{foldername}.txt"
print("转换完成!", output_path)

技术栈 🧰

  • Python 主要编程语言,负责实现程序逻辑功能
  • Whisper 语音转文字模型
  • Tkiner UI界面展示相关工具
  • TTKbootstrap UI界面美化库

后续开发计划 📅

  • 生成requirements.txt
  • UI化设计

运行截图 📷

screenshot3

screenshot2

screenshot1

许可证 📄

本项目根据 MIT 许可证发布。

贡献 💡

如果你想为这个项目做出贡献,欢迎提交 Pull Request 或创建 Issue。

致谢 🙏

再此感谢Open Teens对青少年开源社区做出的贡献!@OpenTeens

bili2text's People

Contributors

lanbinshijie avatar

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.