Question T1902
Visible to All Users

Microphone query.

created 6 years ago

"type": "microphone",
 "name": "question1",
  "titleLocation": "hidden"

I am using this element in surveyjs but I am wondering that how I can get audio file detail which I want to upload on my s3 server.

Thanks,
Arpita.

Comments (3)

    https://rawgit.com/RobinHerbots/Inputmask/4.x/dist/inputmask/phone-codes/phone.js``````==> above js also not found on this path``````I took this example from here :- https://surveyjs.io/Examples/Builder/?id=customwidgets``````please reply and help me to integrate microphone``````Thanks in advance``````Arpita.

    On Mon, Apr 15, 2019 at 7:05 PM Arpita Rana <arpita@invanto.com> wrote:

    "type": "microphone",
     "name": "question1",
      "titleLocation": "hidden"

    I am using this element in surveyjs but I am wondering that how I can get audio file detail which I want to upload on my s3 server.

    Thanks,
    Arpita.

      Hey I have tried this and got success to get base64 object of that recording but once I am sending that dataURI object on my server I am trying to convert that object to mp3 file but mp3 file not getting created proper so I have doubt that datauri base_64 object coming proper or not from microphone.js ?

      I am doing following way
      $encodedData = "dataURI base_64 object";``````$decocedData = base64_decode($encodedData);``````$output_file = $this->get('kernel')->getRootDir() . '/../web/sample.mp3';file_put_contents($output_file, $decocedData);````````````but sample.mp3 not creating proper please guide me.

      On Mon, Apr 15, 2019 at 7:13 PM Arpita Rana <arpita@invanto.com> wrote:

      https://rawgit.com/RobinHerbots/Inputmask/4.x/dist/inputmask/phone-codes/phone.js``````==> above js also not found on this path``````I took this example from here :- https://surveyjs.io/Examples/Builder/?id=customwidgets``````please reply and help me to integrate microphone``````Thanks in advance``````Arpita.

      On Mon, Apr 15, 2019 at 7:05 PM Arpita Rana <arpita@invanto.com> wrote:

      "type": "microphone",
       "name": "question1",
        "titleLocation": "hidden"

      I am using this element in surveyjs but I am wondering that how I can get audio file detail which I want to upload on my s3 server.

      Thanks,
      Arpita.

        Hello,

        Your questions are related the the corresponding widget - https://github.com/muaz-khan/RecordRTC but not to SurveyJS library.
        You can ask them in the forum - https://github.com/muaz-khan/RecordRTC/issues

        Thanks, Serge
        SurveyJS Team

        Answers approved by surveyjs Support

        created 6 years ago

        Hello,

        Custom widgets are maintained by the community.
        As you can see from this source file https://github.com/surveyjs/widgets/blob/master/src/microphone.js - recordered audio is placed in the question's value and then is being put on server within the survey JSON.
        To overcome this behaviour you need to customize microphone widget source and write your code that will put recordered audio on your server.

        Thanks, Serge
        SurveyJS Team