Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConvertOptions = ConvertOptions{
Format: "srt",
Interval: 30.0,
}
DefaultConvertOptions 默认转换选项
Functions ¶
func ConvertToSubtitle ¶
func ConvertToSubtitle(inputFile string, opts ...ConvertOptions) error
ConvertToSubtitle 快捷转换方法
Types ¶
type BcutASR ¶
type BcutASR struct {
// contains filtered or unexported fields
}
func (*BcutASR) CreateTask ¶
func (*BcutASR) WithProgress ¶
func (b *BcutASR) WithProgress(callback types.ProgressCallback) *BcutASR
type ConvertOptions ¶
type ConvertOptions struct {
Format string // 输出格式,默认 "srt"
Interval float64 // 轮询间隔(秒),默认 30.0
Progress types.ProgressCallback // 进度回调,可选
OutputPath string // 输出路径,可选,默认与输入文件同目录
Context context.Context // 上下文,可选,用于取消操作
}
ConvertOptions 转换选项
Click to show internal directories.
Click to hide internal directories.