Skip to content

ckaznable/yt-cli-live

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Youtube Text Live Streaming in CLI

This project aims to enable streaming YouTube videos and converting the audio into text, displaying it in the command line interface (CLI). The project utilizes the whisper-rs, whisper.cpp, silero-vad and yt-dlp libraries and is being developed in Rust.

Requirement

This project using yt-dlp for youtube streaming

  • whisper model

This project using whisper for ASR(Automatic Speech Recognition)

then you can following whisper.cpp README to download whisper models

Suggested use of base or small model

Usage

youtube text streaming in cli

Usage: yt-cli-live [OPTIONS] --model <MODEL> <URL>

Arguments:
  <URL>  youtube url or youtube video id

Options:
  -m, --model <MODEL>      path of whisper model
  -t, --threads <THREADS>  usage thread number for whisper [default: 1]
  -l, --lang <LANG>        whisper parse target language [default: en]
  -v, --verbose            show log of runtime
  -h, --help               Print help
  -V, --version            Print version

Example

yt-cli-live -t 8 -m <model path> -l ja <youtube streaming id or url>

Build Dependencies

  • rustc

yt-cli-live is written in Rust, so you'll need to grab a Rust installation in order to compile it.

  • libclang-dev

you need libclang-dev in linux

Building

git clone https://github.com/ckaznable/yt-cli-live
cd yt-cli-live
cargo build --release

LICENSE

MIT