api

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AudioFormatEnum

type AudioFormatEnum int

AudioFormatEnum represent possible audio outputs

const (
	//AudioNone value
	AudioNone AudioFormatEnum = iota
	//AudioDefault value
	AudioDefault
	//AudioMP3 value
	AudioMP3
	//AudioM4A value`
	AudioM4A
)

func (AudioFormatEnum) String

func (e AudioFormatEnum) String() string

type InfoResult added in v0.2.387

type InfoResult struct {
	Count int64 `json:"count"`
}

InfoResult is a responce for /synthesizeInfo request

type Input

type Input struct {
	Text string `json:"text,omitempty"`
	//TextType may have values: text, ssml
	TextType string `json:"textType,omitempty"`
	//Possible values are m4a, mp3
	OutputFormat     string  `json:"outputFormat,omitempty"`
	OutputTextFormat string  `json:"outputTextFormat,omitempty"`
	AllowCollectData *bool   `json:"saveRequest,omitempty"`
	Speed            float32 `json:"speed,omitempty"`
	Voice            string  `json:"voice,omitempty"`
	Priority         int     `json:"priority,omitempty"`
}

Input is sythesis input data

type Result

type Result struct {
	AudioAsString string `json:"audioAsString,omitempty"`
	Error         string `json:"error,omitempty"`
	Text          string `json:"text,omitempty"`
	RequestID     string `json:"requestID,omitempty"`
}

Result is synthesis result

type TTSRequestConfig

type TTSRequestConfig struct {
	Text             string
	RequestID        string
	OutputFormat     AudioFormatEnum
	OutputTextFormat TextFormatEnum
	OutputMetadata   []string
	AllowCollectData bool
	SaveTags         []string
	Speed            float32
	Voice            string
	Priority         int
	AllowedMaxLen    int
	SSMLParts        []ssml.Part
	AudioSuffix      string
}

TTSRequestConfig config for request

type TextFormatEnum

type TextFormatEnum int

TextFormatEnum represent possible output text types

const (
	//TextNone do not output text
	TextNone TextFormatEnum = iota
	//TextNormalized output normalized text
	TextNormalized
	//TextAccented output normalized accented text
	TextAccented
)

func (TextFormatEnum) String

func (e TextFormatEnum) String() string

Jump to

Keyboard shortcuts

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