[mary-users] distorted sound with MBROLA voices

Luzius Thöny lthoeni at ifi.uzh.ch
Mon Aug 25 17:28:43 CEST 2008


Marc Schroeder wrote:
>
>
> Luzius Thöny schrieb:
>> Hi,
>>
>> I have a problem with MBROLA voices: The WAV sound files produced by 
>> MARY are heavily distorted. It's just the MBROLA voices that give 
>> trouble, the other voices work fine.
>>
>> It makes no difference whether I play the sound files inside the Mary 
>> Client or save them to disk and play them with a standard audio 
>> player - I get the same distortion.
>>
>> I have tried with both Mary 3.5.0 and 3.6.0, and I have tried with 
>> both Java 1.5 and Java 1.6, but I always get the same problem.
>>
>> The server is an AMD64 running Ubuntu Linux.
>>
>> There's no indication in the logfiles that anything is going wrong 
>> (see below). No errors were reported when installing the MBROLA 
>> voices, either.
>>
>> -------------- server.log------
>> ...
>> 2008-08-21 15:26:29,215 [RH 1] INFO  MbrolaCaller Starting Synthesis 
>> with command: /opt/MARY_TTS/bin/mbrola -e 
>> /opt/MARY_TTS/lib/voices/de1/de1 - -.raw
>> ...
>> ...
>> ...
>> 2008-08-21 15:26:29,332 [RH 1] INFO  RH 1       Request handled 
>> successfully.
>>
>> -----------------------------------
>>
>> In case anyone is interested, here's what the distortion sounds like: 
>> http://www.doink.ch/marytest-de1.wav
>>
>> any help is appreciated!
>>
>> Luzius
>>
> Hi,
>
> that actually sounds like the typical byte swap problem. Apparently we 
> need to tell MBROLA, or our MARY Mbrola code, that the byte order in 
> the files is (the other way round from what it currently thinks it is).
>
> Thanks for reporting the problem, I will make it a ticket for MARY 4.0.
>
> Cheers,
> Marc 


Yeah, it was in fact a big-endian/little-endian problem. I'm attaching a 
(trivial) patch that applies to tag 3.6.0 (not to trunk).

I couldn't figure out how to add a comment/patch to the TRAC ticket (I 
guess I'm not allowed to?), so I'm sending the patch to the mailing 
list, hoping that the list server won't strip it...

Luzius

==========

Luzius Thöny
Institut für Computerlinguistik
Universität Zürich
Binzmühlestr. 14
CH-8050 Zürich
lthoeni at ifi.uzh.ch <mailto:lthoeni at ifi.uzh.ch>
lucius.antonius at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mary-3.6.0-amd64-byteorder.patch
Type: text/x-diff
Size: 1542 bytes
Desc: not available
URL: <http://www.dfki.de/pipermail/mary-users/attachments/20080825/e1059526/attachment.bin>


More information about the Mary-users mailing list