Members Login
Username 
 
Password 
    Remember Me  
Post Info TOPIC: How to dynamicalluy upload a recorded voice that can be broadcasted in asp.net application
Anonymous

Date: Jul 9, 2014
How to dynamicalluy upload a recorded voice that can be broadcasted in asp.net application
Permalink   
 


Hi All,

Currently i am able schedule a voice broadcast from my ASP.Net application, but i need to do the below now:

 

i need to give an option in my application so that user can upload a voice recording and this need to be broadcasted to the broadcast receiver. 

How can i implement this? Please help me in this

 

Thank in advance,

Mohan.



__________________
Mohan

Date: Jul 10, 2014
Permalink   
 

Hi All,

 

Some please help me on this ...

 

Mohan



__________________


Newbie

Status: Offline
Posts: 1
Date: Jul 10, 2014
Permalink   
 

Hi Mohan,

Thanks for clarifying everything you're looking for on the phone.

For your situation there are two different setups. The first being the allowing the user to be called at a requested phone number and record their message. You will want to utilize broadcast.create - secure.ifbyphone.com/developers.php for this.


The next scenario, allowing users to upload their own audio files, is more complex and requires the use of our SurVo/IVR application to dynamically insert .wav files.

First, you will be able to upload their audio files to Ifbyphone using recording.upload - secure.ifbyphone.com/developers.php.

Once the file is uploaded, you will want to follow the Custom SurVo Audio Prompts documentation - secure.ifbyphone.com/developers.php. This allows you to create the parameter in your SurVo which you can dynamically change to the audio file uploaded per user.

Finally, you will have to use the Click-to-SurVo (CTS) command - secure.ifbyphone.com/developers.php - to reference the created SurVo on demand and generate the broadcast. The bottom half of the CTS documentation page outlines how to schedule the CTS Broadcast.

Hope that helps!

__________________


Member

Status: Offline
Posts: 9
Date: Jul 10, 2014
Permalink   
 

Hi Anderson,

Thank you for your reply, hope your solution would work for me.

Thanks
Mohan

__________________


Member

Status: Offline
Posts: 9
Date: Jul 11, 2014
Permalink   
 

Hi Anderson,

I have created a Survo and added a question with the below settings :
Use wave file : true
Question type : prompt only

and i have selected the wave file as "parameter", and set the parameter as "UserRecordedMessage"

So, when i want to schedule a broadcast using API then how can i pass a value to the parameter ? can i give an URL like http://myserver/usermessages/message.mp3 . does it accepts like this ? and if it accepts, do i need to send the server user credentials also ?

I mean when ifbyphone try to broadcast my message then it has to get the recorded sound file from our server, then ifbyphone need to be allowed to access a file from our server .... right ?


Please help me on this.
Mohan



-- Edited by Mohan on Friday 11th of July 2014 11:20:12 AM



-- Edited by Mohan on Friday 11th of July 2014 11:48:38 AM

__________________


Newbie

Status: Offline
Posts: 3
Date: Jul 11, 2014
Permalink   
 

Hi Mohan,

Per our discussion, to dynamically call an audio file using the parameter function in Survo, you have to first upload the audio to the account. 

To do so with the API you'll use the recording.upload API call. https://secure.ifbyphone.com/developers.php?id=73&a=recording&m=upload

An example of this would be...

https://secure.ifbyphone.com/ibp_api.php?api_key=010101APIkeyhere010101&action=recording.upload&type=survo&path=http%3A//www.yourwebsite.com/07112014.wav&id=809244

This will result in the audio file being saved at the path "/survey/809244/07112014.wav" which you will need for the Click-To-Survo API call. 

The Click-To-Survo API call then would look something like this...

https://secure.ifbyphone.com/click_to_xyz.php
?app=cts
&phone_to_call=8475551212
&survo_id=809244
&key=010101APIkeyhere010101
&user_parameters=UserRecordedMessage|/survey/809244/07112014.wav

There is further information on using custom audio prompts in the Developer Guide in your account as well. https://secure.ifbyphone.com/developers.php?a=custom_audio

Let us know if you have further questions

Best Regards,

Chris White

Customer Support Engineer



-- Edited by CWhite on Friday 11th of July 2014 01:00:37 PM

__________________
Anonymous

Date: Jul 16, 2014
Permalink   
 

Hi Chris White,

 

I am able to upload the audio file to the ifbyphone site. But unable to broadcast to the user.

The API call will be like this

 

https://secure.ifbyphone.com/click_to_xyz.php?app=cts&acct=245694&scheduleonly&survo_id= 924564&user_parameters=UserRecordedMessage|" & Survey/9236244/Test1.wav&key=c8b7b06a4ery786b99d4hsdfkjdf68960d1c15689365477bb1fd&type=2&cid=8565236514523770&sdate=2014-07-16+11%3A18&edate=2014-07-16+11%3A28&tz=Eastern&phone=&dstime=00%3A00&detime=23%3A59

 

Am getting the call but the wav file is not played.

 

Please help on this

Mohan



__________________


Newbie

Status: Offline
Posts: 3
Date: Jul 16, 2014
Permalink   
 

Hi Mohan,

There are just a couple problems in the API call you provided. I've included a breakdown below, plus a corrected version which I just tested successfully.

secure.ifbyphone.com/click_to_xyz.php?
app=cts
&acct=245694 (acct is not a necessary argument, this can be removed)
&scheduleonly
&survo_id=924564 (this is an invalid survo ID, but the format is correct)
&user_parameters=UserRecordedMessage|Survey/9236244/Test1.wav (9236244 is an invalid ID, thus the filepath is incorrect. Usually this ID should match the ID above)
&key=[removed for security]
&type=2
&cid=8565236514523770 
&sdate=2014-07-16+11%3A18
&edate=2014-07-16+11%3A28
&tz=Eastern
&phone= (phone to call should go here)
&dstime=00%3A00
&detime=23%3A59


secure.ifbyphone.com/click_to_xyz.php?
app=cts
&scheduleonly
&survo_id=809244
&user_parameters=UserRecordedMessage|/survey/809244/Test1.wav
&key=[removed for security]
&type=2
&cid=8567273550
&sdate=2014-07-16+11%3A18
&edate=2014-07-16+11%3A28
&tz=Eastern
&phone=8887776666|8776665555|8665554444
&dstime=00%3A00
&detime=23%3A59

Let us know if you have additional questions.

Best Regards,

Chris White

Customer Support Engineer



-- Edited by CWhite on Wednesday 16th of July 2014 11:17:22 AM

__________________
Page 1 of 1  sorted by
 
Quick Reply

Please log in to post quick replies.

Post to Digg Post to Del.icio.us


Create your own FREE Forum
Report Abuse
Powered by ActiveBoard