Using SSML to talk Multiple Languages by your Alexa Skill
Sometimes, we want to talk multiple languages content by your Alexa Skill.But if you using Amazon Polly voice, […]
Sometimes, we want to talk multiple languages content by your Alexa Skill.
But if you using Amazon Polly voice, there is a small difference between Alexa and Amazon Polly.
So the post is how to talk multiple languages content by using SSML without Amazon Polly.
目次
Tools
- SSML
- IPA(The International Phonetic Alphabet)
- Strong heart
How to
You can make a multiple languages content by SSML tag that name is “phoneme”.
The tag has the alphabet attributes and ph attributes.
- First, you should put the
ipa
string into the alphabet attributes. Then you can define the voice pronunciation by IPA.
Example
There is an example SSML markup.
The speaker will talk about the content in English, Japanese, and Spanish.
<speak>
<p>Hello!</p>
<p>In Japanese, <phoneme alphabet="ipa" ph="konnichiwa">こんにちは</phoneme></p>
<p>In Spanish, <phoneme alphabet="ipa" ph="/ˈo.la/">hola</phoneme></p>
</speak>
Example product
I have released a skill that using the tips.
The skill will tell us some Japanese Kanji in English.
Happy Coding !
ブックマークや限定記事(予定)など
WP Kyotoサポーター募集中
WordPressやフロントエンドアプリのホスティング、Algolia・AWSなどのサービス利用料を支援する「WP Kyotoサポーター」を募集しています。
月額または年額の有料プランを契約すると、ブックマーク機能などのサポーター限定機能がご利用いただけます。
14日間のトライアルも用意しておりますので、「このサイトよく見るな」という方はぜひご検討ください。