> For the complete documentation index, see [llms.txt](https://docs.borndigital.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.borndigital.ai/for-advanced-users/conversation-design-tips/customizing-speech-synthesis/writing-for-voice.md).

# Writing for voice

How to write texts that sound good when synthesized: sentence structure, questions and their wording.

Copywriting for your digital assistant should be **simple and straightforward** to make it easy for users to understand. It is essential to use clear and understandable questions that help the customer formulate their answers. If possible, it is helpful to use the same **natural language and words, phrasing, and lexicon that are commonly used in everyday life**. This will make it easier to communicate with the voicebot.

## Keynotes

<table data-card-size="large" data-view="cards"><thead><tr><th></th></tr></thead><tbody><tr><td>In the case of voicebot, you <mark style="color:red;"><strong>do not have to</strong></mark> <strong>stick to spelling and grammar</strong> as in other types of communication. Of course, spelling and grammar are still important and have a very strong influence on synthesis quality.</td></tr><tr><td>However in some cases, <strong>grammatically, orthographically and typologically correct text</strong> can lead to a <strong>result that is </strong><mark style="color:red;"><strong>not pleasant</strong></mark><strong> to listen to</strong>, negatively affecting intonation and spoiling the quality of the synthesis.</td></tr><tr><td>Therefore, work consciously with this characteristic of the synthetic voice and <strong>make "mistakes" on purpose.</strong><br>E.g., deleting or adding commas in a sentence, can significantly improve to the quality of the synthesis.</td></tr><tr><td><strong>Deliberately using the wrong spelling</strong> can also have its advantages and, in some cases, <strong>improves the pronunciation</strong> of certain words or phrases.</td></tr></tbody></table>

## Copywriting structure

### Sentence structure

The two basic components of a sentence are **topic** (téma) **and comment** (rhéma). The topic is the word or group of words that determine what the sentence is about, while the rheme is part of the sentence that follows and completes the topic. For example, in the sentence *"My dog's name is Max"*, the topic is *"My dog*" and the rheme is *"is named Max"*. Topic and rheme are important for proper sentence construction and are essential for understanding meaning.

{% hint style="info" %}
The flexibility in word order is a distinctive feature of Slavic languages, particularly Czech and Slovak, due to their rich inflectional systems.
{% endhint %}

<details>

<summary>Order of words is important in SK, CZ language</summary>

Changing the word order in a sentence can affect what information we consider important:

```
CZ:
Petr přišel pozdě do školy. 
     # Important = exactly where (to school, not to date) 
Petr do školy přišel pozdě. 
     # Important = exactly when (late, not on time)
Do školy přišel pozdě Petr. 
     # Important = exactly who (Petr, not Pavel)
```

Changing the word order can therefore affect which information is emphasised.

{% code overflow="wrap" %}

```
CZ:
Klient si může zvolit, zda chce spořit na účtu nebo investovat do podílových fondů. 
Zda chce spořit na účtu nebo investovat do podílových fondů, si může klient zvolit. 

Prosím, pečlivě si pročtěte obchodní podmínky. 
Obchodní podmínky si prosím pročtěte pečlivě. 

Pravděpodobně jste se stali terčem podvodníka. Ihned musíme zablokovat platební kartu. 
Pravděpodobně jste se stali terčem podvodníka. Platební kartu musíme zablokovat ihned.`


---------

SK:
Klient si môže zvoliť, či chce sporiť na účte alebo investovať do podielových fondov. 
Či chce sporiť na účte alebo investovať do podilových fondov, si klient môže sám zvoliť. 

Prosím, pozorne si prečítajte podmienky. 
Obchodné podmienky si prosím prečítajte pozorne. 
 
Pravdepodobne ste sa stali terčom podvodníka. Musíme okamžite zablokovať vašu kreditnú kartu. 
Pravdepodobne ste sa stali terčom podvodníka. Musíme vašu kreditnú kartu zablokovať okamžite. 
```

{% endcode %}

</details>

{% hint style="warning" %}
In English, German, or other languages word order is usually set, but that does mean that we cannot use this principle to our advantage as well. In English, this principle is reversed, the more important information is put in front:
{% endhint %}

<details>

<summary>English comparission with SK, CZ language on examples</summary>

{% code overflow="wrap" fullWidth="true" %}

```
I saw a lion at the zoo yesterday.          # Important = it was a lion
Yesterday, I saw a lion at the zoo.         # Important = it was yesterday


I can only play the piano.   # Of all instruments, I play only piano (not guitar, not flute)
I only can play the piano.   # Playing piano is my only skill (not dancing, not singing)
```

{% endcode %}

{% code overflow="wrap" fullWidth="true" %}

```
CZ:
Novou kartu vám můžeme poslat poštou, případně kurýrem. Také si ji můžete vyzvednout na pobočce. Kterou variantu preferujete?”`
SK:
“Novú kartu vám môžeme poslať poštou alebo kuriérom. Môžete si ju tiež vyzdvihnúť na pobočke. Ktorú možnosť uprednostňujete?”
EN:
"We can send you a new card by post or courier. You can also pick it up at a branch. Which option of these two options do you prefer?"
```

{% endcode %}

\
\
You can also use sentences that require a multiple-choice answer, such as *"Which of the options do you wish to choose: A or B?".* Alternatively, we recommend accompanying both options with a verb so that each option is its own sentence and it is clear that these are choices, for example, "Do you want A or do you need B?\
\
\
Another strategy is to first inform the customer of the options and then ask them to choose.

{% code overflow="wrap" fullWidth="true" %}

```
CZ:
Vyberte si, zda se chcete přihlásit pomocí e-mailu, nebo pomocí Facebooku.
Řekněte mi, zda chcete zaslat fakturu na e-mail, nebo zda ji máme poslat poštou.
Potřebuji nejdřív vědět, zda již u nás máte účet, nebo ho teprve chcete založit. 

SK:
Vyberte si, či sa chcete prihlásiť cez e-mail alebo pomocou Facebooku”
“Povedzte mi, či chcete faktúru poslať e-mailom alebo či ju máme poslať poštou”,
“Najprv potrebujem vedieť, či už u nás máte účet, alebo si ho práve chcete otvoriť.”. 

EN:
"Choose whether you want to sign in via email or Facebook"
"Tell me if you want us to send you an invoice via email or whether you prefer to receive it as a paper letter"
"First, I need to know if you already have an account with us or if you just want to open one".
```

{% endcode %}

However, the number of unwanted answers can be reduced by appropriate copywriting with more **distinctive intonation** (see intonation) and emphasis on the individual options.\
One way to write a question that requires multiple choice is to use clear and specific terms that clearly identify each option. For example, instead of asking "Do you want A or B?" you can try something along the lines of:

In **spoken language**, however, this difference in meaning is unclear in both languages as well as several others (**English, German, French** etc.), and it happens that customers do not understand the question at the first attempt and answer yes/no instead of choosing from the options. It is therefore necessary to take this into account when designing the conversation and prepare the scenario for such situations.

In **Slovak**, a similar rule does not apply for or, the writing of commas is governed by different rules.

{% code overflow="wrap" fullWidth="true" %}

```
Example 1.
Yes/no question. We're asking if they're interested in a drink at all. The expected answer is yes/no.

Do you want (A or B)? 
Dáš si kávu nebo čaj?
Do you want (coffee or tea)?
```

{% endcode %}

{% code overflow="wrap" %}

```
Example 2.
We'll serve you either coffee or tea. Choose one of the two. We expect a response of "coffee, please" or "tea with honey, thanks".

Do you want A, or B? 
Dáš si kávu, nebo čaj?
Do you want (coffee) or do you want (tea)?
```

{% endcode %}

In **Czech**, we distinguish grammatically by a comma between two mutually exclusive choices. In this case, the comma is meaning-forming.

</details>

***

## Multiple choice question

{% code overflow="wrap" %}

```
CZ: 
Voláte kvůli své objednávce, případně dříve zakoupeného výrobku? Stačí mi jednoduchá odpověď ano nebo ne.
Zboží můžete vrátit na prodejně, kurýrem nebo přes zásilkovnu. Kterou z těchto možností zvolíte?

EN:
Are you calling to unblock your account? Please answer with yes or no.
```

{% endcode %}

{% hint style="info" %}
**TIP!** In the beginning, before customers get used to the new technology, it is a good idea to provide short instructions on how to interact with the voicebot to avoid confusion and the tendency to press buttons like with IVR.
{% endhint %}

<details>

<summary>Wrong practice examples:</summary>

* **We don't want to make the user talk over the digital assistant!** On the contrary, we want the user's answer to be as concise and clear as possible, and thus easily and reliably recognizable by the voicebot. It is therefore a good idea to make sure that each chatbot text contains only one clear and understandable question.
* Having two questions in one text also makes it **difficult to adjust the synthesis,** as the **question mark is naturally followed by a longer pause** before the start of the next sentence, which is not correctable by the SSML breaktime tag.\
  From the user's perspective, it looks as if the voicebot has already finished, the **user starts to answer and jumps in to talk over** the robot.
* It is important to **make sure that one voicebot's message does not contain two questions at the same time**, as this can cause confusion and complicate understanding between the bot and the user.\
  When multiple questions are included in the output message, it can **confuse** the user. They may not know which question to focus on or what the correct answer is.\
  This can cause the user to feel frustrated which can reduce communication effectiveness and make the user experience less enjoyable.

</details>

***

## Multiple questions in a single message

* If you ask the question at the end of the speech, the customer has already heard all the relevant information and is ready to respond.
* In general, people are more likely to retain the freshest information in their memory, i.e. the information they heard last (see theme).
* This will increase the likelihood that the customer will respond concisely and appropriately, and the voicebot will recognize everything correctly and provide the most complete answer to the customer's query.
* The question asked will indicate to the customer that it is time for him to start talking.

Supporting argument for positioning question at the end of the speech:

{% tabs %}
{% tab title="Good practice examples:" %}
{% code overflow="wrap" %}

```
CZ:
Chtěl bych vám nabídnout konzultaci s naším expertem. Ozve se Vám a zdarma Vám provede kalkulaci toho nejvýhodnějšího pojištění. Máte zájem? 

Rádi bychom Vám poskytli konzultaci zdarma. Ozve se Vám náš expert s kalkulací, které pojištění by pro Vás bylo nejvhodnější. Souhlasíte?
```

{% endcode %}
{% endtab %}

{% tab title="Bad practice examples:" %}
{% code overflow="wrap" %}

```
CZ:
Máte zájem o poskytnutí konzultace? Ozval by se Vám náš expert, který zdarma provede kalkulaci nejvýhodnějšího pojištění Vám na míru.
```

{% endcode %}
{% endtab %}
{% endtabs %}

Rather, the solution is built on alternating between periods when the voicebot is speaking and not listening (running text-to-speech synthesis) and when the voicebot is silent, listening and evaluating the transcript of the response (running speech-to-text transcription). **If the customer speaks without the voicebot finishing speaking, speech-to-speech transcription does not run** and part of the response is lost, which can lead to misrecognition of intent.

It's better if the text of the voicebot contains the question **at the end of the speech.** This will help to prevent the customer from jumping into the voicebot's speech. By default, the customer cannot interrupt the voicebot. You can allow it per Answer node with **Interrupt anytime** or **Speech interrupt buffer (ms)**, see [Answer node → Configuration](https://docs.borndigital.ai/digital-agent/conversation-flow/nodes-explained/answer-node.md#timing).

{% hint style="info" %}
Remember that achieving natural and expressive intonation in TTS systems can be challenging, as it requires capturing the nuances of human speech. It may take some **experimentation and refinement** to achieve the **desired results.**
{% endhint %}

***

## Position of the question in digital assistant's message

```
CZ:
Zkusíme to znovu? 
Vyplnil jste všechny údaje správně?
Přejete si reklamaci řešit raději písemnou cestou?
```

A question should never be phrased negatively. This is because people are generally more willing to accept positive information and ideas than vice versa. Phrasing the question negatively can reduce the likelihood that the voicebot will correctly understand the customer's answer.

```
CZ:
Nechcete to zkusit znovu?      
Neudělali jste chybu? 
Jste si jistý, že jste neudělal chybu?
Nepřejete si reklamaci raději řešit písemnou cestou? 

SK:
Nechcete to skúsiť znova?   
Neurobili ste chybu?  
Nechceli by ste svoju sťažnosť riešiť radšej písomne?

EN:
Won't you try again?
Don't you want to deal with reclamation via e-mail?
```

What would answer *yes* (*ano/áno*) mean in this case? *Yes, I want* or *Yes, I indeed don't want to?* This situational context cannot be discerned with 100% confidence, so we recommend phrasing questions positively or neutrally.

**Question wording is a key** element of the voicebot scenario. The wording of the question influences the phrasing of customer's answer, and therefore the intent that must be trained for the virtual assistant to recognize the answer.

### Question formulation

Based on the length of the sentence sometimes the quality of the synthesis can be quite fluctuating, appearing artificial and not very natural. In such cases, it is useful to shorten the copywriting or add or edit some words to the text to make the voice synthesis sound better. This approach can help create a more natural and beautiful voice synthesis without the need for complicated settings or SSML tags.

<details>

<summary><mark style="color:green;"><strong>10 Copywriting tips for your digital assistant with speech synthesis</strong></mark></summary>

1. The copywriting must be snappy, clear, and understandable.
2. Speak the language of your customers. Use terms and slang they understand.
3. Never phrase questions negatively.
4. 1 message node = 1 question maximum.
5. The ideal placement of the question is at the end of the message.
6. Never ask two different things with one question.
7. For multiple-choice questions, make sure to clearly differentiate the options. If appropriate, rephrase to an announcement sentence and inform the customer that they have to choose and list options.
8. Spelling and grammatical correctness in *Speech* is secondary. However, make errors consciously so that they benefit the quality of the synthesis.
9. Avoid foreign language expressions whenever possible. Alternatively, we write them in such a way that they can be read alphabetically
10. Special characters and cases that are to be read aloud are broken down with words.

</details>

***
