WhisperInDocker

command module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

README

WhisperInDocker

使用openaiwhisper批量生成字幕

和程序有关的部分放在/app目录 和生成后的内容有关的放在/data里

model

https://huggingface.co/ggerganov/whisper.cpp/tree/main

Size Parameters Englishonlymodel Multilingualmodel RequiredVRAM Relativespeed
Size Parameters Englishonlymodel Multilingualmodel RequiredVRAM Relativespeed
tiny 39M tiny.en tiny ~1GB ~32x
base 74M base.en base ~1GB ~16x
small 244M small.en small ~2GB ~6x
medium 769M medium.en medium ~5GB ~2x
large 1550M N/A large ~10GB 1x

usage

  • 和程序有关的部分放在/app目录 和生成后的内容有关的放在/data里
name: whisper
services:
  whisper:
    stdin_open: true
    tty: true
    deploy:
      resources:
        limits:
          cpus: "4"
          memory: 4096M
    container_name: whisper_en
    volumes:
      - /path/to/openai/whisper/model:/model 
      - /path/to/videos:/data
      - /path/to/WhisperInDocker:/app
    environment:
      - root=/data # 视频目录
      - language=English # 视频语言
      - pattern=webm # 视频格式
      - model=large # 模型选择
      - location=/model # 模型位置
    image: whisper:latest

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL