下载 bili 视频
1 2 3 4 5 6 7
   | pip install you-get
 
  pip install yt-dlp
 
 
 
   | 
 
视频转音频
1 2 3 4 5 6
   | scoop install ffmpeg ffmpeg -i xxx.mp4
  ffmpeg -i xxx.mp4 -acodec copy xxx.aac ffmpeg -i xxx.mp4 -acodec copy xxx.mp3 ffmpeg -i xxx.mkv -acodec copy xxx.opus
   | 
 
音频转文字 📘
https://github.com/openai/whisper
- ** whisper **:
 
1 2 3 4
   | pip install -U openai-whisper
  whisper audio.flac audio.mp3 audio.wav --model small --device cpu --language zh
 
   | 
 
- ** python **:
使用 Python 运行 main.py 脚本。 
1 2 3 4 5 6
   | import whisper
  model = whisper.load_model("small", device="cpu") result = model.transcribe(f"123.mp3")
  print(result["text"]))
   |