Documentation ¶
Overview ¶
This package defines the Analyze API for Deepgram
Index ¶
- Constants
- Variables
- type Client
- func (c *Client) FromFile(ctx context.Context, file string, options *interfaces.AnalyzeOptions) (*api.AnalyzeResponse, error)
- func (c *Client) FromStream(ctx context.Context, src io.Reader, options *interfaces.AnalyzeOptions) (*api.AnalyzeResponse, error)
- func (c *Client) FromURL(ctx context.Context, url string, options *interfaces.AnalyzeOptions) (*api.AnalyzeResponse, error)
Constants ¶
View Source
const (
PackageVersion string = "v1.0"
)
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
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
Click to show internal directories.
Click to hide internal directories.