Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AudioConfig ¶
type GCTTSAudioConfig ¶
type GCTTSAudioConfig struct { }
func (*GCTTSAudioConfig) ByteParSample ¶
func (c *GCTTSAudioConfig) ByteParSample() int
func (*GCTTSAudioConfig) NumOfChanel ¶
func (c *GCTTSAudioConfig) NumOfChanel() int
func (*GCTTSAudioConfig) SampleRate ¶
func (c *GCTTSAudioConfig) SampleRate() int
type GCTTSSpeaker ¶
type GCTTSSpeaker struct {
// contains filtered or unexported fields
}
func (*GCTTSSpeaker) Send ¶
func (p *GCTTSSpeaker) Send(config SpeechParams) (io.Reader, error)
type MP3Wrapper ¶
func (*MP3Wrapper) Close ¶
func (w *MP3Wrapper) Close() error
type PollyAudioConfig ¶
type PollyAudioConfig struct { }
func (*PollyAudioConfig) ByteParSample ¶
func (c *PollyAudioConfig) ByteParSample() int
func (*PollyAudioConfig) NumOfChanel ¶
func (c *PollyAudioConfig) NumOfChanel() int
func (*PollyAudioConfig) SampleRate ¶
func (c *PollyAudioConfig) SampleRate() int
type PollyConfig ¶
type PollyConfig struct { Region string `yaml:"region"` Format string `yaml:"format"` Voice string `yaml:"voice"` TextType string `yaml:"type"` Speed int }
PollyConfig is configuration structure for Polly
func Load ¶
func Load(filepath string) (*PollyConfig, error)
type PollySpeaker ¶
type PollySpeaker struct {
// contains filtered or unexported fields
}
func (*PollySpeaker) Send ¶
func (p *PollySpeaker) Send(config SpeechParams) (io.Reader, error)
type Pollydent ¶
type Pollydent struct {
// contains filtered or unexported fields
}
Pollydent is structure to manage read aloud
func NewPollydentWithCloudTextToSpeech ¶
func NewPollydentWithCloudTextToSpeech(config *PollyConfig) (*Pollydent, error)
func NewPollydentWithPolly ¶
func NewPollydentWithPolly(accessKey, secretKey string, config *PollyConfig) (*Pollydent, error)
NewPollydent news Polly structure
func (*Pollydent) SendToServer ¶
func (p *Pollydent) SendToServer(param SpeechParams) (io.Reader, error)
type Request ¶
type Request struct { Input input `json:"input"` Voice voice `json:"voice"` AudioConfig audioConfig `json:"audioConfig"` }
type SpeechParams ¶
Click to show internal directories.
Click to hide internal directories.