Skip to content

Commit aed12ed

Browse files
authored
Merge pull request #175855 from BrianMouncer/BrianMouncer-pr/1.19.0_updates
[Cog Svcs] Brian mouncer pr/1.19.0 updates
2 parents ce90c83 + cab4fb1 commit aed12ed

20 files changed

+216
-136
lines changed

articles/cognitive-services/Speech-Service/how-to-configure-openssl-linux.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ROBOTS: NOINDEX
1616

1717
# Configure OpenSSL for Linux
1818

19-
When using any Speech SDK version before 1.9.0, [OpenSSL](https://www.openssl.org) is dynamically configured to the host-system version. In later versions of the Speech SDK OpenSSL is statically linked to the core library of the Speech SDK. In Speech SDK versions 1.9.0 to 1.16.0 [OpenSSL version 1.1.1b](https://mta.openssl.org/pipermail/openssl-announce/2019-February/000147.html) is used. In Speech SDK version 1.17.0 onward [Open SSL version 1.1.1k](https://mta.openssl.org/pipermail/openssl-announce/2021-March/000197.html) is used.
19+
With the Speech SDK version 1.19.0 and higher, [OpenSSL](https://www.openssl.org) is dynamically configured to the host-system version. In previous versions, OpenSSL is statically linked to the core library of the SDK.
2020

2121
To ensure connectivity, verify that OpenSSL certificates have been installed in your system. Run a command:
2222
```bash
@@ -48,7 +48,7 @@ Set environment variable `SSL_CERT_FILE` to point at that file before running a
4848
export SSL_CERT_FILE=/etc/pki/tls/certs/ca-bundle.crt
4949
```
5050

51-
## Certificate Revocation Checks
51+
## Certificate revocation checks
5252
When connecting to the Speech Service, the Speech SDK will verify that the TLS certificate used by the Speech Service has not been revoked. To conduct this check, the Speech SDK will need access to the CRL distribution points for Certificate Authorities used by Azure. A list of possible CRL download locations can be found in [this document](../../security/fundamentals/tls-certificate-changes.md). If a certificate has been revoked or the CRL cannot be downloaded the Speech SDK will abort the connection and raise the Canceled event.
5353

5454
In the event the network where the Speech SDK is being used from is configured in a manner that does not permit access to the CRL download locations, the CRL check can either be disabled or set to not fail if the CRL cannot be retrieved. This configuration is done through the configuration object used to create a Recognizer object.

articles/cognitive-services/Speech-Service/how-to-configure-rhel-centos-7.md

Lines changed: 8 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -14,60 +14,7 @@ ms.author: pankopon
1414

1515
# Configure RHEL/CentOS 7 for Speech SDK
1616

17-
Red Hat Enterprise Linux (RHEL) 8 x64 and CentOS 8 x64 are officially supported by the Speech SDK version 1.10.0 and later. It is also possible to use the Speech SDK on RHEL/CentOS 7 x64, but this requires updating the C++ compiler (for C++ development) and the shared C++ runtime library on your system.
18-
19-
To check the C++ compiler version, run:
20-
21-
```bash
22-
g++ --version
23-
```
24-
25-
If the compiler is installed, the output should look like this:
26-
27-
```bash
28-
g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39)
29-
```
30-
31-
This message lets you know that GCC major version 4 is installed. This version doesn't have full support for the C++ 11 standard, which the Speech SDK uses. Trying to compile a C++ program with this GCC version and the Speech SDK headers will result in compilation errors.
32-
33-
It's also important to check the version of the shared C++ runtime library (libstdc++). Most of the Speech SDK is implemented as native C++ libraries, meaning it depends on libstdc++ regardless of the language you use to develop applications.
34-
35-
To find the location of libstdc++ on your system, run:
36-
37-
```bash
38-
ldconfig -p | grep libstdc++
39-
```
40-
41-
The output on vanilla RHEL/CentOS 7 (x64) is:
42-
43-
```bash
44-
libstdc++.so.6 (libc6,x86-64) => /lib64/libstdc++.so.6
45-
```
46-
47-
Based on this message, you'll want to check the version definitions with this command:
48-
49-
```bash
50-
strings /lib64/libstdc++.so.6 | egrep "GLIBCXX_|CXXABI_"
51-
```
52-
53-
The output should be:
54-
55-
```bash
56-
...
57-
GLIBCXX_3.4.19
58-
...
59-
CXXABI_1.3.7
60-
...
61-
```
62-
63-
The Speech SDK requires **CXXABI_1.3.9** and **GLIBCXX_3.4.21**. You can find this information by running `ldd libMicrosoft.CognitiveServices.Speech.core.so` on the Speech SDK libraries from the Linux package.
64-
65-
> [!NOTE]
66-
> It is recommended that the version of GCC installed on the system is at least **5.4.0**, with matching runtime libraries.
67-
68-
## Example
69-
70-
This is a sample command set that illustrates how to configure RHEL/CentOS 7 x64 for development (C++, C#, Java, Python) with the Speech SDK 1.10.0 or later:
17+
To use the Speech SDK for C++ development on Red Hat Enterprise Linux (RHEL) 8 x64 and CentOS 8 x64, update the C++ compiler and the shared C++ runtime library on your system.
7118

7219
### 1. General setup
7320

@@ -79,7 +26,7 @@ sudo rpm -Uvh https://packages.microsoft.com/config/rhel/7/packages-microsoft-pr
7926
# Install development tools and libraries
8027
sudo yum update -y
8128
sudo yum groupinstall -y "Development tools"
82-
sudo yum install -y alsa-lib dotnet-sdk-2.1 java-1.8.0-openjdk-devel openssl python3
29+
sudo yum install -y alsa-lib dotnet-sdk-2.1 java-1.8.0-openjdk-devel openssl
8330
sudo yum install -y gstreamer1 gstreamer1-plugins-base gstreamer1-plugins-good gstreamer1-plugins-bad-free gstreamer1-plugins-ugly-free
8431
```
8532

@@ -91,32 +38,14 @@ Install the prerequisite packages with this command:
9138
sudo yum install -y gmp-devel mpfr-devel libmpc-devel
9239
```
9340

94-
> [!NOTE]
95-
> The libmpc-devel package has been deprecated in the RHEL 7.8 update. If the output of the previous command includes a message
96-
>
97-
> ```bash
98-
> No package libmpc-devel available.
99-
> ```
100-
>
101-
> then the necessary files need to be installed from original sources. Run the following commands:
102-
>
103-
> ```bash
104-
> curl https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz -O
105-
> tar zxf mpc-1.1.0.tar.gz
106-
> mkdir mpc-1.1.0-build && cd mpc-1.1.0-build
107-
> ../mpc-1.1.0/configure --prefix=/usr/local --libdir=/usr/local/lib64
108-
> make -j$(nproc)
109-
> sudo make install-strip
110-
> ```
111-
11241
Next update the compiler and runtime libraries:
11342

11443
```bash
115-
# Build GCC 5.4.0 and runtimes and install them under /usr/local
116-
curl https://ftp.gnu.org/gnu/gcc/gcc-5.4.0/gcc-5.4.0.tar.bz2 -O
117-
tar jxf gcc-5.4.0.tar.bz2
118-
mkdir gcc-5.4.0-build && cd gcc-5.4.0-build
119-
../gcc-5.4.0/configure --enable-languages=c,c++ --disable-bootstrap --disable-multilib --prefix=/usr/local
44+
# Build GCC 7.5.0 and runtimes and install them under /usr/local
45+
curl https://ftp.gnu.org/gnu/gcc/gcc-7.5.0/gcc-7.5.0.tar.bz2 -O
46+
tar jxf gcc-7.5.0.tar.bz2
47+
mkdir gcc-7.5.0-build && cd gcc-7.5.0-build
48+
../gcc-7.5.0/configure --enable-languages=c,c++ --disable-bootstrap --disable-multilib --prefix=/usr/local
12049
make -j$(nproc)
12150
sudo make install-strip
12251
```
@@ -128,10 +57,6 @@ If the updated compiler and libraries need to be deployed on several machines, y
12857
Run the following commands to complete the configuration:
12958

13059
```bash
131-
# Set SSL cert file location
132-
# (this is required for any development/testing with Speech SDK)
133-
export SSL_CERT_FILE=/etc/pki/tls/certs/ca-bundle.crt
134-
13560
# Add updated C/C++ runtimes to the library path
13661
# (this is required for any development/testing with Speech SDK)
13762
export LD_LIBRARY_PATH=/usr/local/lib64:$LD_LIBRARY_PATH
@@ -143,10 +68,8 @@ export LD_LIBRARY_PATH=/usr/local/lib64:$LD_LIBRARY_PATH
14368
# (note, use the actual path to extracted files!)
14469
export PATH=/usr/local/bin:$PATH
14570
hash -r # reset cached paths in the current shell session just in case
146-
export LD_LIBRARY_PATH=/path/to/extracted/SpeechSDK-Linux-1.10.0/lib/x64:$LD_LIBRARY_PATH
71+
export LD_LIBRARY_PATH=/path/to/extracted/SpeechSDK-Linux-<version>/lib/x64:$LD_LIBRARY_PATH
14772

148-
# For Python: install the Speech SDK module
149-
python3 -m pip install azure-cognitiveservices-speech --user
15073
```
15174

15275
## Next steps

articles/cognitive-services/Speech-Service/how-to-use-codec-compressed-audio-input-streams.md

Lines changed: 49 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ms.topic: conceptual
1111
ms.date: 03/30/2020
1212
ms.author: amishu
1313
ms.custom: devx-track-csharp
14-
zone_pivot_groups: programming-languages-set-twenty-two
14+
zone_pivot_groups: programming-languages-set-twenty-eight
1515
---
1616

1717
# Use codec compressed audio input
@@ -20,14 +20,49 @@ The Speech SDK and Speech CLI can accept compressed audio formats using GStreame
2020

2121
Platform | Languages | Supported GStreamer version
2222
| :--- | ---: | :---:
23-
Windows (excluding UWP) | C++, C#, Java, Python | [1.18.3](https://gstreamer.freedesktop.org/data/pkg/windows/1.18.3/)
24-
Linux | C++, C#, Java, Python | [supported Linux distributions and target architectures](~/articles/cognitive-services/speech-service/speech-sdk.md)
25-
Android | Java | [1.18.3](https://gstreamer.freedesktop.org/data/pkg/android/1.18.3/)
23+
Linux | C++, C#, Java, Python, Go | [Supported Linux distributions and target architectures](~/articles/cognitive-services/speech-service/speech-sdk.md)
24+
Windows (excluding UWP) | C++, C#, Java, Python | [1.18.3](https://gstreamer.freedesktop.org/data/pkg/windows/1.18.3/msvc/gstreamer-1.0-msvc-x86_64-1.18.3.msi)
25+
Android | Java | [1.18.3](https://gstreamer.freedesktop.org/data/pkg/android/1.18.3/)
26+
27+
## Installing GStreamer on Linux
28+
29+
For more information, see [Linux installation instructions](https://gstreamer.freedesktop.org/documentation/installing/on-linux.html?gi-language=c).
30+
31+
```sh
32+
sudo apt install libgstreamer1.0-0 \
33+
gstreamer1.0-plugins-base \
34+
gstreamer1.0-plugins-good \
35+
gstreamer1.0-plugins-bad \
36+
gstreamer1.0-plugins-ugly
37+
```
38+
## Installing GStreamer on Windows
39+
40+
For more information, see [Windows installation instructions](https://gstreamer.freedesktop.org/documentation/installing/on-windows.html?gi-language=c).
41+
42+
* Create a folder c:\gstreamer
43+
* Download [installer](https://gstreamer.freedesktop.org/data/pkg/windows/1.18.3/msvc/gstreamer-1.0-msvc-x86_64-1.18.3.msi)
44+
* Copy the installer to c:\gstreamer
45+
* Open PowerShell as an administrator.
46+
* Run the following command in the PowerShell:
47+
48+
```powershell
49+
cd c:\gstreamer
50+
msiexec /passive INSTALLLEVEL=1000 INSTALLDIR=C:\gstreamer /i gstreamer-1.0-msvc-x86_64-1.18.3.msi
51+
```
52+
* Add the system variables GST_PLUGIN_PATH with value C:\gstreamer\1.0\msvc_x86_64\lib\gstreamer-1.0
53+
* Add the system variables GSTREAMER_ROOT_X86_64 with value C:\gstreamer\1.0\msvc_x86_64
54+
* Add another entry in the path variable as C:\gstreamer\1.0\msvc_x86_64\bin
55+
* Reboot the machine
56+
57+
## Using GStreamer in Android
58+
Look at the Java tab above for the details about building libgstreamer_android.so
59+
60+
For more information see [Android installation instructions](https://gstreamer.freedesktop.org/documentation/installing/for-android-development.html?gi-language=c).
2661

2762
## Speech SDK version required for compressed audio input
2863
* Speech SDK version 1.10.0 or later is required for RHEL 8 and CentOS 8
29-
* Speech SDK version 1.11.0 or later is required for for Windows.
30-
* Speech SDK version 1.16.0 or later for latest GStreamer on Windows and Android.
64+
* Speech SDK version 1.11.0 or later is required for Windows.
65+
* Speech SDK version 1.16.0 or later for the latest GStreamer on Windows and Android.
3166

3267
[!INCLUDE [supported-audio-formats](includes/supported-audio-formats.md)]
3368

@@ -49,6 +84,10 @@ Android | Java | [1.18.3](https://gstreamer.freedesktop.org/data/pkg/android/1.
4984
[!INCLUDE [prerequisites](includes/how-to/compressed-audio-input/python/prerequisites.md)]
5085
::: zone-end
5186

87+
::: zone pivot="programming-language-go"
88+
[!INCLUDE [prerequisites](includes/how-to/compressed-audio-input/go/prerequisites.md)]
89+
::: zone-end
90+
5291
## Example code using codec compressed audio input
5392

5493
::: zone pivot="programming-language-csharp"
@@ -67,6 +106,10 @@ Android | Java | [1.18.3](https://gstreamer.freedesktop.org/data/pkg/android/1.
67106
[!INCLUDE [prerequisites](includes/how-to/compressed-audio-input/python/examples.md)]
68107
::: zone-end
69108

109+
::: zone pivot="programming-language-go"
110+
[!INCLUDE [prerequisites](includes/how-to/compressed-audio-input/go/examples.md)]
111+
::: zone-end
112+
70113
## Next steps
71114

72115
> [!div class="nextstepaction"]

articles/cognitive-services/Speech-Service/includes/get-speech-sdk-cpp.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ ms.author: eur
88

99
:::row:::
1010
:::column span="3":::
11-
The C++ Speech SDK is available on Windows, Linux, and macOS. For more information, see <a href="https://www.nuget.org/packages/Microsoft.CognitiveServices.Speech" target="_blank">Microsoft.CognitiveServices.Speech </a>.
11+
The C++ Speech SDK is available as a NuGet package on Windows, Linux, and macOS. For more information, see <a href="https://www.nuget.org/packages/Microsoft.CognitiveServices.Speech" target="_blank">Microsoft.CognitiveServices.Speech</a>.
12+
The C++ Speech SDK is also available as tar package from https://aka.ms/csspeech/linuxbinary.
1213
:::column-end:::
1314
:::column:::
1415
<br>

articles/cognitive-services/Speech-Service/includes/get-speech-sdk-ios.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.author: eur
88

99
:::row:::
1010
:::column span="3":::
11-
When developing for iOS, there are two Speech SDKs available. The Objective-C Speech SDK is available natively as an iOS CocoaPod package. Alternatively, the .NET Speech SDK could be used with Xamarin.iOS as it implements .NET Standard 2.0.
11+
When developing for iOS, the following Speech SDKs are available. The Objective-C/Swift Speech SDK is available natively as an iOS CocoaPod package. Alternatively, the .NET Speech SDK could be used with Xamarin.iOS and Unity application frameworks.
1212
:::column-end:::
1313
:::column:::
1414
<br>
@@ -53,7 +53,7 @@ end
5353

5454
:::row:::
5555
:::column span="3":::
56-
Xamarin.iOS exposes the complete iOS SDK for .NET developers. Build fully native iOS apps using C# or F# in Visual Studio. For more information, see <a href="/xamarin/ios/" target="_blank">Xamarin.iOS </a>.
56+
Xamarin.iOS exposes the complete iOS SDK for .NET developers. Build fully native iOS apps using C# in Visual Studio. For more information, see <a href="/xamarin/ios/" target="_blank">Xamarin.iOS </a>.
5757
:::column-end:::
5858
:::column:::
5959
<br>

articles/cognitive-services/Speech-Service/includes/get-speech-sdk-java.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ ms.author: eur
88

99
:::row:::
1010
:::column span="3":::
11-
The Java SDK for Android is packaged as an <a href="https://developer.android.com/studio/projects/android-library" target="_blank">AAR (Android Library) </a>, which includes the necessary libraries and required Android permissions. It's hosted in a Maven repository at `https://csspeechstorage.blob.core.windows.net/maven/` as package `com.microsoft.cognitiveservices.speech:client-sdk:1.17.0`. (Make sure 1.17.0 is the latest version by [searching our GitHub repo](https://github.com/Azure-Samples/cognitive-services-speech-sdk/search?q=com.microsoft.cognitiveservices.speech%3Aclient-sdk).)
11+
The Java SDK for Android is packaged as an <a href="https://developer.android.com/studio/projects/android-library" target="_blank">AAR (Android Library) </a>, which includes the necessary libraries and required Android permissions. It's hosted in a Maven repository at `https://csspeechstorage.blob.core.windows.net/maven/` as package `com.microsoft.cognitiveservices.speech:client-sdk:1.19.0`. (Make sure 1.19.0 is the latest version by [searching our GitHub repo](https://github.com/Azure-Samples/cognitive-services-speech-sdk/search?q=com.microsoft.cognitiveservices.speech%3Aclient-sdk).)
1212
:::column-end:::
1313
:::column:::
1414
<br>
1515
<div class="icon is-large">
16-
<img alt="Java" src="/media/logos/logo_java.svg" width="60px">
16+
<img alt="Java" src="https://docs.microsoft.com/media/logos/logo_java.svg" width="60px">
1717
</div>
1818
:::column-end:::
1919
:::row-end:::
@@ -27,7 +27,7 @@ To consume the package from your Android Studio project, make the following chan
2727

2828
2. In the module-level *build.gradle* file, add the following to the `dependencies` section:
2929
```gradle
30-
implementation 'com.microsoft.cognitiveservices.speech:client-sdk:1.17.0'
30+
implementation 'com.microsoft.cognitiveservices.speech:client-sdk:1.19.0'
3131
```
3232

3333
The Java SDK is also part of the [Speech Devices SDK](../speech-devices-sdk.md).

articles/cognitive-services/Speech-Service/includes/get-speech-sdk-linux.md

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ ms.author: eur
88

99
:::row:::
1010
:::column span="3":::
11-
The Speech SDK only supports **Ubuntu 16.04** (until September), **Ubuntu 18.04/20.04**, **Debian 9/10**, **Red Hat Enterprise Linux (RHEL) 7/8**, and **CentOS 7/8** on the following target architectures when used with Linux:
11+
The Speech SDK only supports **Ubuntu 16.04** (until September 2021), **Ubuntu 18.04/20.04**, **Debian 9/10**, **Red Hat Enterprise Linux (RHEL) 7/8**, and **CentOS 7/8** on the following target architectures when used with Linux:
1212
:::column-end:::
1313
:::column:::
1414
<br>
1515
<div class="icon is-large">
16-
<img alt="Linux" src="/media/logos/logo_linux-color.svg" width="60px">
16+
<img alt="Linux" src="https://docs.microsoft.com/media/logos/logo_linux.svg" width="60px">
1717
</div>
1818
:::column-end:::
1919
:::row-end:::
@@ -34,29 +34,23 @@ ms.author: eur
3434
For a native application, the Speech SDK relies on `libMicrosoft.CognitiveServices.Speech.core.so`. Make sure the target architecture (x86, x64) matches the application. Depending on the Linux version, additional dependencies may be required.
3535

3636
- The shared libraries of the GNU C library (including the POSIX Threads Programming library, `libpthreads`)
37-
- The OpenSSL library (`libssl.so.1.0.0` or `libssl.so.1.0.2`)
38-
- The shared library for ALSA applications (`libasound.so.2`)
37+
- The OpenSSL library (`libssl`)
38+
- The shared library for ALSA applications (`libasound`)
3939

40-
# [Ubuntu 16.04/18.04/20.04](#tab/ubuntu)
40+
# [Ubuntu 18.04/20.04](#tab/ubuntu)
4141

4242
```Bash
4343
sudo apt-get update
44-
sudo apt-get install build-essential libssl1.0.0 libasound2 wget
44+
sudo apt-get install build-essential libssl-dev libasound2 wget
4545
```
4646

47-
> [!NOTE]
48-
> If libssl1.0.x is not available, install libssl1.1 instead.
49-
5047
# [Debian 9/10](#tab/debian)
5148

5249
```Bash
5350
sudo apt-get update
54-
sudo apt-get install build-essential libssl1.0.2 libasound2 wget
51+
sudo apt-get install build-essential libssl-dev libasound2 wget
5552
```
5653

57-
> [!NOTE]
58-
> If libssl1.0.x is not available, install libssl1.1 instead.
59-
6054
# [RHEL 7/8 and CentOS 7/8](#tab/rhel-centos)
6155

6256
```Bash

articles/cognitive-services/Speech-Service/includes/get-speech-sdk-macos.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,16 @@ ms.date: 03/27/2020
66
ms.author: eur
77
---
88

9-
When developing for macOS, there are three Speech SDKs available.
9+
When developing for macOS, the following Speech SDKs are available.
1010

11-
- The Objective-C Speech SDK is available natively as a CocoaPod package
12-
- The .NET Speech SDK could be used with **Xamarin.Mac** as it implements .NET Standard 2.0
13-
- The Python Speech SDK is available as a PyPI module
14-
15-
> [!TIP]
16-
> For details using the Objective-C Speech SDK with Swift, see <a href="https://developer.apple.com/documentation/swift/imported_c_and_objective-c_apis/importing_objective-c_into_swift" target="_blank">Importing Objective-C into Swift </a>.
11+
- The Objective-C/Swift Speech SDK is available natively as a CocoaPod package for Mac x64 and ARM based silicons. For details about using the Objective-C Speech SDK with Swift, see <a href="https://developer.apple.com/documentation/swift/imported_c_and_objective-c_apis/importing_objective-c_into_swift" target="_blank">Importing Objective-C into Swift </a>.
12+
- The .NET Speech SDK is available via NuGet package and could be used with **Xamarin.Mac** and **Unity** application frameworks.
13+
- The Python Speech SDK is available as a PyPI module for Python versions 3.7 and higher.
14+
- The Java Speech SDK is available via the Maven repository as a JAR package.
1715

1816
### System requirements
1917

20-
- A macOS version 10.13 or later
18+
- A macOS version 10.14 or later
2119

2220
# [Xcode](#tab/mac-xcode)
2321

@@ -34,7 +32,7 @@ When developing for macOS, there are three Speech SDKs available.
3432
:::row-end:::
3533

3634
```
37-
platform :ios, '9.3'
35+
platform :osx, 10.14
3836
use_frameworks!
3937
4038
target 'MyApp' do

articles/cognitive-services/Speech-Service/includes/how-to/compressed-audio-input/csharp/examples.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.custom: devx-track-csharp
99

1010
To configure Speech SDK to accept compressed audio input, create `PullAudioInputStream` or `PushAudioInputStream`. Then, create an `AudioConfig` from an instance of your stream class, specifying the compression format of the stream. Find related sample code snippets in [About the Speech SDK audio input stream API](../../../../how-to-use-audio-input-streams.md).
1111

12-
Let's assume that you have an input stream class called `pushStream` and are using OPUS/OGG. Your code may look like this:
12+
Let's assume that you have an input stream class called `pullStream` and are using OPUS/OGG. Your code may look like this:
1313

1414
```csharp
1515
using Microsoft.CognitiveServices.Speech;
@@ -29,7 +29,7 @@ var audioFormat =
2929
AudioStreamContainerFormat.OGG_OPUS);
3030
var audioConfig =
3131
AudioConfig.FromStreamInput(
32-
pushStream,
32+
pullStream,
3333
audioFormat);
3434

3535
using var recognizer = new SpeechRecognizer(speechConfig, audioConfig);

0 commit comments

Comments
 (0)