geminird / AudioViewMark

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AudioViewMark

本软件基于NAudio.WaveFormRenderer修改,估计针对有长期录音需求的朋友有用,主要功能:实现声音的声波展示,以及标记音频文件的标记,声音分贝计算,以及多个工作目录间录音文件与标记信息的拷贝。

支持的音频类型:wav,mp3,3gp。如果需要支持其他类型,Naudio支持的音频类型均可,请修改源代码添加支持。

以下是原NAudio.WaveFormRenderer软件的内容:

Simple utility to render waveforms of audio files to PNGs. Uses NAudio to extract the peaks and System.Drawing to render the images.

The project contains the WaveFormRendererLib library which performs peak calculation and waveform rendering, along with a simple test harness WinForms application to try it out with different settings. This can be used in any project that is able to take a dependency on NAudio and System.Drawing. It can be used in WinForms or WPF apps, or within ASP.NET applications to generate server side waveform images.

The waveform rendering algorithm is customizable:

  • Supports several peak calculation strategies (max, average, sampled, RMS, decibels)
  • Supports different colors or gradients for the top and bottom half
  • Supports different sizes for top and bottom half
  • Overall image size and background can be customized
  • Transparent backgrounds
  • Support for SoundCloud style bars
  • Several built-in rendering styles

Test Harness Application

Test harness app makes it easy to experiment with the various rendering options and save the results as a PNG. Test Harness UI

Example Waveforms

Basic solid color waveform Basic solid color

Gradient vertical bars (old SoundCloud style) Gradient vertical bars

Blocks (SoundCloud style) Blocks

Orange Blocks

Transparent Backgrounds Transparent Background

Transparent Background

About

License:MIT License


Languages

Language:C# 100.0%