tts

package
v1.0.1-0...-cb2ac9b Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppNameV1     = "TextToSpeechV1"
	AppNameV1beta = "TextToSpeechV1beta"
)

Variables

This section is empty.

Functions

func NewSynthesizeSpeechRequest

func NewSynthesizeSpeechRequest() *texttospeechpb.SynthesizeSpeechRequest

Types

type Service

type Service interface {
	// TextToSpeech converts text to speech.
	TextToSpeech(context.Context, *texttospeechpb.SynthesizeSpeechRequest) (string, error)
}

type SynthesizeSpeechRequestBody

type SynthesizeSpeechRequestBody struct {
	SynthesizeSpeechRequest texttospeechpb.SynthesizeSpeechRequest `json:"SynthesizeSpeechRequest"`
	Text                    string                                 `json:"text"`
	Ssml                    string                                 `json:"ssml"`
	InputBool               bool
}

func NewSynthesizeSpeechRequestBoby

func NewSynthesizeSpeechRequestBoby() *SynthesizeSpeechRequestBody

Directories

Path Synopsis
v1
api

Jump to

Keyboard shortcuts

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