Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
PasoStudio73 committed Aug 1, 2024
1 parent 456ffe0 commit 8d7f4d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/afe.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion test/features_test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 8d7f4d3

Please sign in to comment.