Skip to content

Commit 1610cf9

Browse files
authored
Merge pull request #284665 from solarrezaei11/solarworkingbranch
Add table for voice order of priority
2 parents 769b073 + 74dc69b commit 1610cf9

File tree

7 files changed

+19
-8
lines changed

7 files changed

+19
-8
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ 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+
[!INCLUDE [Voice Priority Summary](voice-priority.md)]
44+
4345
## Synthesize speech to a file
4446

4547
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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ 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+
[!INCLUDE [Voice Priority Summary](voice-priority.md)]
45+
4446
## Synthesize speech to a file
4547

4648
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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,8 @@ The voice that speaks is determined in order of priority as follows:
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.
312312

313+
[!INCLUDE [Voice Priority Summary](voice-priority.md)]
314+
313315
## Use SSML to customize speech characteristics
314316

315317
You can use Speech Synthesis Markup Language (SSML) to fine-tune the pitch, pronunciation, speaking rate, volume, and more in the text to speech output by submitting your requests from an XML schema. This section shows an example of changing the voice. For more information, see [Speech Synthesis Markup Language overview](../../../speech-synthesis-markup.md).

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ 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+
[!INCLUDE [Voice Priority Summary](voice-priority.md)]
45+
4446
## Synthesize speech to a file
4547

4648
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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ 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+
[!INCLUDE [Voice Priority Summary](voice-priority.md)]
46+
4547
## Synthesize text to speech
4648

4749
# [browserjs](#tab/browserjs)

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

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,7 @@ 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. |
39+
[!INCLUDE [Voice Priority Summary](voice-priority.md)]
4740

4841
## Synthesize speech to a file
4942

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
In summary, the order of priority can be described as:
2+
3+
| `SpeechSynthesisVoiceName` | `SpeechSynthesisLanguage` | SSML | Outcome |
4+
|:----------------------------:|:----------------------------:|:--------:|---------------------------------------------------------|
5+
|||| Default voice for `en-US` speaks |
6+
|||| Default voice for specified locale speaks. |
7+
|||| The voice that you specify by using `SpeechSynthesisVoiceName` speaks. |
8+
|||| The voice that you specify by using SSML speaks. |

0 commit comments

Comments
 (0)