[mary-users] Cannot set audio while playing

Ingmar Steiner ingmar.steiner at dfki.de
Thu Oct 9 14:21:25 CEST 2014


Dear Nate,

apparently the AudioPlayer thread locks... but this is not necessarily 
the expected behavior. Could you please reformulate your question as a 
bug report on GitHub?

Best wishes,

-Ingmar

On 09.10.14 14:14, Nathan Nephew wrote:
> I have a very simple setup where I create a LocalMaryInterface, setVoice(voiceName), generateAudio(string), create an AudioPlayer, setAudio(audio, then ap.start().  This works great once (other than being very slow).
>
> The problem I have is when I try to generateAudio(newString) then setAudio(audio), I get:
>
> Exception in thread "main" java.lang.IllegalStateException: Cannot set audio while playing
>      at marytts.util.data.audio.AudioPlayer.setAudio(AudioPlayer.java:142)
>      at Voice.say(Voice.java:52)
>      at Voice.main(Voice.java:68)
>
> Any suggestions other than creating a new AudioPlayer for each iteration?
>
> Nate
> _______________________________________________
> Mary-users mailing list
> Mary-users at dfki.de
> http://www.dfki.de/mailman/cgi-bin/listinfo/mary-users
>

-- 
/**
  * Dr. Ingmar Steiner
  *
  * Head of Independent Research Group
  * Multimodal Speech Processing
  * Cluster of Excellence MMCI
  *
  * Senior Researcher
  * Language Technology Lab
  * German Research Center for
  * Artificial Intelligence (DFKI GmbH)
  *
  * Principal Investigator
  * Collaborative Research Center SFB-1102
  * Information Density and Linguistic Encoding
  *
  * Department of Computer Science
  * Department of Computational Linguistics & Phonetics
  * Saarland University
  *
  * Campus C7.4, Room 2.01
  * D-66123 Saarbrücken
  * @tel: +49-681-302-70028
  * @fax: +49-681-302-4317
  * @web: http://coli.uni-saarland.de/~steiner/
  */



More information about the Mary-users mailing list