sednn icon indicating copy to clipboard operation
sednn copied to clipboard

about pesq

Open softwarentu opened this issue 6 years ago • 10 comments

Hi @yongxuUSTC I can't find the pesq_tool document in (https://www.itu.int/rec/T-REC-P.862-200102-I/en) and compile the code by $ gcc -o pesq pesq_tool/*.c -lm

I just find the T-REC-P.862-200102-I!!SOFT-ZST-E.zip the strucure is as follows: T-REC-P.862-200102-I!!SOFT-ZST-E ---P862 ---Software ---Conform ---source ---readme.txt ---P862E.doc ---P862.pdf

so I don't know how to compile these file and get the compiled executable pesq to mixture2clean_dnn/, can you give me the detail of this issue?

softwarentu avatar Mar 29 '18 14:03 softwarentu

You just go the source or software file and you will find the cpp and h file for compilation.

RobertWan91 avatar Apr 22 '18 04:04 RobertWan91

I navigated to the Software/source folder and run this command $ gcc pesqmain.c -o pesq I get the follwinf list of errors:

/tmp/ccJHq2oB.o: In function intlog2': dsp.c:(.text+0x104): undefined reference to log' dsp.c:(.text+0x129): undefined reference to floor' /tmp/ccJHq2oB.o: In function FFTInit': dsp.c:(.text+0x2b2): undefined reference to cos' dsp.c:(.text+0x2d0): undefined reference to sin' /tmp/cc2pojIz.o: In function apply_filter': pesqdsp.c:(.text+0x6e7): undefined reference to pow' /tmp/cc2pojIz.o: In function apply_VAD': pesqdsp.c:(.text+0xbd0): undefined reference to sqrt' pesqdsp.c:(.text+0x1524): undefined reference to log' /tmp/cc2pojIz.o: In function time_align': pesqdsp.c:(.text+0x1a36): undefined reference to cos' pesqdsp.c:(.text+0x1dc8): undefined reference to pow' /tmp/cc2pojIz.o: In function split_align': pesqdsp.c:(.text+0x2477): undefined reference to cos' pesqdsp.c:(.text+0x2cd6): undefined reference to pow' pesqdsp.c:(.text+0x33dd): undefined reference to pow' pesqdsp.c:(.text+0x3c70): undefined reference to pow' pesqdsp.c:(.text+0x434f): undefined reference to pow' /tmp/ccIvkxTw.o: In function fix_power_level': pesqmain.c:(.text+0xbbc): undefined reference to sqrt' /tmp/cc6IEnTv.o: In function intensity_warping_of': pesqmod.c:(.text+0x173c): undefined reference to pow' pesqmod.c:(.text+0x179a): undefined reference to pow' pesqmod.c:(.text+0x17cf): undefined reference to pow' /tmp/cc6IEnTv.o: In function pseudo_Lp': pesqmod.c:(.text+0x18ff): undefined reference to pow' pesqmod.c:(.text+0x196d): undefined reference to pow' /tmp/cc6IEnTv.o:pesqmod.c:(.text+0x1a2e): more undefined references to pow' follow /tmp/cc6IEnTv.o: In function compute_delay': pesqmod.c:(.text+0x1c51): undefined reference to sqrt' /tmp/cc6IEnTv.o: In function Lpq_weight': pesqmod.c:(.text+0x220a): undefined reference to pow' pesqmod.c:(.text+0x2275): undefined reference to pow' pesqmod.c:(.text+0x22ac): undefined reference to pow' pesqmod.c:(.text+0x22e7): undefined reference to pow' pesqmod.c:(.text+0x233f): undefined reference to pow' /tmp/cc6IEnTv.o: In function set_to_sine': pesqmod.c:(.text+0x239f): undefined reference to sin' /tmp/cc6IEnTv.o: In function pesq_psychoacoustic_model': pesqmod.c:(.text+0x25b1): undefined reference to cos' pesqmod.c:(.text+0x39dd): undefined reference to floor' pesqmod.c:(.text+0x3a44): undefined reference to floor' pesqmod.c:(.text+0x52df): undefined reference to `pow' collect2: error: ld returned 1 exit status

If anyone faced the same please share the solution

HusainKapadia avatar Aug 09 '18 08:08 HusainKapadia

Hi , you should add "-lm": $ gcc -o PESQ *.c -lm Compile and use PESQ for speech enhancement evaluation: Download the PESQ source code from: https://www.itu.int/rec/T-REC-P.862-200102-I/en Then compile: $ gcc -o PESQ *.c -lm Then use: ./pesq TEST_DR1_MRJO0_SI1364.WAV TEST_DR1_MRJO0_SI1364_dnnEnh.wav +16000


Yong XU https://sites.google.com/view/xuyong/home

From: Husain Kapadia Date: 2018-08-09 01:46 To: yongxuUSTC/sednn CC: yong xu @ seattle; Mention Subject: Re: [yongxuUSTC/sednn] about pesq (#5) I navigated to the Software/source folder and run this command gcc pesqmain.c -o pesq I get the follwinf list of errors: /tmp/ccJHq2oB.o: In function intlog2': dsp.c:(.text+0x104): undefined reference tolog' dsp.c:(.text+0x129): undefined reference to floor' /tmp/ccJHq2oB.o: In functionFFTInit': dsp.c:(.text+0x2b2): undefined reference to cos' dsp.c:(.text+0x2d0): undefined reference tosin' /tmp/cc2pojIz.o: In function apply_filter': pesqdsp.c:(.text+0x6e7): undefined reference topow' /tmp/cc2pojIz.o: In function apply_VAD': pesqdsp.c:(.text+0xbd0): undefined reference tosqrt' pesqdsp.c:(.text+0x1524): undefined reference to log' /tmp/cc2pojIz.o: In functiontime_align': pesqdsp.c:(.text+0x1a36): undefined reference to cos' pesqdsp.c:(.text+0x1dc8): undefined reference topow' /tmp/cc2pojIz.o: In function split_align': pesqdsp.c:(.text+0x2477): undefined reference tocos' pesqdsp.c:(.text+0x2cd6): undefined reference to pow' pesqdsp.c:(.text+0x33dd): undefined reference topow' pesqdsp.c:(.text+0x3c70): undefined reference to pow' pesqdsp.c:(.text+0x434f): undefined reference topow' /tmp/ccIvkxTw.o: In function fix_power_level': pesqmain.c:(.text+0xbbc): undefined reference tosqrt' /tmp/cc6IEnTv.o: In function intensity_warping_of': pesqmod.c:(.text+0x173c): undefined reference topow' pesqmod.c:(.text+0x179a): undefined reference to pow' pesqmod.c:(.text+0x17cf): undefined reference topow' /tmp/cc6IEnTv.o: In function pseudo_Lp': pesqmod.c:(.text+0x18ff): undefined reference topow' pesqmod.c:(.text+0x196d): undefined reference to pow' /tmp/cc6IEnTv.o:pesqmod.c:(.text+0x1a2e): more undefined references topow' follow /tmp/cc6IEnTv.o: In function compute_delay': pesqmod.c:(.text+0x1c51): undefined reference tosqrt' /tmp/cc6IEnTv.o: In function Lpq_weight': pesqmod.c:(.text+0x220a): undefined reference topow' pesqmod.c:(.text+0x2275): undefined reference to pow' pesqmod.c:(.text+0x22ac): undefined reference topow' pesqmod.c:(.text+0x22e7): undefined reference to pow' pesqmod.c:(.text+0x233f): undefined reference topow' /tmp/cc6IEnTv.o: In function set_to_sine': pesqmod.c:(.text+0x239f): undefined reference tosin' /tmp/cc6IEnTv.o: In function pesq_psychoacoustic_model': pesqmod.c:(.text+0x25b1): undefined reference tocos' pesqmod.c:(.text+0x39dd): undefined reference to floor' pesqmod.c:(.text+0x3a44): undefined reference tofloor' pesqmod.c:(.text+0x52df): undefined reference to `pow' collect2: error: ld returned 1 exit status If anyone faced the same please share the solution — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

