archive

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package archive 提供音频文件处理和转换的功能,包括音频文件的检测、转换和存档

Index

Constants

View Source
const (
	// AudioBookType 有声书类型标识
	AudioBookType = "audiobook"
	// RapMusicType 说唱音乐类型标识
	RapMusicType = "rap"
	// Speed        = "1.54" //等效audition的65%
	// Speed = "1.43" 音频播放速度,等效audition的70%
	// Volume 音频音量增益值
	Volume = "2.7"
)

音频处理相关的常量定义

Variables

This section is empty.

Functions

func ConvertAudio added in v0.1.0

func ConvertAudio(src, mytype string)

ConvertAudio 转换音频文件 src 为源文件路径 mytype 为音频类型,决定处理方式

func GetAllAudioFiles added in v0.1.0

func GetAllAudioFiles(root string) ([]string, error)

GetAllAudioFiles 返回指定目录下所有音频文件的绝对路径 root 为要搜索的根目录 返回音频文件路径列表和可能的错误

func Images added in v0.1.0

func Images(dir string)

func Movies added in v0.1.0

func Movies(dir string)

func Videos added in v0.1.0

func Videos(dir string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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