• Stars
    star
    147
  • Rank 242,481 (Top 5 %)
  • Language
    Go
  • License
    ISC License
  • Created over 10 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Go library to read/write WAVE(RIFF waveform Audio) Format

go-wav workflow status

A Go library to read/write WAVE(RIFF waveform Audio) Format

Usage

package main

import (
	"flag"
	"fmt"
	"github.com/youpy/go-wav"
	"io"
	"os"
)

func main() {
	infile_path := flag.String("infile", "", "wav file to read")
	flag.Parse()

	file, _ := os.Open(*infile_path)
	reader := wav.NewReader(file)

  	defer file.Close()

	for {
		samples, err := reader.ReadSamples()
		if err == io.EOF {
			break
		}

		for _, sample := range samples {
			fmt.Printf("L/R: %d/%d\n", reader.IntValue(sample, 0), reader.IntValue(sample, 1))
		}
	}
}

Supported format

Format

  • PCM
  • IEEE float (read-only)
  • G.711 A-law (read-only)
  • G.711 ยต-law (read-only)

Number of channels

  • 1(mono)
  • 2(stereo)

Bits per sample

  • 32-bit
  • 24-bit
  • 16-bit
  • 8-bit

Documentation

See Also

More Repositories

1

ruby-lastfm

A Ruby interface for Last.fm Web Services
Ruby
247
star
2

ruby-echonest

A Ruby interface for Echo Nest Developer API
Ruby
72
star
3

scissor

utility to chop sound files
Ruby
45
star
4

mac-robot

A Library to Automate User Interactions
Ruby
36
star
5

ruby-spotlight

Library to use Spotlight from Ruby
C
25
star
6

netprint

A library and command line tool for using netprint
Ruby
24
star
7

mac-event-monitor

A Library to Monitor User Interactions
Ruby
23
star
8

www-favicon

find favicon from url
Ruby
14
star
9

grope

A non-GUI library to represent headless browser environment
Ruby
14
star
10

go-coremidi

A Go library to use MIDI on Mac
Go
14
star
11

glitchmonkey

Un script para greasemonkey (firefox extension) que corrompe las fotos de cualquier website
JavaScript
12
star
12

glitched-ttf-generator

Ruby
11
star
13

scissor-echonest

Scissor extension to use Echo Nest Developers API
Ruby
11
star
14

node-zws

library to encode/decode text using zero width spaces
JavaScript
8
star
15

generic-step-sequencer

TypeScript
8
star
16

ruby-itunes-observer

Observe iTunes and notify when starting playng track
Ruby
6
star
17

newextension

creates a Firefox extension skeleton
Ruby
6
star
18

elm-midi

An Elm library for working with MIDI
Elm
6
star
19

ruby-objc-swift-extension-example

Swift
6
star
20

eventmachine-distributed-notification

An EventMachine extension to watch/post OS X's Distributed Notification
Ruby
6
star
21

Hoover.js

JavaScript
6
star
22

AudioChat.SkypeChatStyle

JavaScript
5
star
23

rack-middleware-glitch

Ruby
5
star
24

taimaa

Yet another stable timer implementation using `ended` event fired by AudioBufferSourceNode
JavaScript
5
star
25

sinatra-oauth-template

Ruby
5
star
26

split-tweet

Split Text & Tweet
Ruby
5
star
27

net-twitter-status

library to get Twitter's current status information
Ruby
4
star
28

simple-color-picker

Ruby
4
star
29

go-riff

A Go library to read/write RIFF format
Go
4
star
30

mac-skype

A library to use Skype from Mac
Ruby
4
star
31

go-llvm-frontend-study

golang port of http://tatsu-zine.com/books/llvm chapter 5
Go
4
star
32

go-mac-display

A Go library to control displays
Go
4
star
33

yea

TypeScript
4
star
34

ruby-launch-agent

A library to use launchd easily
Ruby
4
star
35

collaborative-tweet

Ruby
4
star
36

youpy.no.de

