Skip to content

Commit

Permalink
updated endpoint docs
Browse files Browse the repository at this point in the history
  • Loading branch information
NateRickard committed Mar 29, 2019
1 parent e40c706 commit b5a816e
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -302,18 +302,13 @@ By default, the library will use the standard STT and authentication endpoints f
Auth: `https://api.cognitive.microsoft.com/sts/v1.0/issueToken`
STT: `https://speech.platform.bing.com/speech/recognition`
To use a STT endpoint other than the default (for CRIS/Custom Speech Service or if your speech service created a unique endpoint), create a new `Endpoint` with the host, path, and other details:
To use a STT (or authentication, for token auth only) endpoint other than the default (for CRIS/Custom Speech Service or if your speech service created a unique endpoint), create a new `Endpoint` with the host, path, and other details, and pass this into the constructor:

```c#
speechClient.SpeechEndpoint = new Endpoint ("westus.stt.speech.microsoft.com", "/speech/recognition");
var bingSpeechClient = new BingSpeechApiClient ("<YOUR KEY>",
new Endpoint ("westus.api.cognitive.microsoft.com", "/sts/v1.0/issueToken") //auth endpoint
new Endpoint ("westus.stt.speech.microsoft.com", "/speech/recognition")); //STT endpoint
```

To change the endpoint the authentication call will be made to (for token auth only), create a new `Endpoint` with the host, path, and other details:

```c#
speechClient.AuthEndpoint = new Endpoint ("westus.api.cognitive.microsoft.com", "/sts/v1.0/issueToken");
```


# Contributing

Expand Down

0 comments on commit b5a816e

Please sign in to comment.