Skip to content

Commit 056050d

Browse files
committed
Add table for voice order of priority
1 parent 0ff43c0 commit 056050d

File tree

6 files changed

+40
-1
lines changed

6 files changed

+40
-1
lines changed

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

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

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

4553
Create a [SpeechSynthesizer](/cpp/cognitive-services/speech/speechsynthesizer) object. This object shown in the following snippets runs text to speech conversions and outputs to speakers, files, or other output streams. `SpeechSynthesizer` accepts as parameters:

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

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

44+
In summary, the order of priority can be described as:
45+
| `SpeechSynthesisVoiceName` | `SpeechSynthesisLanguage` | SSML | Outcome |
46+
|:----------------------------:|:----------------------------:|:--------:|---------------------------------------------------------|
47+
|||| Default voice for `en-US` speaks |
48+
|||| Default voice for specified locale speaks. |
49+
|||| The voice that you specify by using `SpeechSynthesisVoiceName` speaks. |
50+
|||| The voice that you specify by using SSML speaks. |
51+
4452
## Synthesize speech to a file
4553

4654
Create a [SpeechSynthesizer](/dotnet/api/microsoft.cognitiveservices.speech.speechsynthesizer) object. This object shown in the following snippets runs text to speech conversions and outputs to speakers, files, or other output streams. `SpeechSynthesizer` accepts as parameters:

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,14 @@ The voice that speaks is determined in order of priority as follows:
309309
- If you only set `SpeechSynthesisLanguage`, the default voice for the specified locale speaks.
310310
- If both `SpeechSynthesisVoiceName` and `SpeechSynthesisLanguage` are set, the `SpeechSynthesisLanguage` setting is ignored. The voice that you specify by using `SpeechSynthesisVoiceName` speaks.
311311
- If the voice element is set by using [Speech Synthesis Markup Language (SSML)](../../../speech-synthesis-markup.md), the `SpeechSynthesisVoiceName` and `SpeechSynthesisLanguage` settings are ignored.
312+
-
313+
In summary, the order of priority can be described as:
314+
| `SpeechSynthesisVoiceName` | `SpeechSynthesisLanguage` | SSML | Outcome |
315+
|:----------------------------:|:----------------------------:|:--------:|---------------------------------------------------------|
316+
|||| Default voice for `en-US` speaks |
317+
|||| Default voice for specified locale speaks. |
318+
|||| The voice that you specify by using `SpeechSynthesisVoiceName` speaks. |
319+
|||| The voice that you specify by using SSML speaks. |
312320

313321
## Use SSML to customize speech characteristics
314322

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

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

44+
In summary, the order of priority can be described as:
45+
| `SpeechSynthesisVoiceName` | `SpeechSynthesisLanguage` | SSML | Outcome |
46+
|:----------------------------:|:----------------------------:|:--------:|---------------------------------------------------------|
47+
|||| Default voice for `en-US` speaks |
48+
|||| Default voice for specified locale speaks. |
49+
|||| The voice that you specify by using `SpeechSynthesisVoiceName` speaks. |
50+
|||| The voice that you specify by using SSML speaks. |
51+
4452
## Synthesize speech to a file
4553

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

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

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

45+
In summary, the order of priority can be described as:
46+
| `SpeechSynthesisVoiceName` | `SpeechSynthesisLanguage` | SSML | Outcome |
47+
|:----------------------------:|:----------------------------:|:--------:|---------------------------------------------------------|
48+
|||| Default voice for `en-US` speaks |
49+
|||| Default voice for specified locale speaks. |
50+
|||| The voice that you specify by using `SpeechSynthesisVoiceName` speaks. |
51+
|||| The voice that you specify by using SSML speaks. |
52+
4553
## Synthesize text to speech
4654

4755
# [browserjs](#tab/browserjs)

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ The voice that speaks is determined in order of priority as follows:
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

3939
In summary, the order of priority can be described as:
40-
4140
| `SpeechSynthesisVoiceName` | `SpeechSynthesisLanguage` | SSML | Outcome |
4241
|:----------------------------:|:----------------------------:|:--------:|---------------------------------------------------------|
4342
|||| Default voice for `en-US` speaks |

0 commit comments

Comments
 (0)