voice

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FRAME_WIDTH            float64 = 4096.0
	MAX_REGION_SIZE        float64 = 6.0
	MIN_REGION_SIZE        float64 = 0.5
	VAD_FRAME_DURATION_SEC float64 = 0.02
	MAX_CONCURRENT                 = 10
	VAD_FRAME_DURATION             = 20
	VAD_MODE                       = 0
)

Functions

This section is empty.

Types

type Region

type Region struct {
	Start float64
	End   float64
}

type Voice

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

func New

func New(filename string, isVad bool) *Voice

func (*Voice) Close

func (v *Voice) Close()

func (*Voice) Regions

func (v *Voice) Regions() []Region

func (*Voice) To

func (v *Voice) To(r []Region) []string

func (*Voice) Vad

func (v *Voice) Vad() []Region

Jump to

Keyboard shortcuts

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