send .wav file back via api

Questions and answers about Plum Fuse+

Moderators: admin, support

  • Author
  • Message
Offline

jverweij

  • Posts: 28
  • Joined: Thu Apr 27, 2017 12:29 pm

send .wav file back via api

PostTue Aug 08, 2017 3:54 pm

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

support

  • Posts: 3263
  • Joined: Mon Jun 02, 2003 4:47 pm
  • Location: Boston, MA

Re: send .wav file back via api

PostWed Aug 09, 2017 11:43 am

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"

Return to Fuse+

Who is online

Users browsing this forum: No registered users and 1 guest