gonesyntees

package module
v0.0.0-...-0595a02 Latest Latest
Warning

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

Go to latest
Published: May 27, 2019 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Response

type Response struct {
	MP3Url string
	WAVUrl string
}

Response contains the URLs of the audio files gathered from the API response

func Request

func Request(text string, voice Voice, speed int) (*Response, error)

Request dispatches a request to the API and returns a struct containing URLs to the audio files gathered from the response

type Voice

type Voice int

Voice is the ID of the voice the synthesizer uses

const (
	// Eva is a female voice
	Eva Voice = 0
	// Tõnu is a male voice
	Tõnu Voice = 1
	// Liisi is a female voice
	Liisi Voice = 2
	// Riina is a female voice
	Riina Voice = 3
)

Jump to

Keyboard shortcuts

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