LogoLogo
  • 👋START HERE
    • Welcome!
  • ℹ️General
    • Release Notes
      • Full Feature Base Template
      • Services
      • Rule-based Automation
        • February 2025
        • January 2025
        • December 2024
        • November 2024
        • October 2024
        • September 2024
        • August 2024
        • July 2024
        • June 2024
        • May 2024
        • April 2024
        • March 2024
        • February 2024
        • January 2024
        • 2023
        • 2022
        • 2021
        • Dialog Design Update
    • Glossary of Terms
    • Authentication Methods
      • SSO (Single Sign-On)
      • Built-In User Management
    • Acceptable Use Policy
  • ⚙️Rule-based Automation
    • Overview
      • Account Settings
        • Profile
        • Team
        • Roles and Permissions
          • User Management
          • Project Permissions
      • Basic Concepts
        • Project Management
        • Version Management
        • Multi-Lingual Bots
          • Supported Languages
        • Managing User Interactions
          • Unexpected User Input
          • No User Input
    • Dialog Interface
      • Blocks
        • Conversation Logic
          • Start Conversation
          • Global
          • State
          • Intermediate Response
          • To Previous State
          • End Conversation
        • Subdialog
          • Reusable Subdialogs
        • Phone
          • Continue Listening
          • Call Control
        • Technical Logic
          • Service
          • Condition
          • Storage
        • Other
          • Note
      • Speech Assets
        • Intents
          • Utterances
          • Descriptions
        • Slots
          • Custom Slots
            • List Slots
            • Machine Learning Slots
            • Regex Slots
            • LLM Slots
          • Prebuilt Slots
            • DTMF Slot
        • Text Snippets
        • Dictionary
      • Variables
        • Intents
        • Slots
        • Storage
        • Text Snippets
        • Environments
        • Platform
        • Context
      • Services
        • Service Integration Guide
        • Service Development
        • Service Branches and Error Handling
        • Public Services
          • Date and Birthdate Recognition
          • Spelling Post-Processing for Phone
          • IBAN Validation
          • License Plate Validation
          • Address Search
          • Street Names per Postal Code
          • Email Service
          • SMS Service
          • API Adapter
          • Salesforce-Flow Connector
          • Opening Hours
          • Speech-to-Text Hints
          • Fuzzy Match Names
          • Delay Service
      • Debugger
        • Phone 2
        • WhatsApp
        • Textchat 2
    • Environments Interface
      • Service Keys
    • Deployments Interface
      • Creating a Release
      • Editing a Release
    • Text-to-Speech
      • Azure
      • ElevenLabs
      • OpenAI via Azure (Preview)
      • SSML
        • Audio
        • Break
        • Emphasis
        • Prosody
        • Say-as
        • Substitute
        • Paragraph and Sentence
        • Voice
    • Autocomplete
    • Parloa APIs
      • CallData Service and API
      • Conversation History API
      • Textchat V2 API
    • Phone Integrations
      • Genesys Cloud
        • Setting up the SIP Trunk
        • Sending/Receiving UUI Data
        • Creating a Script to Display UUI
      • SIP
      • Tenios
        • Setting Up an Inbound Connection
        • Setting Up an Outbound Connection
        • Transferring a Call
      • Twilio
      • Public IPs and Port Information
    • AI Integration Overview
      • Dual Intent Recognizer (DIR)
      • Dual Tone Multifrequency (DTMF) Intent
    • Analytics and Debugging
      • Understanding Conversations and Transactions
      • Managing Caller ID Data
      • Hangup Events and Triggered Analytics
      • Analytics Transactions: Data Structure and Insights
      • Dialog Analytics
      • Audit Logs
      • Parloa-hosted Analytics
    • Data Privacy
      • Anonymizing Personally Identifiable Information
    • NLU Training
      • NLU Training Best Practices
    • How To
      • Create a Scalable and Maintainable Bot Architecture
      • Implement OnError Loop Handling
      • Resolve the 'Service Unavailable' Error
    • Reference
      • Parloa Keyboard Shortcuts
      • Frequently Asked Questions (FAQ)
      • JavaScript Cheat Sheet
        • Using Regular Expressions (Regex)
  • 🧠Knowledge Skill
    • Introduction
    • Knowledge Collections
    • Knowledge Sources
    • Knowledge Skill Setup
      • Step 1 – Create a Knowledge Skill Agent
      • Step 2 – Configure a Knowledge Skill Agent
      • Step 3 – Configure a Knowledge Skill Agent
Powered by GitBook
On this page
  • Attributes of the Say-as Tag
  • Pronouncing Dates Correctly

Was this helpful?

Export as PDF
  1. Rule-based Automation
  2. Text-to-Speech
  3. SSML

Say-as

PreviousProsodyNextSubstitute

Last updated 1 year ago

Was this helpful?

The <say-as> tag enables you to control the pronunciation of text, ensuring accurate and natural-sounding responses. This tag is particularly useful when you want to correctly pronounce dates or other specialized text formats.

Attributes of the Say-as Tag

  • Interpret-as – Specifies how the text should be interpreted:

    • characters: Pronounces each character individually (for example, "N-A-S-A").

    • cardinal: Pronounces text as a cardinal number, for example, "101" as "one hundred and one".

    • date: Pronounces text as a date, for example, "2023-10-18" as "October eighteenth, twenty twenty-three".

    • digits: Pronounces each digit individually, for example, "101" as "one zero one".

    • expletive: Indicates text contains profanity or offensive language.

    • fraction: Pronounces text as a fraction, for example, "3/4" as "three fourths".

    • letter: Pronounces text as a letter, for example, "a" as "ay".

    • ordinal: Pronounces text as an ordinal number, for example, "1st" as "first."

    • spell-out: Spells out the text, for example, "hello" as "h-e-l-l-o".

    • telephone: Indicates text is a telephone number, for example, "800-555-1234" as "eight hundred, five five five, one two three four".

    • time: Pronounces text as a time, for example, "10:00" as "ten o'clock".

    • unit: Pronounces text as a unit of measurement, for example, "10km" as "ten kilometers".

  • Format (optinal): Specifies the text format, such as "mdy" for month-day-year, to aid in correct pronunciation. It is optional for some interpretations like digits but highly recommended for date.

Pronouncing Dates Correctly

It's essential to use the <say-as> tag for dates. For example, to pronounce "July 4th, 2024" in a natural-sounding American English accent, your SSML code should look like this:

<speak>
  Your appointment is on <say-as interpret-as="date" format="mdy">07-04-2024</say-as>.
</speak>

Considerations for Non-English Pronunciations

When dealing with languages that have different grammatical structures, such as German, it's critical to include prepositions within the <say-as> tag for proper pronunciation. Here's how you can do it:

  • Incorrect: The bot will mispronounce the date because the preposition "am" is outside the <say-as> tag.

    xmlCopy code<speak>
      Dein Paket kommt am <say-as interpret-as="date">23-11-2023</say-as>.
    </speak>
  • Correct: By including "am" inside the tag, the bot will correctly pronounce the date within the sentence.

    xmlCopy code<speak>
      Dein Paket kommt <say-as interpret-as="date">am 23-11-2023</say-as>.
    </speak>

This correct structure ensures that the synthesized speech flows naturally and is grammatically accurate in German.

⚙️