[prev in list] [next in list] [prev in thread] [next in thread] 

List:       festlang-talk
Subject:    [festival-talk] Trying to receive waves using java api [solved]
From:       ssparks () eris ! qinetiq ! com (Simon Sparks)
Date:       2006-03-22 16:31:47
Message-ID: 44217BF3.6050506 () eris ! qinetiq ! com
[Download RAW message or body]

message from Simon Sparks <ssparks at eris.qinetiq.com> to festival-talk
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
OK, I've the last piece of this puzzle; found out why my code was only 
showing the Utterance ID as a result rather than the audio itself 
(thanks to Joseph, Briony and Ambrose for helping with the other parts).
The reason is that the ctsr.festival.client.Request instance receives 
two responses from the Festival server;
 - The first response is the array of bytes that constitutes the audio
 - The second is an array of bytes/characters that spells out the ID string.

As I wasn't aware that there was going to be more than one response, my 
listener class copied the byte array it received from a requestResult 
notification to a global variable. So, on the second notification, the 
saved audio would be overwritten with the ID string.

Now, my listener adds both responses to a Vector and returns only the 
first one (the audio) to my web service when needed.

Hope this helps someone else in the future.
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
=    University of Edinburgh's Festival Speech Synthesis System       =
= http://festvox.org/festival      Sent Via festival-talk at festvox.org =
=                           To unsubscribe mail majordomo at festvox.org =
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic