audio

package
v1.833.85 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2026 License: Apache-2.0 Imports: 19 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

func GetAudioFromVideo

func GetAudioFromVideo(inputBuffer *bytes.Buffer) (*bytes.Buffer, error)

Types

type Client

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

func New

func New(appID, secretKey string) *Client

func (*Client) UploadAudio

func (c *Client) UploadAudio(filename, language string, lang string) (taskId string, err error)

type Conf

type Conf struct {
	AppID      string
	SecretKey  string
	PartSize   int64
	RetryTimes int
	Ch         string
	UA         string
	Domain     string
}

Conf config struct

type Conn

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

type RespInfo

type RespInfo struct {
	Ok     int    `json:"ok"`
	ErrNo  int    `json:"err_no"`
	Failed string `json:"failed"`
	Data   string `json:"data"`
}

type Response

type Response struct {
	Status int    `json:"status"`
	Desc   string `json:"desc"`
}

type Segment

type Segment struct {
	Bg      string `json:"bg"`
	Ed      string `json:"ed"`
	Onebest string `json:"onebest"`
	Speaker string `json:"speaker"`
}

func GetSegmentsFromAudio

func GetSegmentsFromAudio(audioUrl string, lang string) ([]*Segment, error)

Jump to

Keyboard shortcuts

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