Package: libflite1
Version: 2.1-release-2
Control: affects -1 src:qtspeech-opensource-src

Dear flite maintainers,

When I enabled tests in qtspeech-opensource-src, I noticed that they pass
on all architectures except s390x:

https://buildd.debian.org/status/logs.php?pkg=qtspeech-opensource-src&ver=5.11.2-1&suite=experimental

The reason was this error:

  VAL: tried to access car in 1023 typed val
  make[3]: *** [Makefile:309: check] Error 255

I wrote a minimal test case based on Qt code, and for me it also works on
amd64 but fails on s390x, though with a different error message (1 instead
of 1023).

That test case is attached.

I compiled it using:

  $ gcc test.c -lflite -lflite_cmu_us_kal16

Result on amd64:

  $ ./a.out
  $ echo $?
  0

Result on s390x (zelenka.debian.org porterbox):

  $ ./a.out
  VAL: tried to access car in 1 typed val
  $ echo $?
  255

--
Dmitry Shachnev
#include <flite/flite.h>

extern cst_voice *register_cmu_us_kal16();
extern void unregister_cmu_us_kal16(cst_voice *);

static int fliteOutputCb(const cst_wave *w, int start, int size,
                         int last, cst_audio_streaming_info *asi)
{
  return CST_AUDIO_STREAM_STOP;
}

int main(int argc, char **argv)
{
  cst_voice *voice = register_cmu_us_kal16();
  cst_audio_streaming_info *asi = new_audio_streaming_info();
  asi->asc = fliteOutputCb;
  feat_set(voice->features, "streaming_info", audio_streaming_info_val(asi));
  feat_set_float(voice->features, "duration_stretch", 1.f);
  feat_set_float(voice->features, "int_f0_target_mean", 100.f);
  flite_text_to_speech("this is an example text", voice, "none");
  unregister_cmu_us_kal16(voice);
  return 0;
}

Attachment: signature.asc
Description: PGP signature

Reply via email to