Search code examples
botium-box

In Botium speech processing, MaryTTS api gives response as a binary data. How do i convert and get it as a Audio?


I am a Beginner with the Botium speech processing. I am trying to convert the text to speech convertion and is using MaryTTs configured under botium speech processing. I configured Docker and from SwaggerUI i can see the response for TTS is a binary data. PLease find the screenshot below:

enter image description here

How can I process this data and convert it into audio in Java? Please help.


Solution

  • The return value from Botium Speech Processing is a byte array pre-encoded as WAV. You can write this 1:1 to a file named audio.wav.