Page 1 of 1

send .wav file back via api

Posted: Tue Aug 08, 2017 2:54 pm
by jverweij
do you have documentation to support how we would send a .wav file back to our endpoint from what we have recorded using the record module?

Re: send .wav file back via api

Posted: Wed Aug 09, 2017 10:43 am
by support
Audio files from the record module are already in .WAV format. Call recordings are in .UL format.

Here is an example of how you would send it to your webservice.

https://drive.google.com/file/d/0B2RqW1 ... FzRXc/view

In PHP, you can access files via $_FILES like so:

Code: Select all

if (isset($_FILES['recording'])) {
  rename($_FILES['recording']['tmp_name'], 'my_recording.wav');
}
This renames your recording to "my_recording.wav"