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
*[Getting the transaction ID](#getting-the-transaction-id)
34
35
*[Using Websockets](#using-websockets)
35
36
*[Cloud Pak for Data(CP4D)](#cloud-pak-for-data)
36
37
*[Logging](#logging)
@@ -362,6 +363,30 @@ This would give an output of `DetailedResponse` having the structure:
362
363
```
363
364
You can use the `get_result()`, `get_headers()` and get_status_code() to return the result, headers and status code respectively.
364
365
366
+
## Getting the transaction ID
367
+
Every SDK call returns a response with a transaction ID in the x-global-transaction-id header. This transaction ID is useful for troubleshooting and accessing relevant logs from your service instance.
368
+
### Suceess
369
+
```python
370
+
from ibm_watson import MyService
371
+
372
+
service = MyService(authenticator=my_authenticator)
The Text to Speech service supports synthesizing text to spoken audio using web sockets with the `synthesize_using_websocket`. The Speech to Text service supports recognizing speech to text using web sockets with the `recognize_using_websocket`. These methods need a custom callback class to listen to events. Below is an example of `synthesize_using_websocket`. Note: The service accepts one request per connection.
0 commit comments