Documentation ¶
Overview ¶
Implementation for text-to-speech
Implementation for text-to-speech ¶
Implementation for text-to-speech
Index ¶
Constants ¶
View Source
const ( SpeechVoiceNeutral = texttospeechpb.SsmlVoiceGender_NEUTRAL SpeechVoiceFemale = texttospeechpb.SsmlVoiceGender_FEMALE SpeechVoiceMale = texttospeechpb.SsmlVoiceGender_MALE DefaultLanguageCode string = "en-US" )
Variables ¶
View Source
var ( // ErrInvalidInput required input was not found ErrInvalidInput = errors.New("required input was not found") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the object which connects to a text-to-speech platform to generate an audio file
func New ¶
func New(ctx context.Context, opts SpeechOpts) (*Client, error)
New creates a new text-to-speech Client
type SpeechOpts ¶
type SpeechOpts struct { VoiceType texttospeechpb.SsmlVoiceGender LanguageCode string Text string }
SpeechOpts contains options for the voice output
Click to show internal directories.
Click to hide internal directories.