Skip to content

Commit c4e0a67

Browse files
authored
Merge pull request #114577 from BrianMouncer/BrianMouncer-pr/1.12.0_updates
[CogSvcs] Azure docs updates for the v1.12.0 Speech SDK release.
2 parents 82238b7 + 1833e89 commit c4e0a67

21 files changed

+138
-48
lines changed

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

Lines changed: 45 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ ldconfig -p | grep libstdc++
4040

4141
The output on vanilla RHEL/CentOS 7 (x64) is:
4242

43-
```
43+
```bash
4444
libstdc++.so.6 (libc6,x86-64) => /lib64/libstdc++.so.6
4545
```
4646

@@ -52,7 +52,7 @@ strings /lib64/libstdc++.so.6 | egrep "GLIBCXX_|CXXABI_"
5252

5353
The output should be:
5454

55-
```
55+
```bash
5656
...
5757
GLIBCXX_3.4.19
5858
...
@@ -67,7 +67,11 @@ The Speech SDK requires **CXXABI_1.3.9** and **GLIBCXX_3.4.21**. You can find th
6767
6868
## Example
6969

70-
This is a sample command that illustrates how to configure RHEL/CentOS 7 x64 for development (C++, C#, Java, Python) with the Speech SDK 1.10.0 or later:
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:
71+
72+
### 1. General setup
73+
74+
First install all general dependencies:
7175

7276
```bash
7377
# Only run ONE of the following two commands
@@ -81,16 +85,53 @@ sudo yum update -y
8185
sudo yum groupinstall -y "Development tools"
8286
sudo yum install -y alsa-lib dotnet-sdk-2.1 java-1.8.0-openjdk-devel openssl python3
8387
sudo yum install -y gstreamer1 gstreamer1-plugins-base gstreamer1-plugins-good gstreamer1-plugins-bad-free gstreamer1-plugins-ugly-free
88+
```
8489

85-
# Build GCC 5.4.0 and runtimes and install them under /usr/local
90+
### 2. C/C++ compiler and runtime libraries
91+
92+
Install the prerequisite packages with this command:
93+
94+
```bash
8695
sudo yum install -y gmp-devel mpfr-devel libmpc-devel
96+
```
97+
98+
> [!NOTE]
99+
> The libmpc-devel package has been deprecated in the RHEL 7.8 update. If the output of the previous command includes a message
100+
>
101+
> ```bash
102+
> No package libmpc-devel available.
103+
> ```
104+
>
105+
> then the necessary files need to be installed from original sources. Run the following commands:
106+
>
107+
> ```bash
108+
> curl https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz -O
109+
> tar zxf mpc-1.1.0.tar.gz
110+
> mkdir mpc-1.1.0-build && cd mpc-1.1.0-build
111+
> ../mpc-1.1.0/configure --prefix=/usr/local --libdir=/usr/local/lib64
112+
> make -j$(nproc)
113+
> sudo make install-strip
114+
> ```
115+
116+
Next update the compiler and runtime libraries:
117+
118+
```bash
119+
# Build GCC 5.4.0 and runtimes and install them under /usr/local
87120
curl https://ftp.gnu.org/gnu/gcc/gcc-5.4.0/gcc-5.4.0.tar.bz2 -O
88121
tar jxf gcc-5.4.0.tar.bz2
89122
mkdir gcc-5.4.0-build && cd gcc-5.4.0-build
90123
../gcc-5.4.0/configure --enable-languages=c,c++ --disable-bootstrap --disable-multilib --prefix=/usr/local
91124
make -j$(nproc)
92125
sudo make install-strip
126+
```
127+
128+
If the updated compiler and libraries need to be deployed on several machines, you can simply copy them from under `/usr/local` to other machines. If only the runtime libraries are needed then the files in `/usr/local/lib64` will be enough.
129+
130+
### 3. Environment settings
93131

132+
Run the following commands to complete the configuration:
133+
134+
```bash
94135
# Set SSL cert file location
95136
# (this is required for any development/testing with Speech SDK)
96137
export SSL_CERT_FILE=/etc/pki/tls/certs/ca-bundle.crt

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ The following steps are required when using audio input streams:
2020

2121
- Identify the format of the audio stream. The format must be supported by the Speech SDK and the Speech service. Currently, only the following configuration is supported:
2222

23-
Audio samples in PCM format, one channel, 16000 samples per second, 32000 bytes per second, two block align (16 bit including padding for a sample), 16 bits per sample.
23+
Audio samples in PCM format, one channel, 16 bits per sample, 8000 or 16000 samples per second (16000 or 32000 bytes per second), two block align (16 bit including padding for a sample).
2424

2525
The corresponding code in the SDK to create the audio format looks like this:
2626

