unispeech / asterisk-unimrcp

UniMRCP modules for Asterisk
http://www.unimrcp.org/asterisk
GNU General Public License v2.0
48 stars 36 forks source link

Not moving to next sound if RIFF headers present #14

Closed scgm11 closed 7 years ago

scgm11 commented 7 years ago

If the audio file to reproduce has RIFF headers

Example: WAVE properties:

Non-canonical header: yes

Extra RIFF chunks: yes (2692 bytes)

the length of the sound is not correctly recognized so will stop at the first sound and wont pass to the next one, removing this header using sox fix the issue but I think it should get the Extra RIFF chunks and add it in

app_mrcprecog.c . line 1348

if (read_filelength + read_filestep > max_filelength) {....

so it knows the file is over

what do you think?

achaloyan commented 7 years ago

This issue is the outcome of the following discussion

https://groups.google.com/forum/#!topic/unimrcp/MmMuRkoZ1JY

achaloyan commented 7 years ago

Fixed in https://github.com/unispeech/asterisk-unimrcp/commit/b2494545bf4622057a83330692673a8bd3adff33.