Example 2: Measurements From A Batch File - OPTICOM OPERA - V 3.5 User Manual

Objective perceptual analyzer
Hide thumbs Also See for OPERA - V 3.5:
Table of Contents

Advertisement

C H A P T E R
6 :

6.8.2 Example 2: Measurements From a Batch File

For this example the batch file RunPSQM.bat contained in the installation
directory of your OPERA™ system is used. The proposed files for assessment in
this example are located in the same directory. The names of these files are
"PSQMRef.wav" and "PSQMTest.wav". The following lines show the contents
of RunPSQM.bat . Have a look at those lines and read the explanation that will
follow after the file excerpt.
@echo off
rem batch file to compute PSQM from two mono input files
rem
rem
Parameters:
rem
rem
RunPsqm
rem
rem
rem
rem
rem
rem
rem
rem
rem
rem
rem
echo **************************************************
echo ***** RunPSQM
echo **************************************************
echo.
pushd
echo *** TODO: change working dir according to where
echo
OPERA.exe is!
echo ... Processing file %1
Opera -Exec -Algorithm Name=PSQM -Input Inp=0 File=%1 Inp=1
File=%2 -Mux InpRefLeft=0 ChannelRefLeft=0 InpTestLeft=1
ChannelTestLeft=0 -Delay Channel=0 -Signal StaticGainOn
DCFilterOn -Out %3 -Append
popd
echo Done!
To run this batch file, please open an MS-DOS Command Prompt window.
Start the batch file by entering following syntax: "RunPQSM <File1>
<File2> <Outputfile>". This batch file has three parameters, the first one is
the
filename
"C:\Programme\Opera\WaveFiles\PSQMRef.wav". The second parameter is the
test file, e.g. "C:\Programme\Opera\WaveFiles\PSQMTest.wav". Both of these
WAVE files are located in the WaveFiles subdirectory of the OPERA™
installation folder on the harddisk.
The third and last parameter is the path with the name of the output file that will
contain the result values, e.g. "C:\Temp\PSQMresult.txt".
In the next lines of the batch file OPERA™ is executed. Please note that the
parameters that follow the command "opera" must be written into one line.
Here, those lines had to be wrapped in the absence of space in this manual.
T E L E P H O N Y
B A N D
T E S T I N G
<File1> <File2> <Outputfile>
File1:
File that contains the reference signal
File2:
File that contains the test signal.
Outputfile: Results are stored in this file. If
it already exists, results are
appended to it, otherwise it will be
newly created.
V2.0
and
the
path
165
V O I C E
Q U A L I T Y
(c) OPTICOM, 2000
of
the
reference
RunPSQM.bat
***
signal,
e.g.

Advertisement

Table of Contents
loading

This manual is also suitable for:

OperaOpera telecomOpera broadcast

Table of Contents