Skip to content

Commit 67e407d

Browse files
Merge pull request #277530 from sally-baolian/patch-252
Update personal-voice-how-to-use.md
2 parents 153329d + ea228ec commit 67e407d

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

articles/ai-services/speech-service/personal-voice-how-to-use.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,19 @@ You need to use [speech synthesis markup language (SSML)](./speech-synthesis-mar
2828
2929
- `DragonLatestNeural` is a base model with superior voice cloning similarity compared to `PhoenixLatestNeural`. `PhoenixLatestNeural` is a base model with more accurate pronunciation and lower latency than `DragonLatestNeural`.
3030

31-
- `Dragon` model doesn't support `<lang xml:lang>` element in SSML.
31+
- For personal voice, you can use the `<lang xml:lang>` element to adjust the speaking language. It's the same as with multilingual voices. See [how to use the lang element to speak different languages](speech-synthesis-markup-voice.md#lang-examples).
3232

33-
Here's example SSML in a request for text to speech with the voice name and the speaker profile ID.
33+
Here's example SSML in a request for text to speech with the voice name and the speaker profile ID. The sample also demonstrates how to switch languages from `en-US` to `zh-HK` using the `<lang xml:lang>` element.
3434

3535
```xml
3636
<speak version='1.0' xmlns='http://www.w3.org/2001/10/synthesis' xmlns:mstts='http://www.w3.org/2001/mstts' xml:lang='en-US'>
3737
<voice name='DragonLatestNeural'>
38-
<mstts:ttsembedding speakerProfileId='your speaker profile ID here'>
39-
I'm happy to hear that you find me amazing and that I have made your trip planning easier and more fun. 我很高兴听到你觉得我很了不起,我让你的旅行计划更轻松、更有趣。Je suis heureux d'apprendre que vous me trouvez incroyable et que j'ai rendu la planification de votre voyage plus facile et plus amusante.
40-
</mstts:ttsembedding>
38+
<mstts:ttsembedding speakerProfileId='your speaker profile ID here'>
39+
I'm happy to hear that you find me amazing and that I have made your trip planning easier and more fun.
40+
<lang xml:lang='zh-HK'>我很高興聽到你覺得我很了不起,我讓你的旅行計劃更輕鬆、更有趣。</lang>
41+
</mstts:ttsembedding>
4142
</voice>
42-
</speak>
43+
</speak>
4344
```
4445

4546
You can use the SSML via the [Speech SDK](./get-started-text-to-speech.md) or [REST API](rest-text-to-speech.md).

0 commit comments

Comments
 (0)