speak

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: MIT Imports: 10 Imported by: 7

Documentation

Overview

This package defines the Pre-recorded API for Deepgram

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidInput required input was not found
	ErrInvalidInput = errors.New("required input was not found")
)

errors

Functions

This section is empty.

Types

type Client added in v1.3.0

type Client struct {
	*speak.Client
}

func New

func New(client *speak.Client) *Client

func (*Client) ToFile added in v1.3.0

func (c *Client) ToFile(ctx context.Context, text string, options *interfaces.SpeakOptions, w io.Writer) (*api.SpeakResponse, error)

ToFile TTS saved to a file

func (*Client) ToSave added in v1.3.0

func (c *Client) ToSave(ctx context.Context, filename, text string, options *interfaces.SpeakOptions) (*api.SpeakResponse, error)

ToSave TTS saved to a file

func (*Client) ToStream added in v1.3.0

func (c *Client) ToStream(ctx context.Context, text string, options *interfaces.SpeakOptions, buf *interfaces.RawResponse) (*api.SpeakResponse, error)

ToStream TTS streamed to a buffer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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