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 ¶
NewSession returns a session with the given credentials.
type TTSService ¶
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.
Click to show internal directories.
Click to hide internal directories.