testsignal

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2026 License: BSD-3-Clause Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	CorpusCleanSpeechV1        = "corpus_clean_speech_v1"
	CorpusMusicV1              = "corpus_music_v1"
	CorpusMixedV1              = "corpus_mixed_v1"
	CorpusWhiteNoiseV1         = "corpus_white_noise_v1"
	CorpusCastanetTransientV1  = "corpus_castanet_transient_v1"
	CorpusPureToneV1           = "corpus_pure_tone_v1"
	CorpusNearSilenceV1        = "corpus_near_silence_v1"
	CorpusPinkNoiseV1          = "corpus_pink_noise_v1"
	CorpusFormantSweepV1       = "corpus_formant_sweep_v1"
	CorpusSpeechInNoiseV1      = "corpus_speech_in_noise_v1"
	CorpusStereoDecorrelatedV1 = "corpus_stereo_decorrelated_v1"
	CorpusBellClusterV1        = "corpus_bell_cluster_v1"
	CorpusSilenceBurstsV1      = "corpus_silence_bursts_v1"
	CorpusBandwidthSweepV1     = "corpus_bandwidth_sweep_v1"
	CorpusToneInNoiseV1        = "corpus_tone_in_noise_v1"
	CorpusChannelPanSweepV1    = "corpus_channel_pan_sweep_v1"
)
View Source
const (
	EncoderVariantAMMultisineV1  = "am_multisine_v1"
	EncoderVariantChirpSweepV1   = "chirp_sweep_v1"
	EncoderVariantImpulseTrainV1 = "impulse_train_v1"
	EncoderVariantSpeechLikeV1   = "speech_like_v1"
)

Variables

This section is empty.

Functions

func CorpusExtendedSignalClasses

func CorpusExtendedSignalClasses() []string

CorpusExtendedSignalClasses returns the additional signal classes that fill coverage gaps left by CorpusSignalClasses (spectral tilt, moving formants, degraded speech, inter-channel decorrelation, inharmonic partials). These are generated on the fly for the live blob-free quality gate and are NOT part of the committed fixture, so they are intentionally separate from CorpusSignalClasses.

func CorpusSignalClasses

func CorpusSignalClasses() []string

CorpusSignalClasses returns the signal-class tags backed by the committed decoder-parity fixture. Each entry maps to at least one fixture case, so this list is the fixture-coverage contract (TestCorpusSignalClassCoverage).

func EncoderSignalVariants

func EncoderSignalVariants() []string

func GenerateCorpusSignal

func GenerateCorpusSignal(class string, sampleRate, samples, channels int) ([]float32, error)

GenerateCorpusSignal generates one of the corpus signal class waveforms.

func GenerateEncoderSignalVariant

func GenerateEncoderSignalVariant(variant string, sampleRate, samples, channels int) ([]float32, error)

func HashFloat32LE

func HashFloat32LE(samples []float32) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL