AlexaDev Tuesday: Alexa Speechcons Make Her Slang Sound Natural

Did you know Amazon has created a pre-programmed library of audio clips for use in U.S. skills, with Alexa speaking slang words, phrases and interjections? This allows Alexa to sound more natural and speak with proper tone or emphasis when using expressions like, “bazinga,” “arrivederci,” “kaching,” and many more.

 

Stupid Slang

 

Amazon calls these audio snippets “speechcons”, and they’re pretty simple to drop into your code. From Amazon’s Alexa Skills Kit documentation:


Speechcons are special words and phrases that Alexa pronounces more expressively. You can include these exclamations in your skill’s text-to-speech using SSML.

To include a speechcon in your skill’s text-to-speech response, use the <say-as interpret-as=”interjection”> SSML tag:

<speak>
Here is an example of a speechcon.
<say-as interpret-as=”interjection”>Well well! Booyah.</say-as>
</speak>

Be sure include a pause between speechcons. You can use punctuation (such as a period or comma) or other SSML tags (for instance, <break> or <s>) for pauses.

 


This page lists all the currently supported speechcons, and includes playable audio clips of each one. For more about the SSML tag, see say-as.

 

* * *

If your data requires heavy-duty security, consider the Apricorn Aegis Padlock Fortress FIPS 140-2 Level 2 Validated 256-bit Encrypted USB 3.0 Hard Drive with PIN Access, 1 TB (Amazon UK customers click here). Aegis Padlock Fortress combines the highest level of data security, FIPS 140-2 Level 2 and the fastest USB 3.0 interface. Can be configured with independent Admin and User PINs. Featuring 256-bit AES-XTS hardware encryption, the Aegis Padlock Fortress seamlessly encrypts all data in real-time. Currently (as of 2/13/17) rated 4.5/5 stars and priced at $218.61.

Apricorn Aegis Secure Drive

Advertisements make it possible for Love My Echo to bring you great content for free, so thanks for your support.

* * *

 

Tags: , , , ,

Top