@@ -24,22 +24,22 @@ At a command prompt, run the following cURL command. Optionally you can rename `
24
24
25
25
** Choose your target environment**
26
26
27
- # [ Linux ] ( #tab/linux )
27
+ # [ Windows ] ( #tab/windows )
28
28
29
29
``` 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' \
35
35
--data-raw '<speak version='\''1.0'\'' xml:lang='\''en-US'\''>
36
36
<voice xml:lang='\''en-US'\'' xml:gender='\''Female'\'' name='\''en-US-JennyNeural'\''>
37
37
my voice is my passport verify me
38
38
</voice>
39
39
</speak>' > output.mp3
40
40
```
41
41
42
- # [ macOS ] ( #tab/macos )
42
+ # [ Linux ] ( #tab/linux )
43
43
44
44
``` terminal
45
45
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
54
54
</speak>' > output.mp3
55
55
```
56
56
57
- # [ Windows ] ( #tab/windows )
57
+ # [ macOS ] ( #tab/macos )
58
58
59
59
``` 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' ^
65
65
--data-raw '<speak version='\''1.0'\'' xml:lang='\''en-US'\''>
66
66
<voice xml:lang='\''en-US'\'' xml:gender='\''Female'\'' name='\''en-US-JennyNeural'\''>
67
67
my voice is my passport verify me
0 commit comments