yongxuUSTC / sednn

deep learning based speech enhancement using keras or pytorch, make it easy to use
http://staff.ustc.edu.cn/~jundu/The%20team/yongxu/demo/SE_DNN_taslp.html
334 stars 124 forks source link

about pesq #5

Open softwarentu opened 6 years ago

softwarentu commented 6 years ago

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?

RobertWan91 commented 6 years ago

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

HusainKapadia commented 6 years ago

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

yongxuUSTC commented 6 years ago

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.

jeongHwarr commented 5 years ago

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

qiuqiangkong commented 5 years ago

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

Best wishes,

Qiuqiang


From: jeonghwaYoo notifications@github.com 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_.

jeongHwarr commented 5 years ago

@qiuqiangkong okay thank you!

jeongHwarr commented 5 years ago

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.

yongxuUSTC commented 5 years ago

Hi,

No problem at all. Thanks for your contribution.

Best regards, yong

On Mon, 11 Mar 2019 at 22:30, jeonghwaYoo notifications@github.com 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_ .

Nawel17 commented 5 years ago

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

sdenton4 commented 2 years ago

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