Skip to content

Commit 3e60207

Browse files
singalsukv2019i
authored andcommitted
Audio: MFCC: Use sof-testbench4 and topology2 to run the module
This patch updates the run script run_mfcc.sh to use topology2 and the current sof-testbech4. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
1 parent 3dc3e5c commit 3e60207

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

tools/tune/mfcc/run_mfcc.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
#!/bin/sh
22
# SPDX-License-Identifier: BSD-3-Clause
3-
# Copyright(c) 2022 Intel Corporation. All rights reserved.
3+
# Copyright(c) 2022-2026 Intel Corporation. All rights reserved.
44

55
set -e
66

77
RAW_INPUT=in.raw
88
RAW_OUTPUT=mfcc.raw
99

10-
export LD_LIBRARY_PATH=../../testbench/build_testbench/sof_ep/install/lib:../../testbench/build_testbench/sof_parser/install/lib
11-
12-
TESTBENCH=../../testbench/build_testbench/install/bin/testbench
13-
OPT="-q -r 16000 -R 16000 -c 1 -n 1 -b S16_LE -t ../../build_tools/test/topology/test-playback-ssp5-mclk-0-I2S-mfcc-s16le-s16le-48k-24576k-codec.tplg"
10+
TESTBENCH=$SOF_WORKSPACE/sof/tools/testbench/build_testbench/install/bin/sof-testbench4
11+
TOPOLOGY=$SOF_WORKSPACE/sof/tools/build_tools/topology/topology2/development/sof-hda-benchmark-mfcc16.tplg
12+
OPT="-r 16000 -c 2 -b S16_LE -p 3,4 -t $TOPOLOGY -i $RAW_INPUT -o $RAW_OUTPUT"
1413

1514
# Convert input audio file raw 16 kHz 1 channel 16 bit
1615
sox --encoding signed-integer "$1" -L -r 16000 -c 1 -b 16 "$RAW_INPUT"

0 commit comments

Comments
 (0)