2727
```csharp
2828
byte channels = 1;
2929
byte bitsPerSample = 16;
30-
int samplesPerSecond = 16000;
30+
int samplesPerSecond = 16000; // or 8000
3131
var audioFormat = AudioStreamFormat.GetWaveFormatPCM(samplesPerSecond, bitsPerSample, channels);
3232
```
3333

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ zone_pivot_groups: programming-languages-set-twelve
1717

1818
The Speech service SDK **Compressed Audio Input Stream** API provides a way to stream compressed audio to the Speech service using either a `PullStream` or `PushStream`.
1919

20-
Streaming compressed input audio is currently supported for C#, C++, Java on Windows (UWP applications aren't supported) and Linux (Ubuntu 16.04, Ubuntu 18.04, Debian 9, RHEL 8, CentOS 8). It is also supported for Java in Android and Objective-C in iOS platform.
20+
Streaming compressed input audio is currently supported for C#, C++, Java on Windows (UWP applications aren't supported) and Linux (Ubuntu 16.04, Ubuntu 18.04, Debian 9, RHEL 7/8, CentOS 7/8). It is also supported for Java in Android and Objective-C in iOS platform.
2121
* Speech SDK version 1.10.0 or later is required for RHEL 8 and CentOS 8
2222
* Speech SDK version 1.11.0 or later is required for for Windows.
2323

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.author: trbye
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) <span class="docon docon-navigate-external x-hidden-focus"></span></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.11.0`.
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) <span class="docon docon-navigate-external x-hidden-focus"></span></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.12.0`.
1212
:::column-end:::
1313
:::column:::
1414
<br>
@@ -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.11.0'
30+
implementation 'com.microsoft.cognitiveservices.speech:client-sdk:1.12.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: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ ms.author: trbye
99
:::row:::
1010
:::column span="3":::
1111
The Speech SDK only supports **Ubuntu 16.04/18.04**, **Debian 9**, **Red Hat Enterprise Linux (RHEL) 7/8**, and **CentOS 7/8** on the following target architectures when used with Linux:
12-
- x64
1312
:::column-end:::
1413
:::column:::
1514
<br>
@@ -19,11 +18,13 @@ ms.author: trbye
1918
:::column-end:::
2019
:::row-end:::
2120

22-
> [!IMPORTANT]
23-
> When targeting Linux ARM64, and using C# - the .NET Core 3.x (dotnet-sdk-3.x package) is required. If you're targeting ARM32 or ARM64, Python is not supported.
21+
- x86 (Debian/Ubuntu), x64, ARM32 (Debian/Ubuntu), and ARM64 (Debian/Ubuntu) for C++ development
22+
- x64, ARM32 (Debian/Ubuntu), and ARM64 (Debian/Ubuntu) for Java
23+
- x64, ARM32 (Debian/Ubuntu), and ARM64 (Debian/Ubuntu) for .NET Core
24+
- x64 for Python
2425

25-
> [!NOTE]
26-
> The x86 architectures of Ubuntu 16.04, Ubuntu 18.04, and Debian 9 only support C++ development with the Speech SDK.
26+
> [!IMPORTANT]
27+
> For C# on Linux ARM64, the .NET Core 3.x (dotnet-sdk-3.x package) is required.
2728
2829
### System requirements
2930

@@ -55,10 +56,8 @@ sudo yum install alsa-lib openssl
5556
```
5657

5758
> [!IMPORTANT]
58-
> Follow the instructions on [how to configure RHEL/CentOS 7 for Speech SDK](~/articles/cognitive-services/speech-service/how-to-configure-rhel-centos-7.md).
59-
60-
> [!TIP]
61-
> On RHEL/CentOS 8, follow the instructions on [how to configure OpenSSL for Linux](../how-to-configure-openssl-linux.md).
59+
> - On RHEL/CentOS 7, follow the instructions on [how to configure RHEL/CentOS 7 for Speech SDK](~/articles/cognitive-services/speech-service/how-to-configure-rhel-centos-7.md).
60+
> - On RHEL/CentOS 8, follow the instructions on [how to configure OpenSSL for Linux](~/articles/cognitive-services/speech-service/how-to-configure-openssl-linux.md).
6261
6362
---
6463

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ platform :ios, '9.3'
3838
use_frameworks!
3939
4040
target 'MyApp' do
41-
pod 'MicrosoftCognitiveServicesSpeech', '~> 1.11.0'
41+
pod 'MicrosoftCognitiveServicesSpeech', '~> 1.12.0'
4242
end
4343
```
4444

