From bd8dec34e326d54ca2496e0ab3588e1a71c70e1e Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Mon, 7 Feb 2022 18:15:03 +0100 Subject: [PATCH] init --- README.md | 32 ++++++++++++++++++++++++++++++++ script.sh | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 README.md create mode 100644 script.sh diff --git a/README.md b/README.md new file mode 100644 index 0000000..3d8ff91 --- /dev/null +++ b/README.md @@ -0,0 +1,32 @@ + +# How to create proper recordings (with Zoom H5) + +* Select an Empty folder (Stereo is recommended) +* Press (Record) and start createing a Note +* Press (Play) and (Play) again to Speak the whole Note again, if you made a mistake (this will create Markers) +* Press (Record) to finish the Note + +* Once the Topic is done (which is a collection of Notes) +* Got though the the list of Samples and trim the beginnings way to the last marker (only if markers in the files exist) +* **Menu** -> **Edit** -> **Trim** + * (>>) and (<<) to jump between markers + * (Record) to execute Deletion + +Now you have a bunch of already cut Recordings, which can be merged to a proper Topic with the `script.sh` + + +# How to create final MP3s + +* Create folder for a topic/note-session +* move all wav files in there +* cd in that folder +* run + ```shell + bash ../script.sh + ``` +* Now you have a mp3 with the name of the folder + + + + + diff --git a/script.sh b/script.sh new file mode 100644 index 0000000..bfb8a1e --- /dev/null +++ b/script.sh @@ -0,0 +1,39 @@ +#!/usr/bin/env bash + +OUTPUT_DIR=.output +OUTPUT_FILE=../$(basename $PWD).mp3 +SILENCE=.silence.wav +MIX_LIST=.mix.txt + +rm -rf $OUTPUT_DIR $OUTPUT_FILE + +mkdir -p $OUTPUT_DIR + + +sox -n -r 44100 -c 2 $SILENCE trim 0.0 1.0 + +for wav in $( ls | egrep -i ".*wav$" ) +do + echo $wav + # remove silence + # reverse sample + # remove silence + # reverse sample + # => remove silence from beginning and end + sox $wav $OUTPUT_DIR/$wav \ + silence 1 0.05 0.5% \ + fade 0.01 +done + +rm -rf $MIX_LIST + +for wav in $( ls $OUTPUT_DIR ) +do + echo $SILENCE >> $MIX_LIST + echo $OUTPUT_DIR/$wav >> $MIX_LIST +done + + +sox $( cat $MIX_LIST ) -t wav - rate -v -L 44100 dither | lame -S -h -b 320 --ignore-tag-errors - $OUTPUT_FILE + +