Asterisk app_swift Cepstral audio problems

I have installed Asterisk onto OS X (http://www.mezzo.net/asterisk/index.html) with app_swift included as well as a fully licensed Cepstral voice and am getting very choppy audio when using the Swift command. My swift.conf is below and seems to be the same as every example I have come across.

[general]
buffer_size=65535
goto_exten=no
voice=Allison

The output I get is very choppy, and unusable. Playing prerecorded audio files work fine.

Has anyone else came across this issue and found a way to fix it?

Answer

TTS is a very expensive process CPU wise. What kind of hardware are you running this on? I’d look at the output of top and see how loaded the CPU’s are.

Choppy audio when doing TTS normally means that your hardware can’t keep a real time flow of audio going.

Also if I remember correctly SWIFT caches generated audio, is it better the second time around?

Can you post the output of the top command while you are trying to use swift?

Attribution
Source : Link , Question Author : John Duff , Answer Author : Zypher

Leave a Comment