articles/cognitive-services/Speech-Service/includes/how-to/compressed-audio-input/cpp/prerequisites.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ gstreamer1.0-plugins-bad \
1818
gstreamer1.0-plugins-ugly
1919
```
2020

21-
# [REHL / CentOS](#tab/centos)
21+
# [RHEL/CentOS 7/8](#tab/centos)
2222

2323
```sh
2424
sudo yum install gstreamer1 \
@@ -29,6 +29,10 @@ gstreamer1-plugins-ugly-free
2929
```
3030

3131
> [!NOTE]
32-
> On RHEL / CentOS, follow the instructions on [how to configure OpenSSL for Linux](../../../../how-to-configure-openssl-linux.md).
32+
> - On RHEL/CentOS 7, follow the instructions on [how to configure RHEL/CentOS 7 for Speech SDK](~/articles/cognitive-services/speech-service/how-to-configure-rhel-centos-7.md).
33+
> - On RHEL/CentOS 8, follow the instructions on [how to configure OpenSSL for Linux](~/articles/cognitive-services/speech-service/how-to-configure-openssl-linux.md).
34+
35+
> [!IMPORTANT]
36+
> The Opus audio coding format is not supported by the Speech SDK on RHEL/CentOS 7.
3337
3438
---

articles/cognitive-services/Speech-Service/includes/quickstarts/from-microphone/go/go.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Before you get started:
2020
Update the go.mod file with the latest SDK version by adding this line
2121
```sh
2222
require (
23-
github.com/Microsoft/cognitive-services-speech-sdk-go v1.11.0-alpha1
23+
github.com/Microsoft/cognitive-services-speech-sdk-go v1.12.0-alpha1
2424
)
2525
```
2626

articles/cognitive-services/Speech-Service/includes/quickstarts/platform/cpp-linux.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This guide shows how to install the [Speech SDK](~/articles/cognitive-services/s
1919

2020
## System requirements
2121

22-
Linux (Ubuntu 16.04, Ubuntu 18.04, Debian 9, RHEL 8, CentOS 8)
22+
Linux (Ubuntu 16.04, Ubuntu 18.04, Debian 9, RHEL 7/8, CentOS 7/8)
2323

2424
## Prerequisites
2525

@@ -43,7 +43,7 @@ To complete this quickstart, you'll need:
4343
sudo apt-get install build-essential libssl1.0.2 libasound2 wget
4444
```
4545

46-
* On RHEL/CentOS 8:
46+
* On RHEL/CentOS:
4747

4848
```sh
4949
sudo yum update
@@ -52,7 +52,8 @@ To complete this quickstart, you'll need:
5252
```
5353

5454
> [!NOTE]
55-
> On RHEL/CentOS 8, follow the instructions on [how to configure OpenSSL for Linux](~/articles/cognitive-services/speech-service/how-to-configure-openssl-linux.md).
55+
> - On RHEL/CentOS 7, follow the instructions on [how to configure RHEL/CentOS 7 for Speech SDK](~/articles/cognitive-services/speech-service/how-to-configure-rhel-centos-7.md).
56+
> - On RHEL/CentOS 8, follow the instructions on [how to configure OpenSSL for Linux](~/articles/cognitive-services/speech-service/how-to-configure-openssl-linux.md).
5657

5758
[!INCLUDE [linux-install-sdk](linux-install-sdk.md)]
5859

articles/cognitive-services/Speech-Service/includes/quickstarts/platform/java-jre.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ This guide shows how to install the [Speech SDK](~/articles/cognitive-services/s
2424
- The Java Speech SDK package is available for these operating systems:
2525
- Windows: 64-bit only
2626
- Mac: macOS X version 10.13 or later
27-
- Linux: 64-bit only on Ubuntu 16.04, Ubuntu 18.04, Debian 9, RHEL 8, CentOS 8
27+
- Linux: 64-bit only on Ubuntu 16.04, Ubuntu 18.04, Debian 9, RHEL 7/8, CentOS 7/8
2828

2929
## Prerequisites
3030

@@ -47,15 +47,16 @@ This guide shows how to install the [Speech SDK](~/articles/cognitive-services/s
4747
sudo apt-get install build-essential libssl1.0.2 libasound2
4848
```
4949

50-
- On RHEL/CentOS 8, run the following commands to install the required packages:
50+
- On RHEL/CentOS, run the following commands to install the required packages:
5151

5252
```sh
5353
sudo yum update
5454
sudo yum install alsa-lib java-1.8.0-openjdk-devel openssl
5555
```
5656

5757
> [!NOTE]
58-
> On RHEL/CentOS 8, follow the instructions on [how to configure OpenSSL for Linux](~/articles/cognitive-services/speech-service/how-to-configure-openssl-linux.md).
58+
> - On RHEL/CentOS 7, follow the instructions on [how to configure RHEL/CentOS 7 for Speech SDK](~/articles/cognitive-services/speech-service/how-to-configure-rhel-centos-7.md).
59+
> - On RHEL/CentOS 8, follow the instructions on [how to configure OpenSSL for Linux](~/articles/cognitive-services/speech-service/how-to-configure-openssl-linux.md).
5960
6061
- On Windows, you need the [Microsoft Visual C++ Redistributable for Visual Studio 2019](https://support.microsoft.com/help/2977003/the-latest-supported-visual-c-downloads) for your platform. Note that installing this for the first time may require you to restart Windows before continuing with this guide.
6162

0 commit comments

Comments
 (0)