Skip to content
This repository has been archived by the owner on Jul 28, 2021. It is now read-only.

Content-addressable directory name for classified audio parts #25

Open
owickstrom opened this issue Sep 30, 2018 · 2 comments
Open

Content-addressable directory name for classified audio parts #25

owickstrom opened this issue Sep 30, 2018 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@owickstrom
Copy link
Owner

Use the hash of the original audio file as the name for the classified audio parts directory, to avoid collisionss, and to enable reuse (importing and classifying the same audio file would could reuse any old results).

-- TODO: use file md5 digest in filename (or for a subdirectory) to avoid collisions
chunks <-
divideProgress4
(transcodeAudioFileToWav tempDir fullLength audioFilePath)
(normalizeAudio tempDir)
(splitAudioBySilence (outDir </> "audio-chunks") (takeBaseName audioFilePath <> "-%5n.wav"))
dropSilentChunks

@owickstrom owickstrom added enhancement New feature or request good first issue Good for newcomers labels Sep 30, 2018
@akilegaspi
Copy link

Hi @owickstrom , I want to start contributing to the repository beginning with this but the referenced file seems to be obsolete already.

Can you identify where the function was moved? Thanks!

@akilegaspi
Copy link

Nevermind, seemed to have found it at Audio/Sox.hs

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants