[mary-users] Mary and Flex, commit input w/o Socket shutdown

Marc Schroeder schroed at dfki.de
Mon Dec 7 08:05:02 CET 2009


Hello Rene,

have you considered using the HTTP server which is the default 
configuration with MARY 4.0 beta? I guess that it is easier from Flex to 
establish an http connection than to juggle with two socket connections...

Regards,
Marc

René Bühling schrieb:
> Dear all,
> 
> I am trying to use the Mary TTS with an Adobe Air/Flex application and I 
> ran into a problem I have no more solution approaches for. Maybe anyone 
> here has an idea?
> 
> I wrote a Flex/ActionScript 3 application and connected to Mary 
> successfully through the default flash.net.Socket class. I works fine to 
> the point where I want to have a sentence verbalized: I send the text 
> "Hello World \n" via the data socket, but nothing happens. I found out, 
> that Mary starts execution when I close my data socket, not earlier. 
> This leads to the situation that the result can not be sent back, 
> because the socket is closed of course.
> 
> It seems that the flash.net.Socket does not have any pendant to the 
> shutdown method that exists in most other languages' Socket 
> implementations. Therefore I can not explicitly stop the writing 
> channel. According to Adobe's documentation I guess that flush() is 
> meant to do the job, but I think this is not the same as shutdown and it 
> also does not work here.
> 
> Is there any possibility to signal Mary that the submitted data is 
> complete other than shutdown-ing the write socket?
> Or does anybody have experience connecting Mary to Flash?
> 
> Thanks and kind regards,
> René
> 

-- 
Dr. Marc Schröder, Senior Researcher at DFKI GmbH
Coordinator EU FP7 Project SEMAINE http://www.semaine-project.eu
Portal Editor http://emotion-research.net
Team Leader DFKI Speech Group http://mary.dfki.de
Editor W3C Draft EmotionML http://www.w3.org/TR/emotionml/

Homepage: http://www.dfki.de/~schroed
Email: schroed at dfki.de
Phone: +49-681-302-5303
Postal address: DFKI GmbH, Campus D3_2, Stuhlsatzenhausweg 3, D-66123 
Saarbrücken, Germany
--
Official DFKI coordinates:
Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
Trippstadter Strasse 122, D-67663 Kaiserslautern, Germany
Geschaeftsfuehrung:
Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster (Vorsitzender)
Dr. Walter Olthoff
Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes
Amtsgericht Kaiserslautern, HRB 2313


More information about the Mary-users mailing list