VapMap Files

⌘K
  1. Home
  2. Programmable Voice
  3. VapMap Files

VapMap Files

VapMap files provide human readable directory information for a VAP file.

For more information, see VAP Files

VapMap files are Xml files

When you create a VapMap file, you provide the both keywords and indicies for your VAP file. The keywords provide the means for your application to access the appropriate segments in your VAP file.

For example, if you have a VAP file whose index entry #750 plays the phrase, “Please Press 1”, you can associate the textual phrase of “PleasePress1” to that index entry. Then, when you wish to play the phrase, you simply pass in the string, “PleasePress1” to the play function of the VoiceElements client.

In your custom VapMap file you would have the following entry:

<Item><Key><string>PleasePress1</string></Key><Value><string>750</string></Value></Item>

Voice Elements Play Commands

The standard VoiceElements play commands use the standard textual descriptions for various functions as PlayDate, PlayNumber, and so forth.

For example to the play number “1257.45”, the PlayNumber commmand relies on the VapMap entries of “1”, “2”, “5”, “7”, “POINT”, “4”, and “5”.

If your VapMap file has these entries and they are mapped to your VAP file correctly, you will be able to use the PlayNumber function in your application.

Standard EnglishVapMap

The VoiceElements client comes with a standard English VAP file and its associated VapMap. This is a basic VAP file that provides voice snippets for playing numbers, months, days, currency, etc.

The standard EnglishVapMap file has the following definitions:

0 to 99

<Item><Key><string>0</string></Key><Value><string>0</string></Value></Item> 
thru
<Item><Key><string>99</string></Key><Value><string>99</string></Value></Item> 

A to Z

<Item><Key><string>A</string></Key><Value><string>100</string></Value></Item> 
thru
<Item><Key><string>Z</string></Key><Value><string>125</string></Value></Item> 

January to December

<Item><Key><string>January</string></Key><Value><string>201</string></Value></Item> 
thru
<Item><Key><string>December</string></Key><Value><string>212</string></Value></Item> 

‘ths’

<Item><Key><string>Ith</string></Key><Value><string>298</string></Value></Item> 
<Item><Key><string>Thousanth</string></Key><Value><string>299</string></Value></Item> 
<Item><Key><string>Hundreth</string></Key><Value><string>300</string></Value></Item> 

1st to 99th

<Item><Key><string>1st</string></Key><Value><string>301</string></Value></Item> 
thru
<Item><Key><string>99th</string></Key><Value><string>399</string></Value></Item> 

Currency

<Item><Key><string>dollars</string></Key><Value><string>500</string></Value></Item> 
<Item><Key><string>dollars_and</string></Key><Value><string>501</string></Value></Item> 
<Item><Key><string>cents</string></Key><Value><string>502</string></Value></Item> 
<Item><Key><string>hundred</string></Key><Value><string>503</string></Value></Item> 
<Item><Key><string>thousand</string></Key><Value><string>504</string></Value></Item> 
<Item><Key><string>million</string></Key><Value><string>505</string></Value></Item> 
<Item><Key><string>percent</string></Key><Value><string>506</string></Value></Item> 
<Item><Key><string>dollar</string></Key><Value><string>507</string></Value></Item> 
<Item><Key><string>dollar_And</string></Key><Value><string>508</string></Value></Item> 
<Item><Key><string>cent</string></Key><Value><string>509</string></Value></Item> 
<Item><Key><string>zero_dollars</string></Key><Value><string>510</string></Value></Item> 

Time

<Item><Key><string>AM</string></Key><Value><string>511</string></Value></Item> 
<Item><Key><string>PM</string></Key><Value><string>512</string></Value></Item> 
<Item><Key><string>O_CLOCK</string></Key><Value><string>513</string></Value></Item> 
<Item><Key><string>POINT</string></Key><Value><string>514</string></Value></Item> 

Decimals

<Item><Key><string>Oh_One</string></Key><Value><string>521</string></Value></Item> 
<Item><Key><string>Oh_Two</string></Key><Value><string>522</string></Value></Item> 
<Item><Key><string>Oh_Three</string></Key><Value><string>523</string></Value></Item> 
<Item><Key><string>Oh_Four</string></Key><Value><string>524</string></Value></Item> 
<Item><Key><string>Oh_Five</string></Key><Value><string>525</string></Value></Item> 
<Item><Key><string>Oh_Six</string></Key><Value><string>526</string></Value></Item> 
<Item><Key><string>Oh_Seven</string></Key><Value><string>527</string></Value></Item> 
<Item><Key><string>Oh_Eight</string></Key><Value><string>528</string></Value></Item> 
<Item><Key><string>Oh_Nine</string></Key><Value><string>529</string></Value></Item>
Was this article helpful to you? No Yes 17

How can we help?