View the Database Contents

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

To return the contents of an AFP database

For example:

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

This action uses port 13000 to instruct IDOL Speech Server, which is located on the local machine, to write 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:

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).


_HP_HTML5_bannerTitle.htm