Below is a working example of a form which requests the user to speak a message which will be recorded.
Confirmation is given to the caller if the recording is successful, and the call is terminated if the conditions are not met.
Voice recordings must be submitted to a web page and cannot always be saved on the platform.
The conditions are:
- The maximum recording time is 60 seconds
- The recording attempt will be terminated with a DTMF key
- A beep will be played once recording can commence
Playback Voice
The playback of the recorded voice can be done as per the next example. Take note that the recording is still in the workspace
and once the call is terminated, the recording will be lost, unless the recoding is stored.
Save Voice Recording
A script will be needed on a web/application server which can be accessed by the VXML application and used to
deposit the recording.
Herewith an example of such a script in PHP:
The VXML portion that will facilitate the interaction with the PHP code can look as follow:
It is up to the developer to develop an interface, via the web or otherwise, to access the recordings on his/her web/application
server and also handle the administration of that. Hence, the recording capturing, archiving and management falls 100% outside
the domain of the telco. When it comes to saving recordings, careful consideration must be given to the call volume expected,
and the amount of data that would be sent to the web/application server at any given time. Hence bandwidth considerations are
of paramount importance to avoid a bottle neck and a subsequent failure of the service.
It would make sense to have a dedicated line with fixed bandwidth to ensure quality of service.