Description
Collects a recording from the user. A reference to the recorded audio is stored in the form item variable, which can be played back or submitted to a server.
Syntax
<record
name="string"
expr="ECMAScript_Expression"
cond="ECMAScript_Expression"
modal="boolean"
beep="boolean"
maxtime="time_interval"
mintime="time_interval"
beginsilence="time_interval"
finalsilence="time_interval"
dtmfterm="boolean"
type="MIME_type"
dest="URI"
destexpr="ECMAScript_Expression">
child elements
</record> |
Attributes
|
Attribute |
Description |
|
name |
The name of this recording. This variable holds the result of the record, and can be referenced anywhere within the record's form. The result is actually the file location of the recorded audio on the
IP Media Server platform. When referenced as Optional. (Defaults to an inaccessible internal variable.) |
|
expr |
An ECMAScript expression to be evaluated and used as the initial value
of this record. This record will be visited only if the expression
evaluates to |
|
cond |
An ECMAScript expression to be evaluated and used as a boolean condition.
This record will be visited only if the expression evaluates to
|
|
modal |
Set to true if only the record's (dtmf) grammars are enabled. Otherwise, all active (dtmf) grammars are enabled. Optional. (Defaults to true.) |
|
beep |
Specifies whether or not a beep should be emitted just prior to recording. Optional. (Defaults to false.) |
|
maxtime |
The maximum duration to record. Minimum value is 250ms (if defined as a shorter duration, it will be set to 250ms); maximum value is whatever the default is (if defined as a longer duration, it will be set to the default). Optional. (Defaults to 600000ms/10min or value of com.voicegenie.maxrecordtime property.) |
|
mintime |
If the duration of the recording is less than this
attribute, then the recording is assumed to be empty and a
|
|
beginsilence |
The time to wait, if no speech occurs, before throwing a
|
|
finalsilence |
The interval of silence that indicates end of speech. Maximum value is
the value of the |
|
dtmfterm |
Setting this to true is equivalent to defining a local DTMF grammar which matches any single DTMF key (to terminate recording). The DTMF tone will not be part of the recording. Optional. (Defaults to true.) |
|
type |
The media format of the resulting recording. Optional. (Defaults to audio/basic.). See Type Chart, below. |
|
dest |
The destination of the recording. Optional. |
|
destexpr |
An ECMAScript expression to be evaluated and used as the destination of the recording. Optional. |
Attribute Notes
Type Chart
The following types are also supported for full-call recording.
| .wav | video/x-wav |
|
|
| audio/3GPP | .3gp, .3gpp |
|
|
| video/3GPP | .3gp, .3gpp |
|
|
Notes
Shadow Variables
For each
Shadow Variable Notes
Parents Children <audio>, <catch>, <dtmf>, <error>, <filled>, <grammar>, <help>, <noinput>, <nomatch>, <prompt>, <property>, <value>, #PCDATA Extensions
Limitations/Restrictions
Example
|