0

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.

Dilu
  • 3
  • 1

1 Answers1

0

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.

Florian Treml
  • 1,315
  • 2
  • 7
  • 10
  • Thanks Florian, i have some doubts though. What did you mean by 1:1? Should I be converting the byte array to wav string and then write it to a file named audio.wav? Thanks for helping once again – Dilu Apr 15 '21 at 16:05
  • Its already binary data, no string conversion, just write the bytes to a file – Florian Treml Apr 15 '21 at 20:44
  • you are welcome. would it be an option for you to share a Java code sample that I could add to the Botium Speech repository as starting point for other Java devs ? – Florian Treml Apr 16 '21 at 14:58