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
Use the speech translation configuration with each [TranslationRecognizer](/dotnet/api/microsoft.cognitiveservices.speech.translationrecognizer) when you want logging.
166
+
Use the speech translation configuration with each [TranslationRecognizer](/dotnet/api/microsoft.cognitiveservices.speech.translation.translationrecognizer) when you want logging.
167
167
168
168
::: zone-end
169
169
::: zone pivot="programming-language-cpp"
170
170
171
-
To enable audio and transcription logging with the Speech SDK, you execute the method `EnableAudioLogging` of the [SpeechTranslationConfig](/cpp/cognitive-services/speech/speechtranslationconfig) class.
171
+
To enable audio and transcription logging with the Speech SDK, you execute the method `EnableAudioLogging` of the [SpeechTranslationConfig](/cpp/cognitive-services/speech/translation-speechtranslationconfig) class.
172
172
173
173
```cpp
174
174
speechTranslationConfig->EnableAudioLogging();
@@ -180,12 +180,12 @@ To check whether logging is enabled, get the value of the `SpeechServiceConnecti
Use the speech translation configuration with each [TranslationRecognizer](/cpp/cognitive-services/speech/translationrecognizer) when you want logging.
183
+
Use the speech translation configuration with each [TranslationRecognizer](/cpp/cognitive-services/speech/translation-translationrecognizer) when you want logging.
184
184
185
185
::: zone-end
186
186
::: zone pivot="programming-language-java"
187
187
188
-
To enable audio and transcription logging with the Speech SDK, you execute the method `enableAudioLogging()` of the [SpeechTranslationConfig](/java/api/com.microsoft.cognitiveservices.speech.speechtranslationconfig) class.
188
+
To enable audio and transcription logging with the Speech SDK, you execute the method `enableAudioLogging()` of the [SpeechTranslationConfig](/java/api/com.microsoft.cognitiveservices.speech.translation.speechtranslationconfig) class.
189
189
190
190
```java
191
191
speechTranslationConfig.enableAudioLogging();
@@ -197,7 +197,7 @@ To check whether logging is enabled, get the value of the `SpeechServiceConnecti
Use the speech translation configuration with each [TranslationRecognizer](/java/api/com.microsoft.cognitiveservices.speech.translationrecognizer) when you want logging.
200
+
Use the speech translation configuration with each [TranslationRecognizer](/java/api/com.microsoft.cognitiveservices.speech.translation.translationrecognizer) when you want logging.
201
201
202
202
::: zone-end
203
203
::: zone pivot="programming-language-javascript"
@@ -222,7 +222,7 @@ Use the speech translation configuration with each [TranslationRecognizer](/java
222
222
::: zone-end
223
223
::: zone pivot="programming-language-python"
224
224
225
-
To enable audio and transcription logging with the Speech SDK, you execute the method `enable_audio_logging` of the [SpeechTranslationConfig](/python/api/azure-cognitiveservices-speech/azure.cognitiveservices.speech.speechtranslationconfig) class.
225
+
To enable audio and transcription logging with the Speech SDK, you execute the method `enable_audio_logging` of the [SpeechTranslationConfig](/python/api/azure-cognitiveservices-speech/azure.cognitiveservices.speech.translation.speechtranslationconfig) class.
226
226
227
227
```python
228
228
speech_translation_config.enable_audio_logging()
@@ -236,7 +236,7 @@ import azure.cognitiveservices.speech as speechsdk
Use the speech translation configuration with each [TranslationRecognizer](/python/api/azure-cognitiveservices-speech/azure.cognitiveservices.speech.translationrecognizer) when you want logging.
239
+
Use the speech translation configuration with each [TranslationRecognizer](/python/api/azure-cognitiveservices-speech/azure.cognitiveservices.speech.translation.translationrecognizer) when you want logging.
240
240
241
241
::: zone-end
242
242
::: zone pivot="programming-language-objectivec"
@@ -275,9 +275,8 @@ When logging is enabled (turned on) for a custom model endpoint, then you don't
275
275
> For custom model endpoints, the logging setting of your deployed endpoint is prioritized over your application-level setting. If logging is enabled for the custom model endpoint, the application-level setting (whether it's set to true or false) is ignored. If logging isn't enabled for the custom model endpoint, the application-level setting determines whether logging is active.
276
276
277
277
You can enable audio and transcription logging for a custom model endpoint:
278
-
- When you create the endpoint using the Speech Studio, REST API, or Speech CLI. For details about how to enable logging for a Custom Speech endpoint, see [Deploy a Custom Speech model](how-to-custom-speech-deploy-model.md&pivots=speech-studio#add-a-deployment-endpoint).
279
-
- When you update the endpoint ([Endpoints_Update](https://eastus.dev.cognitive.microsoft.com/docs/services/speech-to-text-api-v3-1/operations/Endpoints_Update)) using the [Speech-to-text REST API](rest-speech-to-text.md).
280
-
278
+
- When you create the endpoint using the Speech Studio, REST API, or Speech CLI. For details about how to enable logging for a Custom Speech endpoint, see [Deploy a Custom Speech model](how-to-custom-speech-deploy-model.md#add-a-deployment-endpoint).
279
+
- When you update the endpoint ([Endpoints_Update](https://eastus.dev.cognitive.microsoft.com/docs/services/speech-to-text-api-v3-1/operations/Endpoints_Update)) using the [Speech-to-text REST API](rest-speech-to-text.md). For an example of how to update the logging setting for an endpoint, see [Turn off logging for a custom model endpoint](#turn-off-logging-for-a-custom-model-endpoint). Instead of setting the `contentLoggingEnabled` property to `true`, set it to `false` to disable logging for the endpoint.
281
280
282
281
## Turn off logging for a custom model endpoint
283
282
@@ -333,7 +332,7 @@ The response body should reflect the new setting. Note that the name of the logg
333
332
334
333
## Get audio and transcription logs
335
334
336
-
You can access audio and transcription logs using [Speech-to-text REST API](rest-speech-to-text.md). For [custom model](how-to-custom-speech-deploy-model.md) endpoints, you can also use [Speech Studio](https://speech.microsoft.com/). See details in the following sections.
335
+
You can access audio and transcription logs using [Speech-to-text REST API](#get-audio-and-transcription-logs-with-speech-to-text-rest-api). For [custom model](how-to-custom-speech-deploy-model.md) endpoints, you can also use [Speech Studio](#get-audio-and-transcription-logs-with-speech-studio). See details in the following sections.
337
336
338
337
> [!NOTE]
339
338
> Logging data is kept for 30 days. After this period the logs are automatically deleted. However you can [delete](#delete-audio-and-transcription-logs) specific logs or a range of available logs at any time.
@@ -353,15 +352,17 @@ With this approach you can download all available log sets at once. There is no
353
352
354
353
### Get audio and transcription logs with Speech-to-text REST API
355
354
356
-
This method is applicable for base and [custom model](how-to-custom-speech-deploy-model.md) endpoints.
357
-
358
-
To list and download audio and transcription logs, you need to use [Endpoints_ListBaseModelLogs](https://eastus.dev.cognitive.microsoft.com/docs/services/speech-to-text-api-v3-1/operations/Endpoints_ListBaseModelLogs) (for based model endpoint) or [Endpoints_ListLogs](https://eastus.dev.cognitive.microsoft.com/docs/services/speech-to-text-api-v3-1/operations/Endpoints_ListLogs) (for custom model endpoints) request of the [Speech-to-text REST API](rest-speech-to-text.md).
355
+
You can download all or a subset of available log sets.
359
356
360
-
This method allows you to download all available or selected log sets.
357
+
This method is applicable for base and [custom model](how-to-custom-speech-deploy-model.md) endpoints. To list and download audio and transcription logs:
358
+
- Base models: Use the [Endpoints_ListBaseModelLogs](https://eastus.dev.cognitive.microsoft.com/docs/services/speech-to-text-api-v3-1/operations/Endpoints_ListBaseModelLogs) operation of the [Speech-to-text REST API](rest-speech-to-text.md). This operation gets the list of audio and transcription logs that have been stored when using the default base model of a given language.
359
+
- Custom model endpoints: Use the [Endpoints_ListLogs](https://eastus.dev.cognitive.microsoft.com/docs/services/speech-to-text-api-v3-1/operations/Endpoints_ListLogs) operation of the [Speech-to-text REST API](rest-speech-to-text.md). This operation gets the list of audio and transcription logs that have been stored for a given endpoint.
361
360
362
361
### Get log IDs with Speech-to-text REST API
363
362
364
-
To get Log IDs of the available logs, use [Endpoints_ListBaseModelLogs](https://eastus.dev.cognitive.microsoft.com/docs/services/speech-to-text-api-v3-1/operations/Endpoints_ListBaseModelLogs) (for base model endpoint) or [Endpoints_ListLogs](https://eastus.dev.cognitive.microsoft.com/docs/services/speech-to-text-api-v3-1/operations/Endpoints_ListLogs) (for custom model endpoints) request of the [Speech-to-text REST API](rest-speech-to-text.md).
363
+
To get IDs of the available logs:
364
+
- Base models: Use the [Endpoints_ListBaseModelLogs](https://eastus.dev.cognitive.microsoft.com/docs/services/speech-to-text-api-v3-1/operations/Endpoints_ListBaseModelLogs) operation of the [Speech-to-text REST API](rest-speech-to-text.md). This operation gets the list of audio and transcription logs that have been stored when using the default base model of a given language.
365
+
- Custom model endpoints: Use the [Endpoints_ListLogs](https://eastus.dev.cognitive.microsoft.com/docs/services/speech-to-text-api-v3-1/operations/Endpoints_ListLogs) operation of the [Speech-to-text REST API](rest-speech-to-text.md). This operation gets the list of audio and transcription logs that have been stored for a given endpoint.
365
366
366
367
Here's a sample output of [Endpoints_ListLogs](https://eastus.dev.cognitive.microsoft.com/docs/services/speech-to-text-api-v3-1/operations/Endpoints_ListLogs). For simplicity, only one log set is shown:
0 commit comments