We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

send .wav file back via api

Questions and answers about Plum Fuse+

Moderators: admin, support

Post Reply
jverweij
Posts: 79
Joined: Thu Apr 27, 2017 11:29 am

send .wav file back via api

Post 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?

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

Re: send .wav file back via api

Post 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"

Post Reply