Skip to content

Commit

Permalink
only comments add/modif
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinCupak committed Jul 31, 2024
1 parent e290a66 commit 86dc9be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions scripts/dat2wav.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ def parseArgs():
wavFileName = audiofile.deriveOutputFileName(rawFileName, 'wav')
audiofile.writeMono16bit(wavFileName, sampleRate,
scaledSignal, essentialMetadata, 'WAV')
# write calibrated flac file with 'audiofile' package library
wavFileName = audiofile.deriveOutputFileName(rawFileName, 'flac')
audiofile.writeMono16bit(wavFileName, sampleRate,
scaledSignal, essentialMetadata, 'FLAC')
Expand Down
5 changes: 4 additions & 1 deletion tests/test_calib_meta_dat2wav.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@
calibration.doWriteIntermediateResults = False




def read_calib_parameters(file_path):
parameters = {}

with open(file_path, 'r') as file:
# Read all lines and split by newline character
lines = file.read().splitlines()
Expand Down Expand Up @@ -126,6 +128,7 @@ def calib_dat2wavflac(rawFileName: str,
audiofile.writeMono16bit(wavFileName, sampleRate,
scaledSignal,
essentialMetadata)
# write calibrated flac file
wavFileName = audiofile.deriveOutputFileName(rawFileName, 'flac')
audiofile.writeMono16bit(wavFileName, sampleRate,
scaledSignal, essentialMetadata, 'FLAC')
Expand Down

0 comments on commit 86dc9be

Please sign in to comment.