transcriber

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2026 License: GPL-3.0 Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client comunicates with transcriber service

func NewClient

func NewClient(uploadURL, statusURL, resultURL, cleanURL string) (*Client, error)

NewClient creates a transcriber client

func (*Client) Clean

func (sp *Client) Clean(ctx context.Context, ID string) error

Clean removes all transcription data related with ID

func (*Client) GetAudio

func (sp *Client) GetAudio(ctx context.Context, ID string) (*tapi.FileData, error)

GetAudio return initial audio

func (*Client) GetResult

func (sp *Client) GetResult(ctx context.Context, ID, name string) (*tapi.FileData, error)

GetResult return results file

func (*Client) GetStatus

func (sp *Client) GetStatus(ctx context.Context, ID string) (*tapi.StatusData, error)

GetStatus return status by ID

func (*Client) HookToStatus

func (sp *Client) HookToStatus(ctx context.Context, ID string) (<-chan tapi.StatusData, func(), error)

HookToStatus to status ws

func (*Client) Upload

func (sp *Client) Upload(ctx context.Context, fileFunc func(context.Context) (*tapi.UploadData, func(), error)) (string, error)

Upload uploads audio to transcriber service

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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