Show TOC

Procedure documentationEnabling Voice Applications to Access Runtime Resources Locate this document in the navigation structure

 

You use this procedure to configure AS Java to access resources such as audio files or grammar files either on the SAP NetWeaver Application Server Java instance on which you deploy your voice application or on a different HTTP server.

Prerequisites

To access audio files on a different HTTP server, extract and copy the contents of the SAP_VOICE.zip from the AS Java to any directory structure of the HTTP server.

Note Note

You can use the URL http://<localhost or the IP address>:50000/voice_resources/SAP_VOICE.zip to access the SAP_VOICE.zip file on the NW CE.

End of the note.

Procedure

Accessing Audio Files from the AS Java on Which Your Voice Application Is Deployed
  1. Open the SAP_VOICE.zip folder using the URLhttp://<localhost or the IP address>:50000/voice_resources/SAP_VOICE.zip.

  2. Extract the contents to the root of the folder where you have installed AS Java.

    For example, if you have installed AS Java on the C:\ folder, then extract the contents of the SAP_VOICE.zip to c:\. This creates a directory structure c:\SAP_VOICE.

    Note Note

    • The system may display a warning message. Choose OK and continue.

    • In Linux environment, extract the contents to the root directory '\'. In addition, ensure that the directory SAP_VOICE has the read, write and execute access to all the users.

    End of the note.
  3. Create a new app_template folder to store the resource files.

    More information: Creating a Folder to Store the Resource Files

  4. Open the SAP NetWeaver Administrator tool using the URL http://<localhost or the IP address>:50000/nwa.

  5. Configure the Java HTTP Provider by performing the following steps:

    1. Choose   Configuration Management   Infrastructure   Java HTTP Provider Configuration  .

    2. In the Virtual Hosts table, choose Default.

    3. In the Details table, choose the Aliases tab.

    4. Choose Add Alias.

    5. Enter the alias name and the path of the directory to which you have extracted the folder SAP_VOICE.zip.

      For example, you can enter the following values:

      Alias name: SAP_VOICE

      Path: c:\SAP_VOICE

    6. On the General tab page, select the Directory List checkbox (optional).

    7. Choose Save.

Accessing Audio Files from a Different HTTP Server
  1. Access the SAP_VOICE.zip folder on the AS Java server using the URLhttp://<localhost or the IP address>:50000/voice_resources/SAP_VOICE.zip.

  2. Copy the contents of the folder SAP_VOICE.zip to a folder on the HTTP server.

  3. Create a new app_template folder to store the resource files.

    More information: Creating a Folder to Store the Resource Files

  4. Open the voice application in the Visual Composer.

  5. From the task-panel toolbar, choose Configure.

  6. Expand the Resource Target Defaults table.

  7. Enter an appropriate text in the Server URI and Context fields.

    For example,

    Enter <HTTP server name>:<port number> in the URI field.

    Enter <app_name>/1_0/deploy/prompts/8_8_ulaw_wav/en_us/chris directory in the Context field.