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

ASP.Net Support

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

acadenilla
Posts: 55
Joined: Wed Oct 31, 2007 11:02 am

Post by acadenilla »

hi again,

using the recordcall property or <record> is there a way for me to get the file size of the recording?

Code: Select all

<property name="recordcall" value="true" />  

<catch event="connection.disconnect.hangup">
            <submit expr="'UploadAudio.aspx'" method="post" namelist="callrecording duration filesize type" enctype="multipart/form-data"/>
        </catch> 
how do i assign the filesize of th call recording to filesize before i pass it to another page

Code: Select all

<assign name="filesize" expr=$recordcall.filesize />
something like that above?


Thanks

Allan

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

IVR code that allows you to get file size of recording

Post by support »

Hi,

Here is some sample IVR code that should allow you to get the file size of the <record>ing:

Code: Select all

<?xml version="1.0"?>
<vxml version="2.0">
    <form>
        <record name="myrecording" beep="true">
            <prompt>
                Please record a message after the beep.
            </prompt>

            <filled>
                You just recorded the following message:
                <value expr="myrecording"/>
                The size of your recording is <value expr="myrecording$.size"/> bytes.
            </filled>
        </record>
    </form>
</vxml>
Hope this helps.

Regards,
Plum Support
Last edited by support on Tue Jan 12, 2010 2:02 pm, edited 2 times in total.

acadenilla
Posts: 55
Joined: Wed Oct 31, 2007 11:02 am

Post by acadenilla »

Thx,

I had figured out the i could get the file size in code behind using the following

Code: Select all

int fileSize = Request.Files[i].ContentLength;

Is is possible to get the duration or the length of the recording?

Allan

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

IVR script to get duration of recording

Post by support »

Hi,

Yes. This is possible. You can view that information here:
http://www.plumvoice.com/docs/dev/voicexml:tags:record

So, you can add this line of IVR script in the filled block to get the duration of the recording:

Code: Select all

The duration of your recording is <value expr="myrecording$.duration"/> milliseconds.
 
Hope this helps.

Regards,
Plum Support
Last edited by support on Wed Jan 13, 2010 9:42 am, edited 5 times in total.

acadenilla
Posts: 55
Joined: Wed Oct 31, 2007 11:02 am

Post by acadenilla »

Hi,

I am having trouble controlling the time it takes for the user to touch tone their response. It is going too quickly

I have set up the following

Code: Select all

<form id="frmLogin">	
	    <property name="incompletetimeout" value="10s" />
		
		<field name="ssn" type="digits?length=9">
			<prompt bargein="true">
	                Please touch tone your 9 digit user name
			 </prompt>
		</field>
				
		...... rest of code

	</form>
As you can see i have setup the incompletetimeout property to 10s.

Is this the right property i have to assign so that i give my user enough time to touch tone their response ?

Thanks

Allan

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

IVR code to demonstrate use of interdigittimeout property

Post by support »

Hi,

You should use the IVR property, "interdigittimeout" to control the time that it takes to user to enter their response.

So, replace this line of IVR code:

Code: Select all

<property name="incompletetimeout" value="10s" />
to this line:

Code: Select all

<property name="interdigittimeout" value="5s" />
Hope this sample IVR code helps.

Regards,
Plum Support
Last edited by support on Fri Feb 26, 2010 11:10 am, edited 6 times in total.

acadenilla
Posts: 55
Joined: Wed Oct 31, 2007 11:02 am

Post by acadenilla »

thanks


<property name="interdigittimeout" value="5s" /> worked

allan

jrf7243
Posts: 3
Joined: Tue Jan 10, 2012 11:52 am

Re: ASP.Net Support

Post by jrf7243 »

I will repost here since I may have been on the wrong forum, but does the soaptester work with SOAP .asmx web service?

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

Re: ASP.Net Support

Post by support »

Hi,

Please contact your account manager regarding setting up a Plum hosting account to use the audio repository.

Regards,
Plum Support

Post Reply