transcriberapi

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: BSD-3-Clause Imports: 16 Imported by: 0

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() (*Client, error)

NewClient creates a transcriber client

func (*Client) Delete

func (sp *Client) Delete(ID string) error

Delete removes all transcription data related with ID

func (*Client) GetResult

func (sp *Client) GetResult(ID string) (*kafkaapi.Result, error)

GetResult gets result file from transcrinber

func (*Client) GetStatus

func (sp *Client) GetStatus(ID string) (*kafkaapi.Status, error)

GetStatus get status from the server

func (*Client) Upload

func (sp *Client) Upload(audio *kafkaapi.UploadData) (string, error)

Upload uploads audio to transcriber service

Jump to

Keyboard shortcuts

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