GroupDocsGists
10/19/2017 - 11:17 AM

ReadAudioDetailsInWav.vb

' For complete examples and data files, please go to https://github.com/groupdocs-metadata/GroupDocs.Metadata-for-.NET
' initialize WavFormat class
Dim wavFormat As New WavFormat((Common.MapSourceFilePath(filePath)))

' get audio info
Dim audioInfo As WavAudioInfo = wavFormat.AudioInfo

' display bits per sample
Console.WriteLine("Bits per sample: {0}", audioInfo.BitsPerSample)

' display audio format version
Console.WriteLine("Audio format: {0}", audioInfo.AudioFormat)

' display number of channels
Console.WriteLine("Number of channels: {0}", audioInfo.NumberOfChannels)

' display sample rate
Console.WriteLine("Sample rate: {0}", audioInfo.SampleRate)