audio

package
v0.0.0-...-b5fa7f3 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultResampleQuality = 4
)

Functions

func Decode

func Decode(src *memio.File) (beep.StreamSeekCloser, beep.Format, error)

Types

type Audio

type Audio struct {
	Name   string
	Size   int
	Dur    time.Duration
	Format beep.Format
	TTS    bool

	Stream beep.StreamSeeker
	// contains filtered or unexported fields
}

func Read

func Read(name string, src *memio.File) (*Audio, error)

func (*Audio) Encode

func (au *Audio) Encode(delay, limit time.Duration, w io.WriteSeeker, format beep.Format) (outputDuration time.Duration, err error)

func (*Audio) EncodeToFile

func (au *Audio) EncodeToFile(delay, limit time.Duration, fn string, format beep.Format) (time.Duration, error)

Jump to

Keyboard shortcuts

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