Skip to content

Commit c4a9a3e

Browse files
committed
Reverting MC part
1 parent 88a4072 commit c4a9a3e

File tree

1 file changed

+2
-23
lines changed

1 file changed

+2
-23
lines changed

articles/cognitive-services/Speech-Service/sovereign-clouds.md

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -155,33 +155,12 @@ Replace `<REGION_IDENTIFIER>` with the identifier matching the region of your su
155155

156156
#### Speech SDK
157157

158-
For [Speech SDK](speech-sdk.md) in sovereign clouds you need to use "from host / with host" instantiation of `SpeechConfig` class or `--host` option of [Speech CLI](spx-overview.md). (You may also use "from endpoint / with endpoint" instantiation and `--endpoint` Speech CLI option).
158+
For Speech SDK in sovereign clouds you need to use "from host" instantiation of `SpeechConfig` class or `--host` option of [Speech CLI](spx-overview.md). (You may also use "from endpoint" instantiation and `--endpoint` Speech CLI option).
159159

160160
`SpeechConfig` class should be instantiated like this:
161-
162-
# [C#](#tab/c-sharp)
163161
```csharp
164162
var config = SpeechConfig.FromHost(azCnHost, subscriptionKey);
165163
```
166-
# [C++](#tab/cpp)
167-
```cpp
168-
auto config = SpeechConfig::FromHost(azCnHost, subscriptionKey);
169-
```
170-
# [Java](#tab/java)
171-
```java
172-
SpeechConfig config = SpeechConfig.fromHost(azCnHost, subscriptionKey);
173-
```
174-
# [Python](#tab/python)
175-
```python
176-
import azure.cognitiveservices.speech as speechsdk
177-
speech_config = speechsdk.SpeechConfig(host=azCnHost, subscription=subscriptionKey)
178-
```
179-
# [Objective-C](#tab/objective-c)
180-
```objectivec
181-
SPXSpeechConfiguration *speechConfig = [[SPXSpeechConfiguration alloc] initWithHost:azCnHost subscription:subscriptionKey];
182-
```
183-
***
184-
185164
Speech CLI should be used like this (note the `--host` option):
186165
```dos
187166
spx recognize --host "azCnHost" --file myaudio.wav
@@ -195,4 +174,4 @@ Replace `subscriptionKey` with your Speech resource key. Replace `azCnHost` with
195174
| Text-to-Speech | `https://chinaeast2.tts.speech.azure.cn` |
196175
| **China North 2** | |
197176
| Speech-to-text | `wss://chinanorth2.stt.speech.azure.cn` |
198-
| Text-to-Speech | `https://chinanorth2.tts.speech.azure.cn` |
177+
| Text-to-Speech | `https://chinanorth2.tts.speech.azure.cn` |

0 commit comments

Comments
 (0)