Skip to content

Commit 1bcc218

Browse files
committed
rest by platform
1 parent 4b0b623 commit 1bcc218

File tree

2 files changed

+22
-22
lines changed
  • articles/cognitive-services/Speech-Service/includes/quickstarts

2 files changed

+22
-22
lines changed

articles/cognitive-services/Speech-Service/includes/quickstarts/speech-to-text-basics/rest.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,19 @@ At a command prompt, run the following cURL command. Replace `YourAudioFile.wav`
2626

2727
**Choose your target environment**
2828

29-
# [Linux](#tab/linux)
29+
# [Windows](#tab/windows)
3030

3131
```terminal
3232
audio_file=@'YourAudioFile.wav'
3333
3434
curl --location --request POST \
35-
"https://${SPEECH_REGION}.stt.speech.microsoft.com/speech/recognition/conversation/cognitiveservices/v1?language=en-US" ^
36-
--header "Ocp-Apim-Subscription-Key: ${SPEECH_KEY}" ^
37-
--header "Content-Type: audio/wav" ^
35+
"https://${SPEECH_REGION}.stt.speech.microsoft.com/speech/recognition/conversation/cognitiveservices/v1?language=en-US" \
36+
--header "Ocp-Apim-Subscription-Key: ${SPEECH_KEY}" \
37+
--header "Content-Type: audio/wav" \
3838
--data-binary $audio_file
3939
```
4040

41-
# [macOS](#tab/macos)
41+
# [Linux](#tab/linux)
4242

4343
```terminal
4444
audio_file=@'YourAudioFile.wav'
@@ -50,15 +50,15 @@ curl --location --request POST \
5050
--data-binary $audio_file
5151
```
5252

53-
# [Windows](#tab/windows)
53+
# [macOS](#tab/macos)
5454

5555
```terminal
5656
audio_file=@'YourAudioFile.wav'
5757
5858
curl --location --request POST \
59-
"https://${SPEECH_REGION}.stt.speech.microsoft.com/speech/recognition/conversation/cognitiveservices/v1?language=en-US" \
60-
--header "Ocp-Apim-Subscription-Key: ${SPEECH_KEY}" \
61-
--header "Content-Type: audio/wav" \
59+
"https://${SPEECH_REGION}.stt.speech.microsoft.com/speech/recognition/conversation/cognitiveservices/v1?language=en-US" ^
60+
--header "Ocp-Apim-Subscription-Key: ${SPEECH_KEY}" ^
61+
--header "Content-Type: audio/wav" ^
6262
--data-binary $audio_file
6363
```
6464

articles/cognitive-services/Speech-Service/includes/quickstarts/text-to-speech-basics/rest.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,22 @@ At a command prompt, run the following cURL command. Optionally you can rename `
2424

2525
**Choose your target environment**
2626

27-
# [Linux](#tab/linux)
27+
# [Windows](#tab/windows)
2828

2929
```terminal
30-
curl --location --request POST "https://${SPEECH_REGION}.tts.speech.microsoft.com/cognitiveservices/v1" ^
31-
--header "Ocp-Apim-Subscription-Key: ${SPEECH_KEY}" ^
32-
--header 'Content-Type: application/ssml+xml' ^
33-
--header 'X-Microsoft-OutputFormat: audio-16khz-128kbitrate-mono-mp3' ^
34-
--header 'User-Agent: curl' ^
30+
curl --location --request POST "https://${SPEECH_REGION}.tts.speech.microsoft.com/cognitiveservices/v1" \
31+
--header "Ocp-Apim-Subscription-Key: ${SPEECH_KEY}" \
32+
--header 'Content-Type: application/ssml+xml' \
33+
--header 'X-Microsoft-OutputFormat: audio-16khz-128kbitrate-mono-mp3' \
34+
--header 'User-Agent: curl' \
3535
--data-raw '<speak version='\''1.0'\'' xml:lang='\''en-US'\''>
3636
<voice xml:lang='\''en-US'\'' xml:gender='\''Female'\'' name='\''en-US-JennyNeural'\''>
3737
my voice is my passport verify me
3838
</voice>
3939
</speak>' > output.mp3
4040
```
4141

42-
# [macOS](#tab/macos)
42+
# [Linux](#tab/linux)
4343

4444
```terminal
4545
curl --location --request POST "https://${SPEECH_REGION}.tts.speech.microsoft.com/cognitiveservices/v1" ^
@@ -54,14 +54,14 @@ curl --location --request POST "https://${SPEECH_REGION}.tts.speech.microsoft.co
5454
</speak>' > output.mp3
5555
```
5656

57-
# [Windows](#tab/windows)
57+
# [macOS](#tab/macos)
5858

5959
```terminal
60-
curl --location --request POST "https://${SPEECH_REGION}.tts.speech.microsoft.com/cognitiveservices/v1" \
61-
--header "Ocp-Apim-Subscription-Key: ${SPEECH_KEY}" \
62-
--header 'Content-Type: application/ssml+xml' \
63-
--header 'X-Microsoft-OutputFormat: audio-16khz-128kbitrate-mono-mp3' \
64-
--header 'User-Agent: curl' \
60+
curl --location --request POST "https://${SPEECH_REGION}.tts.speech.microsoft.com/cognitiveservices/v1" ^
61+
--header "Ocp-Apim-Subscription-Key: ${SPEECH_KEY}" ^
62+
--header 'Content-Type: application/ssml+xml' ^
63+
--header 'X-Microsoft-OutputFormat: audio-16khz-128kbitrate-mono-mp3' ^
64+
--header 'User-Agent: curl' ^
6565
--data-raw '<speak version='\''1.0'\'' xml:lang='\''en-US'\''>
6666
<voice xml:lang='\''en-US'\'' xml:gender='\''Female'\'' name='\''en-US-JennyNeural'\''>
6767
my voice is my passport verify me

0 commit comments

Comments
 (0)