analyze

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 7 Imported by: 4

Documentation

Overview

This package defines the Analyze 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 {
	*analyze.Client
}

func New

func New(client *analyze.Client) *Client

New creates a new Client

func (*Client) FromFile added in v1.3.0

func (c *Client) FromFile(ctx context.Context, file string, options *interfaces.AnalyzeOptions) (*api.AnalyzeResponse, error)

FromFile transcribes a prerecorded audio file from a file

func (*Client) FromStream added in v1.3.0

func (c *Client) FromStream(ctx context.Context, src io.Reader, options *interfaces.AnalyzeOptions) (*api.AnalyzeResponse, error)

FromStream transcribes a prerecorded audio file from a stream

func (*Client) FromURL added in v1.3.0

func (c *Client) FromURL(ctx context.Context, url string, options *interfaces.AnalyzeOptions) (*api.AnalyzeResponse, error)

FromURL transcribes a prerecorded audio file from a URL

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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