app

package
v0.0.0-...-f7662cc Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func New

func New(name string, audio AudioFileController, batch, chunkSize int) *App

func (*App) Process

func (a *App) Process()

type AudioFileController

type AudioFileController interface {
	Load(samples int) ([]float32, int, error)
	Write([]float32) error
	Close()
}

type Config

type Config struct {
	// contains filtered or unexported fields
}

func NewCLI

func NewCLI() *Config

func (*Config) Close

func (c *Config) Close()

func (*Config) Init

func (c *Config) Init() (io.ReadSeeker, io.WriteSeeker, error)

func (*Config) ModelName

func (c *Config) ModelName() string

func (*Config) ParseArgs

func (c *Config) ParseArgs() error

type Model

type Model interface {
	Inference(i []float32) ([]float32, error)
}

type TS9

type TS9 struct {
	// contains filtered or unexported fields
}

func NewTS9

func NewTS9(dir string, batch int) (*TS9, error)

func (*TS9) Inference

func (m *TS9) Inference(i []float32) ([]float32, error)

Directories

Path Synopsis
audio
wav

Jump to

Keyboard shortcuts

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