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/cognitive-services/Speech-Service/how-to-use-logging.md
+20-13Lines changed: 20 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,38 +18,45 @@ Logging to file is an optional feature for the Speech SDK. During development lo
18
18
19
19
## Sample
20
20
21
-
The log file name is specified on a configuration object. Taking the `SpeechConfig` as an example and assuming that you have created an instance called `config`:
21
+
The log file name is specified on a configuration object. Taking the `SpeechConfig` as an example and assuming that you have created an instance called `speechConfig`:
You can create a recognizer from the config object. This will enable logging for all recognizers.
49
+
You can create a recognizer from the configuration object. This will enable logging for all recognizers.
50
50
51
51
> [!NOTE]
52
-
> If you create a `SpeechSynthesizer` from the config object, it will not enable logging. If logging is enabled though, you will also receive diagnostics from the `SpeechSynthesizer`.
52
+
> If you create a `SpeechSynthesizer` from the configuration object, it will not enable logging. If logging is enabled though, you will also receive diagnostics from the `SpeechSynthesizer`.
53
+
54
+
JavaScript is an exception where the logging is enabled via SDK diagnostics as shown in the following code snippet:
The code above will save a log file to the external storage in the root of an application-specific directory. A user can access the file with the file manager (usually in `Android/data/ApplicationName/logfile.txt`). The file will be deleted when the application is uninstalled.
@@ -101,7 +108,7 @@ Within a Unity Android application, the log file can be created using the applic
0 commit comments