Skip to content

Commit a11286f

Browse files
Merge pull request #250413 from alexeyo26/alexeyo/stt-sessionid-warning
[Azure AI Svcs] Speech. Adding warning on strict GUID format in STT Session Id
2 parents 4bb30d9 + 83a0c3e commit a11286f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

articles/ai-services/speech-service/how-to-get-speech-session-id.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,15 @@ Generate a GUID inside your code or using any standard tool. Use the GUID value
7474

7575
As a part of your REST request use `X-ConnectionId=<GUID>` expression. For our example, a sample request will look like this:
7676
```http
77-
https://westeurope.stt.speech.microsoft.com/speech/recognition/conversation/cognitiveservices/v1?language=en-US&X-ConnectionId=9f4ffa5113a846eba289aa98b28e766f
77+
https://eastus.stt.speech.microsoft.com/speech/recognition/conversation/cognitiveservices/v1?language=en-US&X-ConnectionId=9f4ffa5113a846eba289aa98b28e766f
7878
```
7979
`9f4ffa5113a846eba289aa98b28e766f` will be your Session ID.
8080

81+
> [!WARNING]
82+
> The value of the parameter `X-ConnectionId` should be in the format of GUID without dashes or other dividers. All other formats aren't supported and will be discarded by the Service.
83+
>
84+
> Example. If the request contains `X-ConnectionId=9f4ffa51-13a8-46eb-a289-aa98b28e766f` (GUID with dividers) or `X-ConnectionId=Request9f4ffa5113a846eba289aa98b28e766f` (non-GUID) then the value of `X-ConnectionId` will not be accepted by the system, and the Session won't be found in the logs.
85+
8186
## Getting Transcription ID for Batch transcription
8287

8388
[Batch transcription API](batch-transcription.md) is a subset of the [Speech to text REST API](rest-speech-to-text.md).

0 commit comments

Comments
 (0)