Skip to content
Automatic evaluation of ALSA driver based audio cards (Latency, THD, THD+N, SNR, Crosstalk, Magnitude Spectrum) using GNU Octave
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
octave-scripts
patches
test-data
.gitignore
LICENSE
README.md
install_dependencies.sh
start_test.sh

README.md

ALSA sound card evaluation

Introduction

This repo contains a set of evaluation scripts based on GNU Octave. Currently the following (automated) measurements are supported:

  • Latency
  • Total-Harmonic-Distortion (THD)
  • Total-Harmonic-Distortion + Noise (THD+N)
  • Signal to Noise Ratio (SNR)
  • Crosstalk (including plots)
  • Magnitude Spectrum (including plots)

The scripts were created for the evaluation of the self developed multi-channel soundcard CTAG face2|4.

Build instructions

The dependencies (e.g. GNU Octave) can be easily installed with the script install_dependencies.sh. Sources for apt (package manager) have to be enabled in /etc/apt/sources.list.

Execution

Input (i.e. ADC) channel 1 has to be connected to output (i.e. DAC) channel 2 (loopback). To run a test, simply execute the start_test.sh script with the following parameters:

  1. Playback device (e.g. hw:0)
  2. Capture decvice (e.g. hw:0)
  3. Name of audio card (is used for plots (e.g. CTAG face2|4))
  4. Optional: Name of single test (latency, thd, crosstalk or magnitude-spectrum)

Example

./start_test.sh hw:0 hw:0 CTAG thd

You can’t perform that action at this time.