Skip to content

How to get request ID for debugging purpose

Yulin Li edited this page Mar 30, 2020 · 2 revisions

How to get the request ID for debugging purpose

When using Azure TTS service, one can record the request ID of each synthesis turn for debugging purpose.

Using speech SDK

We recommend to use the speech SDK as it can reduce your developing work and improve the performance. You can record the ResultId property of SpeechSynthesisResult and attach it when you open a GitHub issue, Stack Overflow question, or Azure ticket.

More generally, you can enable logging of the SDK and send the log to our support team when you need help.

You can refer to Speech SDK references for other programming languages.

Using Azure TTS REST API

If the speech SDK doesn't support your programming language or platform, you can call Azure TTS REST API directly.

When calling Azure TTS REST API, one can add request ID for debugging purpose.

Set below HTTP Header in the request.

X-ConnectionId:guid   

guid is a string without hyphens like ca8bb19b4a7b489f85db18efceed7254. In C#, you can create a GUID object, convert it to string.

So when one issues support request, he can include the request ID of the request for debugging from the support team.

Clone this wiki locally