Download User Manual
Transcript
C H A P T E R 6 : T E L E P H O N Y T E S T I N G B A N D V O I C E Q U A L I T Y 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 <File1> <File2> <Outputfile> rem rem File1: File that contains the reference signal rem rem File2: File that contains the test signal. rem rem Outputfile: Results are stored in this file. If rem it already exists, results are rem appended to it, otherwise it will be rem newly created. rem rem echo ************************************************** echo ***** RunPSQM V2.0 (c) OPTICOM, 2000 *** 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 and the path of the reference signal, e.g. "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. 165 RunPSQM.bat