Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartWebServer ¶
StartWebServer starts the HTTP service and listens for the admin requests
Types ¶
type Configurator ¶
Configurator configures request from header and request and configuration
type Data ¶
type Data struct { Port int SyntData PrData SyntCustomData PrData InfoGetterData InfoGetter }
Data is service operation data
type InfoGetter ¶ added in v0.2.387
type InfoGetter interface {
Provide(ID string) (*api.InfoResult, error)
}
InfoGetter main sythesis processor
type PrData ¶
type PrData struct { Processor Synthesizer Configurator Configurator }
PrData is method process data
type Synthesizer ¶
type Synthesizer interface {
Work(*api.TTSRequestConfig) (*api.Result, error)
}
Synthesizer main sythesis processor
type TTSConfigutaror ¶
type TTSConfigutaror struct {
// contains filtered or unexported fields
}
TTSConfigutaror tts request configuration
func NewTTSConfigurator ¶
func NewTTSConfigurator(cfg *viper.Viper) (*TTSConfigutaror, error)
NewTTSConfigurator creates the initial request configuration
func NewTTSConfiguratorNoSSML ¶ added in v0.2.387
func NewTTSConfiguratorNoSSML(cfg *viper.Viper) (*TTSConfigutaror, error)
NewTTSConfiguratorNoSSML creates the initial request configuration with no SSML allowed
func (*TTSConfigutaror) Configure ¶
func (c *TTSConfigutaror) Configure(r *http.Request, inText *api.Input) (*api.TTSRequestConfig, error)
Configure prepares request configuration
Click to show internal directories.
Click to hide internal directories.