Skip to content

Commit b2bb47b

Browse files
author
Trevor Bye
committed
fixing zone pivots
1 parent 8ccd08a commit b2bb47b

File tree

7 files changed

+74
-26
lines changed

7 files changed

+74
-26
lines changed

articles/cognitive-services/Speech-Service/how-to-choose-recognition-mode.md

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ms.subservice: speech-service
1010
ms.topic: conceptual
1111
ms.date: 03/10/2020
1212
ms.author: dapine
13-
zone_pivot_groups: programming-languages-speech-services-one-nomore
13+
zone_pivot_groups: programming-languages-set-two-with-js
1414
---
1515

1616
# Choose a speech recognition mode
@@ -59,11 +59,7 @@ result = speech_recognizer.recognize_once()
5959
```
6060

6161
::: zone-end
62-
::: zone pivot="programming-language-more"
63-
64-
For additional languages, see the [Speech SDK reference docs](speech-to-text.md#speech-sdk-reference-docs).
6562

66-
::: zone-end
6763
::: zone pivot="programming-language-javascript"
6864

6965
For more information on using the `recognizeOnceAsync` function, see the [JavaScript Speech SDK docs](https://docs.microsoft.com/javascript/api/microsoft-cognitiveservices-speech-sdk/speechrecognizer?view=azure-node-latest#recognizeonceasync--e--speechrecognitionresult-----void---e--string-----void-).
@@ -73,6 +69,13 @@ recognizer.recognizeOnceAsync((result)=>{}, (error)=>{}));
7369
```
7470

