Skip to content

RickeyWard/JavaWavInfo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

38a739f · May 21, 2019

History

11 Commits
May 21, 2019
May 20, 2019
May 20, 2019
May 21, 2019
May 20, 2019

Repository files navigation

JavaWavInfo

Read RIFF metadata Chunks of WAV files in JAVA based on wavIO by Evan X. Merz, extended to support more of of the RIFF wav format spec

Eample Usage


import com.diamonddrake.wav.InfoTypes;
import com.diamonddrake.wav.WavInfo;

public class App {
	public static void main(String[] args) {
		WavInfo wi = new WavInfo("C:/test.wav");
		System.out.println(wi.getSummary());
		System.out.println(wi.getInfo(InfoTypes.ARTIST));
		System.out.println(wi.getInfo(InfoTypes.COMMENT));
		System.out.println(wi.isIVRFormat());
		
		wi = new WavInfo();
		wi.setPath("C:/test.wav");
		boolean readOK = wi.read();
		if(readOK) {
			System.out.println(wi.getSummary());
			System.out.println(wi.getInfo(InfoTypes.ARTIST));
			System.out.println(wi.getInfo(InfoTypes.COMMENT));
			System.out.println(wi.isIVRFormat());
		}
	}
}

About

Read RIFF metadata Chunks of WAV files in JAVA

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages