Support new SSML tags to speak as a fun style for Japan
On Jan 29, Amazon published a blog post about a new SSML tag for Japan.
New Fun Speaking Style for Japan
We can use the fun speaking style for Japanese Alexa Skill.
<amazon:domain name="fun">布団が、ふっとんだ。</amazon:domain>
And today, the @talkyjs/ssml
supports the new SSML tag.
Usage
We can use the tag as a amazon-domain
in the React JSX file.
import React, { FC } from 'react'
export const Fun: FC = () => (
<amazon-domain name="fun">布団が、ふっとんだ。</amazon-domain>
);
And we can render the component by using the function.
import { renderSSMLToString } from '@talkyjs/ssml';
const ssmlString = renderSSMLToString(<Fun />)
// '<amazon:domain name="fun">布団が、ふっとんだ。</amazon:domain>'
The feature is available in version 0.6.0
If you using it older, please upgrade it.