JavaScript
4
star
37

IntervalVisualizer.SkypeChatStyle

A skype chat style to visualize the interval between conversations
JavaScript
3
star
38

EuclideanSequencer.js

JavaScript
3
star
39

dowoscillator

play Dow Jones Industrial Average as sine wave
Objective-C
3
star
40

music-text-normalization

A library for normalizing music related texts
Ruby
3
star
41

caudio

Implementing baudio with Go + CoreAudio
Go
3
star
42

youpy.jottit.com

Shell
3
star
43

soundcloud-dashboard-podcast

Ruby
3
star
44

rack-musicindex

A Rack middleware to publish directories containing media files as podcast
Ruby
3
star
45

proc-throttle

Proc#throttle: throttling calls
Ruby
3
star
46

l

Turtle Geometry + L-system in Go
Go
3
star
47

pimento

Draw graphics using Mac OS X GUI Components
Ruby
3
star
48

blank-tweet

A ruby/sinatra app for tweeting a blank tweet on Twitter
Ruby
3
star
49

soundcloud-podcast-opener

A Chrome extention for opening podcast for soundcloud.com user tracks.
JavaScript
3
star
50

pimento-banner-generator

Ruby
2
star
51

directory-index-finder

Firefox extention to find naked directory index
JavaScript
2
star
52

pulsar-synthesis

Created with CodeSandbox
JavaScript
2
star
53

electron-input

An electron application with GUI controls for use with the command line application.
JavaScript
2
star
54

youpy.github.com

CSS
2
star
55

test

2
star
56

go-jottit

A library for retrieving contents from jottit.com
Go
2
star
57

vacanthotelsearch

JavaScript
2
star
58

cuora

Yet another turtle graphics library
JavaScript
2
star
59

scala-android-textconverter

Scala
2
star
60

eventmachine-itunes

An EventMachine extension to watch iTunes
Ruby
2
star
61

nerpin-js

JavaScript
2
star
62

ruby-text-converter

Ruby
2
star
63

chrome-binary-player

JavaScript
2
star
64

node-websocket-tailf-server

JavaScript
2
star
65

chrome-directory-index-finder

Find naked directory index
JavaScript
2
star
66

string-pad

Creates a new string by concatenating enough leading zero-width pad characters to an original string to achieve a specified total length.
Ruby
2
star
67

audioworklet-playground

https://audioworklet-playground.herokuapp.com/
JavaScript
2
star
68

chrome-execute-stream

A read/write stream to execute Javascript on Google Chrome
JavaScript
2
star
69

BCNMIX07

BCNMIX07 youpy - Washing Machines
JavaScript
1
star
70

docker-bashCMS

Shell
1
star
71

id3tag-automator-workflows

1
star
72

scala-android-remotelight

Scala
1
star
73

0xffffff

A Tool to Upload 0xffffff Images to Flickr
Ruby
1
star
74

go-futures

Go
1
star
75

hyparrows

A JavaScript library that uses arrows to visually connect hyperlinks within a page
TypeScript
1
star
76

docker-compose-git

Dockerfile
1
star
77

cemedine

A Go library to build subcommand for executable
Go
1
star
78

sinatra-rspec-template

Ruby
1
star
79

cloudfrontproxy

Ruby
1
star
80

mac-key_code

A key code library for mac
Ruby
1
star
81

nerpin

A Ruby library to send manufacturer-specific or instrument-specific MIDI messages
Ruby
1
star
82

networkawesome-urllist

http://networkawesome-urllist.herokuapp.com
Ruby
1
star
83

cutagem_template

Ruby
1
star
84

aquel

Ruby
1
star
85

nihonbashi

A type-safe routing utility
JavaScript
1
star
86

gulp-fcsh

A gulp plugin for fcsh(the Flex compiler shell)
JavaScript
1
star
87

capybara-grope

Capybara driver for grope
Ruby
1
star
88

aquel-sequel

Ruby
1
star
89

aaa

1
star