Show TOC

Procedure documentationDeveloping a Simple Voice Application Locate this document in the navigation structure

 

This procedure helps you to develop a simple voice application and familiarize yourself with the voice kit.

Prerequisites

  • You have installed SAP NetWeaver CE for Voice to develop and deploy a voice application

  • You have launched the Visual Composer using the URL http://<IP address>:<Port number>/VC/freestyle.jsp to create a new voice application

If you want to test your voice application using third-party VoiceXML gateway then the following prerequisites apply:

  • You have installed a third-party VoiceXML gateway that has a Text To Speech (TTS) component to test the voice application

  • You have identified the driver for the third-party VoiceXML gateway installed to configure SAP NetWeaver CE

    More information: VoiceXML Gateway Drivers

  • You have an active telephone device to dial the numbers assigned to the VoiceXML gateway

Procedure

1. Assign the Voice Application to a Development Component
  1. Choose   Model   New  .

  2. From the Model Type list, choose Voice Application.

  3. In the Name field, enter the name of the voice application.

    For example, Test

  4. In the Development Component field, choose the New button and perform the following steps:

    1. From the Master Language drop-down list, select the source language to be used in the components stored in the development component.

    2. In the Development component field, enter the name of the new development component.

      For example,test_dc

    3. Choose OK..

  5. Choose OK.

You must ensure that you do not change the default values in the other fields.

2. Create a Voice Application
  1. Choose Compose from the task panel toolbar.

  2. Drag the Speak element from the Compose task panel and drop it on the workspace.

  3. Drag the End connector from the Compose task panel and drop it on the workspace.

  4. Connect the Start, Speak and End entities on the workspace.

3. Configure the Speak Element
  1. Select the Speak element in the workspace.

  2. In the task panel toolbar, choose Configure.

  3. In the Configure Speak task panel enter the name of the speak element.

    For example, Hello

  4. Choose the Settings button.

  5. In the Speak Items table, choose Add.

  6. In the Type field, select Text.

  7. In the Text field, enter the text to be read out to the caller.

    For example, Hello World

4. Configure the Voice Application
  1. Select the voice model tab of the created voice application in the workspace.

  2. In the task panel toolbar, choose Configure.

  3. In the Configure Voice Application task panel, expand General and perform the following steps:

    1. Select the Define as application checkbox.

    2. In the Runtime drop-down list, select Voice.

  4. If you are using a third-party VoiceXML gateway expand Deployment in the Configure Voice Application task panel, and perform the following step:

    1. In the Driver drop-down list, select the driver identified.

5. Compile and Deploy the Voice Application
  1. From the task panel toolbar, choose Deploy.

  2. In the Deploy task panel, choose the Compile button.

  3. Following a successful compilation, choose the Deploy button.

  4. In the Deploy task panel, expand test_dc and choose the hyperlink of the application.

  5. In the Publish Results window, select the Copy Link button.

6. Test the Voice Application using STAG
  1. From the Main toolbar, select Runtime trace.

  2. In the NetWeaver Trace View window, choose theRun in Text Gateway button.

  3. In the STAG window, choose Go.

    STAG displays the text Hello World and disconnects your interaction with the voice application.

7. Test the Voice Application using VoiceXML Gateway
  1. Configure the third-party VoiceXML gateway with the URL of the voice application.

  2. Dial the number assigned to the VoiceXML gateway using a telephone device.

    The VoiceXML gateway reads the text "Hello world" to the caller and disconnects your interaction with the voice application.