Skip to content

top_level_domain

This directory provides voice command functionality for inserting common Top-Level Domains (TLDs) like .com, .org, and .edu. It utilizes Talon's list declaration and mapping features to translate spoken phrases into their respective domain formats.

How It Works

The functionality is split across three key files that define, populate, and bind the voice commands:

  • Declaration: top_level_domain.py defines the list structure within Talon. It instantiates a Module and registers a list named top_level_domain to hold the domain voice mappings.
  • Data Source: top_level_domain.talon-list populates the user.top_level_domain list with key-value pairs. It maps natural spoken phrases (such as "dot co dot UK" or "dot education") to their exact written representations (like .co.uk and .edu).
  • Execution: top_level_domain.talon defines the voice command rule itself. When a user speaks any phrase defined in the TLD list, the corresponding text output is automatically inserted.