bcutasr

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2023 License: MIT Imports: 12 Imported by: 0

README

BcutAsr

Bcut Audio to Text Api for Golang

Usage

import "github.com/moxcomic/bcutasr"

res, err := bcutasr.New().Parse("./1.mp3")
if err != nil {
    panic(err)
}

The result is obtained by referring to result.data

Documentation

Index

Constants

View Source
const (
	API_REQ_UPLOAD    = "https://member.bilibili.com/x/bcut/rubick-interface/resource/create"
	API_COMMIT_UPLOAD = "https://member.bilibili.com/x/bcut/rubick-interface/resource/create/complete"
	API_CREATE_TASK   = "https://member.bilibili.com/x/bcut/rubick-interface/task"
	API_QUERY_RESULT  = "https://member.bilibili.com/x/bcut/rubick-interface/task/result"
)
View Source
const (
	ResultStateStop = iota
	ResultStateRuning

	ResultStateError
	ResultStateComplete
)

Variables

View Source
var (
	SUPPORT_SOUND_FORMAT = []string{"flac", "aac", "m4a", "mp3", "wav"}
)

Functions

This section is empty.

Types

type BcutAsr

type BcutAsr struct {
	Etags []string
	// contains filtered or unexported fields
}

func New

func New() *BcutAsr

func (*BcutAsr) Parse

func (self *BcutAsr) Parse(path string) (res *viper.Viper, err error)

Jump to

Keyboard shortcuts

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