wrapservice

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2021 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(data *Data) *mux.Router

NewRouter creates the router for HTTP service

func StartWebServer

func StartWebServer(data *Data) error

StartWebServer starts the HTTP service and listens for the admin requests

Types

type Data

type Data struct {
	Port      int
	Processor WaveSynthesizer
}

Data is service operation data

type Processor

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

Processor does synthesis work

func NewProcessor

func NewProcessor(amURL, vocURL string) (*Processor, error)

NewProcessor creates new processor

func (*Processor) Work

func (p *Processor) Work(text string) (string, error)

Work is main method

type WaveSynthesizer

type WaveSynthesizer interface {
	Work(string) (string, error)
}

WaveSynthesizer main sythesis processor

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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