audios

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrExist = errors.Business("file already exist (%s)", "DE:001")

Functions

func Extract

func Extract(_ context.Context, params Params) (files.Output, error)

func Normalize

func Normalize(_ context.Context, params Params) (files.Output, error)

Types

type Config

type Config struct {
	OutputDir string `fig:"output_dir" yaml:"output_dir" default:"outputs/audios"`
}

func (Config) Apply

func (c Config) Apply(p Params) (Params, error)

func (Config) FromRaw

func (c Config) FromRaw(raw collection.Params) (Params, error)

type Params

type Params struct {
	Source    string
	OutputDir string
}

func (Params) Filename

func (p Params) Filename() string

func (Params) SouceRelative

func (p Params) SouceRelative() string

func (Params) WithPrefix

func (p Params) WithPrefix(prefix string) string

Jump to

Keyboard shortcuts

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