From 8d7f4d327f04cb8ea45e83bf517a1daf895af0f3 Mon Sep 17 00:00:00 2001 From: paso Date: Thu, 1 Aug 2024 11:31:44 +0200 Subject: [PATCH] minor fixes --- test/afe.jl | 4 ++-- test/features_test.jl | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/test/afe.jl b/test/afe.jl index 2d8ee04..ffe6f06 100644 --- a/test/afe.jl +++ b/test/afe.jl @@ -8,10 +8,10 @@ nan_replacer!(x::AbstractArray{Float64}) = replace!(x, NaN => 0.0) # ---------------------------------------------------------------------------- # # audio911 audio features extractor # # ---------------------------------------------------------------------------- # -function audio911_extractor( +function audio911features( # audio module wavfile::Union{String, AbstractVector{Float64}}; - sr::Int64=8000, + sr::Int64=8000, # di default sarĂ  nothing norm::Bool=true, speech_detection::Bool=false, # stft module diff --git a/test/features_test.jl b/test/features_test.jl index 9a0a3b9..58e69a1 100644 --- a/test/features_test.jl +++ b/test/features_test.jl @@ -3,6 +3,9 @@ using Revise, Audio911, BenchmarkTools TESTPATH = joinpath(dirname(pathof(Audio911)), "..", "test") TESTFILE = "common_voice_en_23616312.wav" # TESTFILE = "104_1b1_Al_sc_Litt3200_4.wav" +# abstracttrees +# unique(collect(AbstractTrees.PreOrderDST(config)) +# [i in AbstractTrees.childer(j) for i in nodes, j in nodes)] wavfile = joinpath(TESTPATH, TESTFILE) sr = 16000 @@ -44,7 +47,7 @@ f0 = get_f0(stft=stftspec, freq_range=(300, 2000)); display(f0) cwtfb = get_cwtfb(audio=audio); -cwtfb = get_cwtfb(audio=audio, wavelet=:morlet, freq_range=(100,4000)); +cwtfb = get_cwtfb(audio=audio, wavelet=:bump, freq_range=(100,4000)); display(cwtfb) cwt = get_cwt(audio=audio, fbank=cwtfb);