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.

1

There are 1 best solutions below

3
Florian Treml On BEST ANSWER

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.