Documentation ¶
Index ¶
Constants ¶
View Source
const (
//HeaderSaveTags http header name for providing tags for saving to DB
HeaderSaveTags = "x-tts-save-tags"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Data ¶
type Data struct { Port int Configurator *TTSConfigutaror Saver FileSaver ReqSaver RequestSaver MsgSender MsgSender }
Data keeps data required for service work
type RequestSaver ¶
type RequestSaver interface {
Save(req *persistence.ReqData) error
}
RequestSaver saves requests to DB
type TTSConfigutaror ¶
type TTSConfigutaror struct {
// contains filtered or unexported fields
}
TTSConfigutaror tts request configuration
func NewTTSConfigurator ¶
func NewTTSConfigurator(format, voice string, voices []string) (*TTSConfigutaror, error)
NewTTSConfigurator creates the initial request configuration
func (*TTSConfigutaror) Configure ¶
func (c *TTSConfigutaror) Configure(e echo.Context) (*persistence.ReqData, error)
Configure prepares request configuration
Click to show internal directories.
Click to hide internal directories.