Open topic with navigation

# View the Database Contents

You can return a list of all tracks in an AFP database.

To return the contents of an AFP database

- Send an `AddTask` action to IDOL Speech Server, and set the following parameters:

  `Type` | The task type. Set to `AfpDatabaseInfo`.
  `Out` | The log file to write the database contents to.

  To view the contents of a database that is defined in the IDOL Speech Server tasks configuration file, you must set the `AfpDb` parameter. If the database is not defined, set both the `Pack` and `PackDir` parameters instead.

  `AfpDb` | The name of a database that is defined in the tasks configuration file.
  `Pack` | The name of a database that is not defined in the tasks configuration file.
  `PackDir` | The path to the directory that contains the database files.

For example:

    http://localhost:15000/action=AddTask&Type=AfpDatabaseInfo&Pack=Adverts&PackDir=C:\resources&Out=AdvertsDb.ctm

This action writes the contents of the `Adverts` database to the `AdvertsDb.ctm` file.

NOTE:

By default, the `AfpDatabaseInfo` task returns details for all AFP databases. You can restrict it to standard or template (robust) databases by using the `AFPMode` parameter. For more information, refer to the IDOL Speech Server Reference.

This action returns a token. You can use the token to:

- Check the task status. See Check the Status of a Task.
- Retrieve the database contents file. See Find Recommended Language Resources to Use in a Task.

The following XML is an example of a database information log file:

    <afpdb_info>
       <afp_standard_mode>
          <ntracks>1</ntracks>
          <total_length>1896</total_length>
          <afpdb_track_record>
             <id>0</id>
             <tag>MyAdvert1</tag>
             <start>0</start>
             <length>1896</length>
             <features>76</features>
             <feature_rate>0.040</feature_rate>
          </afpdb_track_record>
       </afp_standard_mode>
       <afp_robust_mode>
          <ntracks>1</ntracks>
          <total_length>1920</total_length>
          <afpdb_track_record>
             <id>0</id>
             <tag>MyAdvert1</tag>
             <start>0</start>
             <length>1920</length>
             <features>88</features>
             <feature_rate>0.046</feature_rate>
          </afpdb_track_record>
          <afpdb_track_record>
             <id>1</id>
             <tag>MyAdvert2</tag>
             <start>0</start>
             <length>1452</length>
             <features>71</features>
             <feature_rate>0.049</feature_rate>
          </afpdb_track_record>
       </afp_robust_mode>
    </afpdb_info>

This example shows that the database contains three tracks: `MyAdvert1` (which uses the standard AFP mode), and `MyAdvert2` and `MyAdvert2` (which both use the template AFP mode).

It displays the length of each track (in frames, where 1 frame is 10 milliseconds). It also displays the start point of the track with respect to the original audio that was indexed. This value is usually 0. However, if the audio that was indexed was longer than four minutes, it is stored in several four-minute chunks.

NOTE:

If you attempt to delete a clip that has been split into chunks, all the chunks are deleted (all share the same tag).

© 2015-2018 EntIT Software LLC, a Micro Focus company | Send documentation feedback to Micro Focus Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm