Skip to content

Commit 4c5e982

Browse files
Update personal-voice-how-to-use.md
1 parent 5b01a48 commit 4c5e982

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

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

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +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.
32-
33-
- For personal voice, if you want to switch languages, you need to 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).
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).
3432

35-
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-CN` using the `<lang xml:lang>` element.
3634

3735
```xml
3836
<speak version='1.0' xmlns='http://www.w3.org/2001/10/synthesis' xmlns:mstts='http://www.w3.org/2001/mstts' xml:lang='en-US'>
3937
<voice name='DragonLatestNeural'>
40-
<mstts:ttsembedding speakerProfileId='your speaker profile ID here'>
41-
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.
42-
</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-CN'>我很高兴听到你觉得我很了不起,我让你的旅行计划更轻松、更有趣。</lang>
41+
</mstts:ttsembedding>
4342
</voice>
44-
</speak>
43+
</speak>
4544
```
4645

4746
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)