mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-05 03:23:49 +08:00
17 lines
513 B
Go
17 lines
513 B
Go
//go:build (!arm && !arm64 && !amd64 && !386) || (!windows && !linux && !darwin) || (windows && arm) || (windows && arm64) || race || nosilk
|
|
// +build !arm,!arm64,!amd64,!386 !windows,!linux,!darwin windows,arm windows,arm64 race nosilk
|
|
|
|
package silk
|
|
|
|
import "errors"
|
|
|
|
// encode 将音频编码为Silk
|
|
func encode(record []byte, tempName string) ([]byte, error) {
|
|
return nil, errors.New("not supported now")
|
|
}
|
|
|
|
// resample 将silk重新编码为 24000 bit rate
|
|
func resample(data []byte) []byte {
|
|
return data
|
|
}
|