- Voice User Interface Projects
- Henry Lee
- 426字
- 2021-07-23 17:17:15
Empathy
When creating VUIs, you want to make the user feel as though they are talking to a real person. This develops empathy by making a connection with the user. First, empathy can be achieved by allowing the user to choose the voice they want to use. For example, in Google Assistant, the user can choose either a male or female voice by navigating to Settings | Preferences | Assistant voice, shown as follows:

A second way is to programmatically control the voice using Speech Synthesis Markup Language (SSML), https://www.w3.org/TR/speech-synthesis/, which has been developed to generate synthetic voices for websites and other applications. With SSML, the response to the user can be controlled. Both Amazon Alexa and Google Dialogflow platforms support the use of SSML. Here are the most commonly used SSML tags and their usages in brief:
- <break time="0.2s" />: Introduces a short pause between sentences.
- <emphasis level="strong">Come here now!</emphasis>: Create speech that increases in volume and slows down, or decreases in volume and speeds up.
- <prosody pitch="medium" rate="slow">great!!</prosody>: Used to customize the pitch, speech rate, and volume.
- <p> Some paragraph goes here </p>: Similar to adding a long break between paragraphs.
- <s> Some sentence goes here </s>: The equivalent of putting a period at the end to denote the end of the sentence in order to give a short pause.
- <say-as interpret-as="cardinal">123</say-as>: Indicates the type of text. For example, the cardinal number 123 will be read as one hundred and twenty three. As for the ordinal number 123, it will be read as first, second, and third.
Using SSML, let's create a speech that shows some excitement. You would not want the voice to be monotonous and boring. For example, sometimes you might want to show excitement, and to create such excitement, you can use prosody with a high pitch and slow rate, shown as follows. Also, when you emphasize the word love, you will be able to convey a sense of happiness. You can copy and paste the following SSML code at the Watson Text to Speech service interface, found at http://bit.ly/2AlAc9d. Enter the SSML and the voice will be played back:
<speak>
<p>
<s>
OK <prosody pitch="medium" rate="slow">great!!</prosody>
</s>
</p>
<break time="0.2s" />
<p>
<s>
I <emphasis level="strong">love</emphasis> to see you tomorrow!
</s>
</p>
</speak>
In order to test the SSML using http://bit.ly/2AlAc9d, it is best to use either the Firefox or Chrome browser.
- 深度實踐OpenStack:基于Python的OpenStack組件開發
- C語言程序設計(第3版)
- Servlet/JSP深入詳解
- Linux環境編程:從應用到內核
- 碼上行動:用ChatGPT學會Python編程
- Android開發:從0到1 (清華開發者書庫)
- 從零開始學Linux編程
- 西門子S7-200 SMART PLC編程從入門到實踐
- Programming with CodeIgniterMVC
- Python函數式編程(第2版)
- Wearable:Tech Projects with the Raspberry Pi Zero
- 用Go語言自制編譯器
- 陪孩子像搭積木一樣學編程:Python真好玩+Scratch趣味編程(全2冊)
- 編程改變生活:用PySide6/PyQt6創建GUI程序(進階篇·微課視頻版)
- Cocos2D權威指南