audio

package
v1.79.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

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) (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) ([]*Segment, error)

Jump to

Keyboard shortcuts

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