github.com/Mrs4s/go-cqhttp@v1.2.0/internal/base/feature.go (about)

     1  package base
     2  
     3  import (
     4  	"github.com/pkg/errors"
     5  )
     6  
     7  // silk encode features
     8  var (
     9  	EncodeSilk   = encodeSilk   // 编码 SilkV3 音频
    10  	ResampleSilk = resampleSilk // 将silk重新编码为 24000 bit rate
    11  )
    12  
    13  func encodeSilk(_ []byte, _ string) ([]byte, error) {
    14  	return nil, errors.New("not supported now")
    15  }
    16  
    17  func resampleSilk(data []byte) []byte {
    18  	return data
    19  }