yongxuUSTC avatar Aug 09 '18 23:08 yongxuUSTC

How can I get the result of PESQ using window os?

jeongHwarr avatar Feb 12 '19 09:02 jeongHwarr

Hi, we have not tried PESQ tool on windows. We developed the code in Linux.

Best wishes,

Qiuqiang


From: jeonghwaYoo [email protected] Sent: 12 February 2019 09:59 To: yongxuUSTC/sednn Cc: Subscribed Subject: Re: [yongxuUSTC/sednn] about pesq (#5)

How can I get the result of PESQ using window os?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/yongxuUSTC/sednn/issues/5#issuecomment-462694630, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AMt5yaRDujvKJg5hZViS8rH1andKUgsvks5vMpBsgaJpZM4TAca_.

qiuqiangkong avatar Feb 12 '19 23:02 qiuqiangkong

@qiuqiangkong okay thank you!

jeongHwarr avatar Feb 13 '19 02:02 jeongHwarr

I created Windows version of this project (https://github.com/jeonghwaYoo/sednn_modify). Is it okay? If you have any problem, please let me know.

jeongHwarr avatar Mar 12 '19 05:03 jeongHwarr

Hi,

No problem at all. Thanks for your contribution.

Best regards, yong

On Mon, 11 Mar 2019 at 22:30, jeonghwaYoo [email protected] wrote:

I created Windows version of this project ( https://github.com/jeonghwaYoo/sednn_modify). Is it okay? If you have any problem, please let me know.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/yongxuUSTC/sednn/issues/5#issuecomment-471862994, or mute the thread https://github.com/notifications/unsubscribe-auth/AFJj0vSVj2ISexAH0Ah_Ys-rMSK7VZv_ks5vVzuJgaJpZM4TAca_ .

yongxuUSTC avatar Mar 12 '19 16:03 yongxuUSTC

Hello, Even after adding -lm , i still facing the same problem !! Thanks for your Help !

Nawel17 avatar Jun 25 '19 15:06 Nawel17

Hi, for posterity, I found I needed to add the '-fcommon' option to the gcc build command for compilation to succeed. Seems to be due to use of global variables in the source.

https://stackoverflow.com/questions/36209788/gcc-multiple-definition-of-error

sdenton4 avatar Apr 15 '22 15:04 sdenton4