pip install torch transformers yt-dlp librosa
從 YouTube 轉錄:
python whisper_transcribe.py --youtube YOUR_YOUTUBE_URL --output output.json
python whisper_transcribe.py --file YOUR_AUDIO_OR_VIDEO_FILE --output output.json
--output-txt "Output TXT file path"
--output-json "Output JSON file path")
--output-parquet "Output Parquet file path") --pure-text "Save only pure text without timestamps")