You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/ai-services/speech-service/speech-services-private-link.md
+11-48Lines changed: 11 additions & 48 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -242,55 +242,18 @@ Private-endpoint-enabled endpoints communicate with Speech service via a special
242
242
243
243
A "standard" endpoint URL looks like: <p/>`{region}.{speech service offering}.speech.microsoft.com/{URL path}`
244
244
245
-
A private endpoint URL looks like: <p/>`{your custom name}.cognitiveservices.azure.com/{speech service offering}/{URL path}`
245
+
A private endpoint URL looks like: <p/>`{your custom name}.cognitiveservices.azure.com/{URL path}`
246
246
247
-
The Speech SDK automatically will configure the `/{URL path}` depending on the service used. Therefor only the `/{baseURL}` must be configured as described.
248
-
249
-
**Example 1.** An application is communicating by using the following URL (speech recognition using the base model for US English in West Europe):
250
-
251
-
```
252
-
wss://westeurope.stt.speech.microsoft.com
253
-
```
254
-
255
-
To use it in the private-endpoint-enabled scenario when the custom domain name of the Speech resource is `my-private-link-speech.cognitiveservices.azure.com`, you must modify the URL like this:
**Example 2.** An application uses the following URL to synthesize speech in West Europe:
262
-
```
263
-
wss://westeurope.tts.speech.microsoft.com
264
-
```
265
-
266
-
The following equivalent URL uses a private endpoint, where the custom domain name of the Speech resource is `my-private-link-speech.cognitiveservices.azure.com`:
The Speech SDK automatically will configure the `/{URL path}` depending on the service used.
248
+
Therefor only the `/{baseURL}` must be configured as described.
271
249
272
250
#### Modifying applications
273
251
274
252
Follow these steps to modify your code:
275
253
276
-
1. Determine the application endpoint URL:
277
-
278
-
-[Turn on logging for your application](how-to-use-logging.md) and run it to log activity.
279
-
- In the log file, search for `SPEECH-ConnectionUrl`. In matching lines, the `value` parameter contains the full URL that your application used to reach the Speech service.
280
-
281
-
Example:
254
+
1. Determine the application endpoint URL from the 'Keys and Endpoints' menu of your resource on Azure Portal. In this example it would be `my-private-link-speech.cognitiveservices.azure.com`.
2. Create a `SpeechConfig` instance by using a full endpoint URL:
256
+
2. Create a `SpeechConfig` instance by using a endpoint URL:
294
257
295
258
1. Modify the endpoint that you determined, as described in the earlier [Construct endpoint URL](#construct-endpoint-url) section.
296
259
@@ -302,7 +265,7 @@ Follow these steps to modify your code:
302
265
303
266
Tomakeitwork, modifyhowyouinstantiatethe `SpeechConfig` classand use "from endpoint"/"with endpoint" initialization. Suppose we have the following two variables defined:
@@ -331,6 +294,11 @@ Follow these steps to modify your code:
331
294
332
295
Afterthismodification, yourapplicationshouldworkwiththeprivate-endpoint-enabledSpeechresources. We're working on more seamless support of private endpoint scenarios.
333
296
297
+
### Speech resource with a custom domain name and without private endpoints: Usage with the Speech SDK
0 commit comments