7571
::: zone-end
72+
73+
::: zone pivot="programming-language-more"
74+
75+
For additional languages, see the [Speech SDK reference docs](speech-to-text.md#speech-sdk-reference-docs).
76+
77+
::: zone-end
78+
7679
## Continuous
7780

7881
If you need long-running recognition, use the start and corresponding stop functions for continuous recognition. The start function will start and continue processing all utterances until you invoke the stop function, or until too much time in silence has passed. When using the continuous mode, be sure to register to the various events that will fire upon occurrence. For example, the "recognized" event fires when speech recognition occurs. You need to have an event handler in place to handle recognition.
@@ -155,11 +158,7 @@ speech_recognizer.stop_continuous_recognition()
155158
```
156159

157160
::: zone-end
158-
::: zone pivot="programming-language-more"
159161

160-
For additional languages, see the [Speech SDK reference docs](speech-to-text.md#speech-sdk-reference-docs).
161-
162-
::: zone-end
163162
::: zone pivot="programming-language-javascript"
164163

165164
```JavaScript
@@ -179,6 +178,12 @@ recognizer.stopContinuousRecognitionAsync(()=>{}, (error)=>{});
179178

180179
::: zone-end
181180

181+
::: zone pivot="programming-language-more"
182+
183+
For additional languages, see the [Speech SDK reference docs](speech-to-text.md#speech-sdk-reference-docs).
184+
185+
::: zone-end
186+
182187
## Dictation
183188

184189
When using continuous recognition, you can enable dictation processing by using the corresponding "enable dictation" function. This mode will cause the speech config instance to interpret word descriptions of sentence structures such as punctuation. For example, the utterance "Do you live in town question mark" would be interpreted as the text "Do you live in town?".
@@ -223,11 +228,7 @@ SpeechConfig.enable_dictation()
223228
```
224229

225230
::: zone-end
226-
::: zone pivot="programming-language-more"
227-
228-
For additional languages, see the [Speech SDK reference docs](speech-to-text.md#speech-sdk-reference-docs).
229231

230-
::: zone-end
231232
::: zone pivot="programming-language-javascript"
232233

233234
For more information on using the `enableDictation` function, see the [JavaScript Speech SDK docs](https://docs.microsoft.com/javascript/api/microsoft-cognitiveservices-speech-sdk/speechconfig?view=azure-node-latest#enabledictation--).
@@ -239,6 +240,12 @@ speechConfig.enableDictation();
239240

240241
::: zone-end
241242

243+
::: zone pivot="programming-language-more"
244+
245+
For additional languages, see the [Speech SDK reference docs](speech-to-text.md#speech-sdk-reference-docs).
246+
247+
::: zone-end
248+
242249
## Next steps
243250

244251
> [!div class="nextstepaction"]

articles/cognitive-services/Speech-Service/how-to-phrase-lists.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ms.subservice: speech-service
1010
ms.topic: conceptual
1111
ms.date: 02/04/2020
1212
ms.author: dapine
13-
zone_pivot_groups: programming-languages-speech-services-one-nomore
13+
zone_pivot_groups: programming-languages-speech-services-one-nomore-no-go
1414
---
1515

1616
# Phrase Lists for speech-to-text
@@ -120,7 +120,7 @@ phrase_list_grammar.clear()
120120

121121
::: zone-end
122122

123-
::: zone pivot="programming-language-more"
123+
::: zone pivot="programming-language-javascript"
124124

125125
```JavaScript
126126
phraseListGrammar.clear();

articles/cognitive-services/Speech-Service/how-to-specify-source-language.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ms.subservice: speech-service
1010
ms.topic: conceptual
1111
ms.date: 01/07/2020
1212
ms.author: qiohu
13-
zone_pivot_groups: programming-languages-speech-services-one-nomore
13+
zone_pivot_groups: programming-languages-speech-services-nomore-variant
1414
---
1515

1616
# Specify source language for speech to text
@@ -160,7 +160,8 @@ speechConfig.endpointId = "The Endpoint ID for your custom model.";
160160
```
161161
::: zone-end
162162

163-
::: zone pivot="programming-language-javascript"
163+
::: zone pivot="programming-language-objectivec"
164+
164165
## How to specify source language in Objective-C
165166

166167
The first step is to create a `speechConfig`:

articles/cognitive-services/Speech-Service/quickstarts/from-blob.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ms.subservice: speech-service
1010
ms.topic: quickstart
1111
ms.date: 02/10/2020
1212
ms.author: dapine
13-
zone_pivot_groups: programming-languages-speech-services-one
13+
zone_pivot_groups: programming-languages-set-two-with-js
1414
---
1515

1616
# Quickstart: Recognize speech stored in blob storage

articles/cognitive-services/Speech-Service/quickstarts/speech-to-text-from-file.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ms.subservice: speech-service
1010
ms.topic: quickstart
1111
ms.date: 02/10/2020
1212
ms.author: dapine
13-
zone_pivot_groups: programming-languages-speech-services-one
13+
zone_pivot_groups: programming-languages-set-two-with-js
1414
---
1515

1616
# Quickstart: Recognize speech from an audio file

articles/cognitive-services/Speech-Service/quickstarts/speech-to-text-from-microphone.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ms.subservice: speech-service
1010
ms.topic: quickstart
1111
ms.date: 02/10/2020
1212
ms.author: dapine
13-
zone_pivot_groups: programming-languages-speech-services-one
13+
zone_pivot_groups: programming-languages-set-two-with-js-go
1414
---
1515

1616
# Quickstart: Recognize speech from a microphone

articles/zone-pivot-groups.yml

Lines changed: 46 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,19 @@ groups:
322322
title: JavaScript
323323
- id: programming-language-more
324324
title: More languages...
325-
- id: programming-languages-speech-services-one
325+
- id: programming-languages-set-eighteen
326326
title: Programming languages
327+
prompt: Choose a programming language
328+
pivots:
329+
- id: programming-language-csharp
330+
title: C#
331+
- id: programming-language-python
332+
title: Python
333+
- id: programming-language-go
334+
title: Go
335+
- id: programming-languages-set-two-with-js
327336
# Owner: erhopf
337+
title: Programming languages
328338
prompt: Choose a programming language
329339
pivots:
330340
- id: programming-language-csharp
@@ -335,17 +345,30 @@ groups:
335345
title: Java
336346
- id: programming-language-python
337347
title: Python
338-
- id: programming-languages-set-eighteen
348+
- id: programming-language-javascript
349+
title: JavaScript
350+
- id: programming-language-more
351+
title: More languages...
352+
- id: programming-languages-set-two-with-js-go
353+
# Owner: erhopf
339354
title: Programming languages
340355
prompt: Choose a programming language
341356
pivots:
342357
- id: programming-language-csharp
343358
title: C#
359+
- id: programming-language-cpp
360+
title: C++
361+
- id: programming-language-java
362+
title: Java
344363
- id: programming-language-python
345364
title: Python
365+
- id: programming-language-javascript
366+
title: JavaScript
346367
- id: programming-language-go
347368
title: Go
348-
- id: programming-languages-set-two-with-js
369+
- id: programming-language-more
370+
title: More languages...
371+
- id: programming-languages-speech-services-one-nomore
349372
# Owner: erhopf
350373
title: Programming languages
351374
prompt: Choose a programming language
@@ -358,11 +381,26 @@ groups:
358381
title: Java
359382
- id: programming-language-python
360383
title: Python
384+
- id: programming-language-go
385+
title: Go
361386
- id: programming-language-javascript
362387
title: JavaScript
363-
- id: programming-language-more
364-
title: More languages...
365-
- id: programming-languages-speech-services-one-nomore
388+
- id: programming-languages-speech-services-one-nomore-no-go
389+
# Owner: erhopf
390+
title: Programming languages
391+
prompt: Choose a programming language
392+
pivots:
393+
- id: programming-language-csharp
394+
title: C#
395+
- id: programming-language-cpp
396+
title: C++
397+
- id: programming-language-java
398+
title: Java
399+
- id: programming-language-python
400+
title: Python
401+
- id: programming-language-javascript
402+
title: JavaScript
403+
- id: programming-languages-speech-services-nomore-variant
366404
# Owner: erhopf
367405
title: Programming languages
368406
prompt: Choose a programming language
@@ -377,3 +415,5 @@ groups:
377415
title: Python
378416
- id: programming-language-javascript
379417
title: JavaScript
418+
- id: programming-language-objectivec
419+
title: Objective-C

0 commit comments

Comments
 (0)