diff --git a/.gitignore b/.gitignore index 555d5fb86e2d5566a9dc8d2e88ee825fe54b8604..5d3d341c0221e34ae100c9d1a05104578a720e26 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ venv/ .idea/ .DS_Store !tests/data/**/*.wav +*.wav *.pcm *.bs *.192 @@ -17,12 +18,14 @@ experiments/selection/*/proc_input*/cat*/*.pcm experiments/selection/*/proc_input*/FOA*/*.wav experiments/selection/*/proc_input*/HOA2*/*.wav experiments/selection/*/background_noise/*.wav +experiments/selection/*/background_noise/*.txt +experiments/selection/*/proc_input*/*.wav +experiments/selection/*/proc_input*/*.pcm +experiments/selection/*/proc_input*/*.csv experiments/selection/*/proc_input*/*.log experiments/selection/*/proc_input*/*.yml experiments/selection/*/proc_output*/ -experiments/selection/*/config/*cat*-lab_*.yml -experiments/selection/*/config/*FOA*-lab_*.yml -experiments/selection/*/config/*HOA2*-lab_*.yml +experiments/selection/*/config/*-lab_*.yml experiments/selection/*/gen_input/IRs/*.wav experiments/selection/*/gen_input/items_mono/*.wav *~ diff --git a/other/check_conditions.py b/other/check_conditions.py index d9bd1382a218d85f0dca8111382ed67b0aee1888..0651c9cee894f5b255fc656957b633c1d1c17eb3 100644 --- a/other/check_conditions.py +++ b/other/check_conditions.py @@ -1,4 +1,33 @@ #!/usr/bin/python3 +# +# (C) 2022-2023 IVAS codec Public Collaboration with portions copyright Dolby International AB, Ericsson AB, +# Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V., Huawei Technologies Co. LTD., +# Koninklijke Philips N.V., Nippon Telegraph and Telephone Corporation, Nokia Technologies Oy, Orange, +# Panasonic Holdings Corporation, Qualcomm Technologies, Inc., VoiceAge Corporation, and other +# contributors to this repository. All Rights Reserved. +# +# This software is protected by copyright law and by international treaties. +# The IVAS codec Public Collaboration consisting of Dolby International AB, Ericsson AB, +# Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V., Huawei Technologies Co. LTD., +# Koninklijke Philips N.V., Nippon Telegraph and Telephone Corporation, Nokia Technologies Oy, Orange, +# Panasonic Holdings Corporation, Qualcomm Technologies, Inc., VoiceAge Corporation, and other +# contributors to this repository retain full ownership rights in their respective contributions in +# the software. This notice grants no license of any kind, including but not limited to patent +# license, nor is any license granted by implication, estoppel or otherwise. +# +# Contributors are required to enter into the IVAS codec Public Collaboration agreement before making +# contributions. +# +# This software is provided "AS IS", without any express or implied warranties. The software is in the +# development stage. It is intended exclusively for experts who have experience with such software and +# solely for the purpose of inspection. All implied warranties of non-infringement, merchantability +# and fitness for a particular purpose are hereby disclaimed and excluded. +# +# Any dispute, controversy or claim arising under or in relation to providing this software shall be +# submitted to and settled by the final, binding jurisdiction of the courts of Munich, Germany in +# accordance with the laws of the Federal Republic of Germany excluding its conflict of law rules and +# the United Nations Convention on Contracts on the International Sales of Goods. +# import argparse import multiprocessing as mp import re diff --git a/other/get_md5.ps1 b/other/get_md5.ps1 new file mode 100644 index 0000000000000000000000000000000000000000..a370c83082dc88e5866b7a6835311abc9033c661 --- /dev/null +++ b/other/get_md5.ps1 @@ -0,0 +1,42 @@ +# (C) 2022-2023 IVAS codec Public Collaboration with portions copyright Dolby International AB, Ericsson AB, +# Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V., Huawei Technologies Co. LTD., +# Koninklijke Philips N.V., Nippon Telegraph and Telephone Corporation, Nokia Technologies Oy, Orange, +# Panasonic Holdings Corporation, Qualcomm Technologies, Inc., VoiceAge Corporation, and other +# contributors to this repository. All Rights Reserved. + +# This software is protected by copyright law and by international treaties. +# The IVAS codec Public Collaboration consisting of Dolby International AB, Ericsson AB, +# Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V., Huawei Technologies Co. LTD., +# Koninklijke Philips N.V., Nippon Telegraph and Telephone Corporation, Nokia Technologies Oy, Orange, +# Panasonic Holdings Corporation, Qualcomm Technologies, Inc., VoiceAge Corporation, and other +# contributors to this repository retain full ownership rights in their respective contributions in +# the software. This notice grants no license of any kind, including but not limited to patent +# license, nor is any license granted by implication, estoppel or otherwise. + +# Contributors are required to enter into the IVAS codec Public Collaboration agreement before making +# contributions. + +# This software is provided "AS IS", without any express or implied warranties. The software is in the +# development stage. It is intended exclusively for experts who have experience with such software and +# solely for the purpose of inspection. All implied warranties of non-infringement, merchantability +# and fitness for a particular purpose are hereby disclaimed and excluded. + +# Any dispute, controversy or claim arising under or in relation to providing this software shall be +# submitted to and settled by the final, binding jurisdiction of the courts of Munich, Germany in +# accordance with the laws of the Federal Republic of Germany excluding its conflict of law rules and +# the United Nations Convention on Contracts on the International Sales of Goods. + +param( + [Parameter(Mandatory)] + [String]$proc_output_dir, + [Parameter(Mandatory)] + [String]$out_file +) + +(Get-ChildItem $proc_output_dir -Recurse | Where-Object { $_.Name -like '*c??.wav' }) | +ForEach-Object { + $name = $_.Name + $hash = (Get-FileHash $_.FullName -Algorithm MD5).Hash + + "$name $hash" >> $out_file +} \ No newline at end of file diff --git a/other/get_md5.sh b/other/get_md5.sh new file mode 100755 index 0000000000000000000000000000000000000000..fcf7d3d9ab904a0773a1cdfdb5279171ef170e64 --- /dev/null +++ b/other/get_md5.sh @@ -0,0 +1,54 @@ +#!/bin/sh + +# (C) 2022-2023 IVAS codec Public Collaboration with portions copyright Dolby International AB, Ericsson AB, +# Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V., Huawei Technologies Co. LTD., +# Koninklijke Philips N.V., Nippon Telegraph and Telephone Corporation, Nokia Technologies Oy, Orange, +# Panasonic Holdings Corporation, Qualcomm Technologies, Inc., VoiceAge Corporation, and other +# contributors to this repository. All Rights Reserved. + +# This software is protected by copyright law and by international treaties. +# The IVAS codec Public Collaboration consisting of Dolby International AB, Ericsson AB, +# Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V., Huawei Technologies Co. LTD., +# Koninklijke Philips N.V., Nippon Telegraph and Telephone Corporation, Nokia Technologies Oy, Orange, +# Panasonic Holdings Corporation, Qualcomm Technologies, Inc., VoiceAge Corporation, and other +# contributors to this repository retain full ownership rights in their respective contributions in +# the software. This notice grants no license of any kind, including but not limited to patent +# license, nor is any license granted by implication, estoppel or otherwise. + +# Contributors are required to enter into the IVAS codec Public Collaboration agreement before making +# contributions. + +# This software is provided "AS IS", without any express or implied warranties. The software is in the +# development stage. It is intended exclusively for experts who have experience with such software and +# solely for the purpose of inspection. All implied warranties of non-infringement, merchantability +# and fitness for a particular purpose are hereby disclaimed and excluded. + +# Any dispute, controversy or claim arising under or in relation to providing this software shall be +# submitted to and settled by the final, binding jurisdiction of the courts of Munich, Germany in +# accordance with the laws of the Federal Republic of Germany excluding its conflict of law rules and +# the United Nations Convention on Contracts on the International Sales of Goods. + +# simple script to create MD5 files as if produced by Microsoft Powershell +# run from within proc_output_x folder + +if [ $# -lt 2 ]; then + echo "Usage: $0 proc_output_dir testname.md5" + echo "Requires: md5sum (Linux) or md5 (macOS)" + exit 1 +fi + +system=$(uname -s) + +if [ "$system" = "Darwin" ]; then + md5="md5 -r" +else + md5=md5sum +fi + +tmpfile=`mktemp` +echo "" > $tmpfile +for f in $(find $1 -name "*c??.wav"); do + echo ${f##*/} $($md5 $f | awk '{ print toupper($1) }') >> $tmpfile +done +cat $tmpfile | sort > $2 +rm -f $tmpfile diff --git a/other/lp16k.py b/other/lp16k.py index 9f078881bbbecaef5a2623de4329457625bdb176..b0d57ff9ff10d4a3bbf78b2920b63ee57bd01ced 100755 --- a/other/lp16k.py +++ b/other/lp16k.py @@ -1,4 +1,33 @@ #!/usr/bin/python3 +# +# (C) 2022-2023 IVAS codec Public Collaboration with portions copyright Dolby International AB, Ericsson AB, +# Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V., Huawei Technologies Co. LTD., +# Koninklijke Philips N.V., Nippon Telegraph and Telephone Corporation, Nokia Technologies Oy, Orange, +# Panasonic Holdings Corporation, Qualcomm Technologies, Inc., VoiceAge Corporation, and other +# contributors to this repository. All Rights Reserved. +# +# This software is protected by copyright law and by international treaties. +# The IVAS codec Public Collaboration consisting of Dolby International AB, Ericsson AB, +# Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V., Huawei Technologies Co. LTD., +# Koninklijke Philips N.V., Nippon Telegraph and Telephone Corporation, Nokia Technologies Oy, Orange, +# Panasonic Holdings Corporation, Qualcomm Technologies, Inc., VoiceAge Corporation, and other +# contributors to this repository retain full ownership rights in their respective contributions in +# the software. This notice grants no license of any kind, including but not limited to patent +# license, nor is any license granted by implication, estoppel or otherwise. +# +# Contributors are required to enter into the IVAS codec Public Collaboration agreement before making +# contributions. +# +# This software is provided "AS IS", without any express or implied warranties. The software is in the +# development stage. It is intended exclusively for experts who have experience with such software and +# solely for the purpose of inspection. All implied warranties of non-infringement, merchantability +# and fitness for a particular purpose are hereby disclaimed and excluded. +# +# Any dispute, controversy or claim arising under or in relation to providing this software shall be +# submitted to and settled by the final, binding jurisdiction of the courts of Munich, Germany in +# accordance with the laws of the Federal Republic of Germany excluding its conflict of law rules and +# the United Nations Convention on Contracts on the International Sales of Goods. +# import argparse import multiprocessing as mp import sys