Author Message
MuthuGM
Joined: Jun 12, 2015
Messages: 6
Offline
Hi,
In OD7, using record node getting voice sample.
how can i convert that recorded voice to byte[]?

Thanks in advance :-)
RossYakulis
Joined: Nov 6, 2013
Messages: 2652
Offline
Perhaps you can explain more? After the record is finished, you receive a URL to the temp file. If you want a byte[] then you need to open the file and read it into the array.
SamareshKowshik
Joined: Nov 6, 2013
Messages: 351
Offline
If you do a Google search for something like "Java file to byte array", there are a lot of code examples on how to achieve this. You'd just provide the temporary file, as Ross mentioned, to the code fragment.
Go to:   
Mobile view