Dictionaries
Dictionaries map words, numbers, and phrases to audio files. They enable dynamic content playback—reading phone numbers, dates, currency amounts, and custom vocabulary during calls.
How dictionaries work
Instead of pre-recording every possible message, you:
Record individual words or number sounds
Organize them in a dictionary
Reference the dictionary in your flows
Gomobile assembles the audio dynamically
For example, to say "Your balance is 1,523 dirhams":
Play "Your balance is" (pre-recorded)
Play "1523" (assembled from dictionary: "one", "thousand", "five", "hundred", "twenty", "three")
Play "dirhams" (from dictionary)
System dictionaries
Gomobile provides built-in dictionaries for common use cases:
Arabic (ar)
Numbers, common words
French (fr)
Numbers, common words
System dictionaries include:
Digits (0-9)
Tens (10, 20, 30...)
Hundreds (100, 200...)
Thousands and millions
Common connectors ("and", "point")
Creating a custom dictionary
For custom vocabulary, create your own dictionary:
Response:
Adding entries
Add audio entries to your dictionary:
Common keys for a payment dictionary:
dirham/dirhamspayment/paymentsdue/overduebalancetotal
Using dictionaries in flows
Reference dictionaries in Play nodes:
Number playback
Setting dictionaryId to null uses the system dictionary. Specify a custom dictionary ID for custom pronunciations.
Number modes:
full
"one thousand two hundred thirty four"
Natural speech
twoByTwo
"twelve, thirty-four"
Digit pairs
Date playback
Date modes:
dayMonthYear
"fifteen January two thousand twenty-five"
monthAsWord
"January fifteenth, two thousand twenty-five"
Word playback
Or with dynamic values:
Listing dictionaries
View all dictionaries:
Returns both system and custom dictionaries.
Getting dictionary entries
Look up a specific entry:
Response:
Removing entries
Delete an entry:
Deleting dictionaries
Remove a custom dictionary:
You can't delete system dictionaries.
Admin: System dictionary entries
Staff users can add entries to system dictionaries:
Recording tips for dictionaries
Consistent voice - Use the same voice talent for all entries
Neutral intonation - Avoid rising or falling tones that imply sentence endings
Clean starts and ends - Trim silence from recordings
Test combinations - Listen to how entries sound together
Consider context - Numbers may need different pronunciations in different contexts
Language support
Currently supported:
ar
Arabic
fr
French
Additional languages can be added via custom dictionaries with appropriate audio.
Best practices
Start with system dictionaries - They cover most number needs
Custom dictionaries for domain terms - Industry-specific vocabulary
Organize by purpose - Separate dictionaries for different use cases
Document your keys - Keep a reference of what each key means
Test thoroughly - Listen to dynamic playback with real data
Related topics
Audio Management - Managing audio files
Call Flows - Using dictionaries in flows
Last updated

