Skip to content

Commit a834f86

Browse files
committed
Add table for voice order of priority
1 parent ead41fb commit a834f86

File tree

1 file changed

+9
-0
lines changed
  • articles/ai-services/speech-service/includes/how-to/speech-synthesis

1 file changed

+9
-0
lines changed

articles/ai-services/speech-service/includes/how-to/speech-synthesis/python.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,15 @@ The voice that speaks is determined in order of priority as follows:
3636
- If both `SpeechSynthesisVoiceName` and `SpeechSynthesisLanguage` are set, the `SpeechSynthesisLanguage` setting is ignored. The voice that you specify by using `SpeechSynthesisVoiceName` speaks.
3737
- If the voice element is set by using [Speech Synthesis Markup Language (SSML)](../../../speech-synthesis-markup.md), the `SpeechSynthesisVoiceName` and `SpeechSynthesisLanguage` settings are ignored.
3838

39+
In summary, the order of priority can be described as:
40+
41+
| `SpeechSynthesisVoiceName` | `SpeechSynthesisLanguage` | SSML | Outcome |
42+
|:----------------------------:|:----------------------------:|:--------:|---------------------------------------------------------|
43+
|||| Default voice for `en-US` speaks |
44+
|||| Default voice for specified locale speaks. |
45+
|||| The voice that you specify by using `SpeechSynthesisVoiceName` speaks. |
46+
|||| The voice that you specify by using SSML speaks. |
47+
3948
## Synthesize speech to a file
4049

4150
Create a [SpeechSynthesizer](/python/api/azure-cognitiveservices-speech/azure.cognitiveservices.speech.speechsynthesizer) object. This object runs text to speech conversions and outputs to speakers, files, or other output streams. `SpeechSynthesizer` accepts as parameters:

0 commit comments

Comments
 (0)