speak

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 10 Imported by: 0

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 SpeakClient

type SpeakClient struct {
	*client.Client
}

func New

func New(client *client.Client) *SpeakClient

func (*SpeakClient) ToFile

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

func (*SpeakClient) ToSave

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

func (*SpeakClient) ToStream

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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