aws

package
v0.0.0-...-6e9cc21 Latest Latest
Warning

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

Go to latest
Published: May 6, 2017 License: MIT Imports: 15 Imported by: 1

Documentation

Index

Constants

View Source
const DefaultVoiceID = "Emma"

DefaultVoiceID is the default voice to use when synthesizing speech.

View Source
const MaxCharactersPerRequest = 1500

MaxCharactersPerRequest is the maximum number of characters allowed by Polly.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

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

Session represents a session to AWS.

func NewSession

func NewSession(accessKeyID, secretAccessKey, region string) (*Session, error)

NewSession returns a session with the given credentials.

type TTSService

type TTSService struct {
	Session   *Session
	VoiceID   string
	LogOutput io.Writer
}

TTSService represents a service for performing text-to-speech.

func NewTTSService

func NewTTSService() *TTSService

NewTTSService returns a new instance of TTSService.

func (*TTSService) SynthesizeSpeech

func (s *TTSService) SynthesizeSpeech(ctx context.Context, text string) (io.ReadCloser, error)

SynthesizeSpeech encodes text to speech.

Jump to

Keyboard shortcuts

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