Registry / utility / go-audio-wav

go-audio-wav

JSON →
library1.1.0gogounverified

Package wav allows developers to decode and encode audio PCM data using the Waveform Audio File Format (WAV).

go get github.com/go-audio/wav
INSTALL
IMPORT
SIG · GO-AUDIO-WAV
G
go-audio-wav
utilitygov1.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

wav
github.com/go-audio/wav

Decodes a WAV file and prints its sample rate.

package main import ( "fmt" "github.com/go-audio/wav" ) func main() { // Decode a WAV file f, _ := os.Open("audio.wav") defer f.Close() d := wav.NewDecoder(f) buf, err := d.FullPCMBuffer() if err != nil { panic(err) } fmt.Println(buf.Format.SampleRate) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
go-audio-wav — go get go-audio-wav · libregistry