Skip to content

Commit

Permalink
Samples updates for 1.41.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rhurey committed Oct 11, 2024
1 parent 0da4f37 commit cf7591d
Show file tree
Hide file tree
Showing 60 changed files with 93 additions and 191 deletions.
7 changes: 1 addition & 6 deletions quickstart/cpp/linux/from-microphone/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,7 @@ See the [accompanying article](https://docs.microsoft.com/azure/cognitive-servic

* A subscription key for the Speech service. See [Try the speech service for free](https://docs.microsoft.com/azure/cognitive-services/speech-service/get-started).
* A Linux PC with a working microphone.
* On Ubuntu or Debian, install these packages to build and run this sample:

```sh
sudo apt-get update
sudo apt-get install build-essential libssl-dev libasound2 wget
```
* See the [Linux platform requirements](https://learn.microsoft.com/azure/ai-services/speech-service/quickstarts/setup-platform?tabs=linux&pivots=programming-language-cpp#platform-requirements) for installing the required dependencies.

## Build the sample

Expand Down
2 changes: 1 addition & 1 deletion quickstart/cpp/linux/from-microphone/helloworld.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ void recognizeSpeech() {
cout << "Say something...\n";

// Starts speech recognition, and returns after a single utterance is recognized. The end of a
// single utterance is determined by listening for silence at the end or until a maximum of 15
// single utterance is determined by listening for silence at the end or until a maximum of about 30
// seconds of audio is processed. The task returns the recognition text as result.
// Note: Since RecognizeOnceAsync() returns only a single utterance, it is suitable only for single
// shot recognition like command or query.
Expand Down
7 changes: 1 addition & 6 deletions quickstart/cpp/linux/text-to-speech/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,7 @@ See the [accompanying article](https://docs.microsoft.com/azure/cognitive-servic

* A subscription key for the Speech service. See [Try the speech service for free](https://docs.microsoft.com/azure/cognitive-services/speech-service/get-started).
* A Linux PC with a working speaker or headset.
* On Ubuntu or Debian, install these packages to build and run this sample:

```sh
sudo apt-get update
sudo apt-get install build-essential libssl-dev libasound2 wget
```
* See the [Linux platform requirements](https://learn.microsoft.com/azure/ai-services/speech-service/quickstarts/setup-platform?tabs=linux&pivots=programming-language-cpp#platform-requirements) for installing the required dependencies.

## Build the sample

Expand Down
2 changes: 1 addition & 1 deletion quickstart/cpp/windows/from-file/helloworld/helloworld.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ void recognizeSpeechFromWavFile()
auto recognizer = SpeechRecognizer::FromConfig(config, audioInput);

// Starts speech recognition, and returns after a single utterance is recognized. The end of a
// single utterance is determined by listening for silence at the end or until a maximum of 15
// single utterance is determined by listening for silence at the end or until a maximum of about 30
// seconds of audio is processed. The task returns the recognition text as result.
// Note: Since RecognizeOnceAsync() returns only a single utterance, it is suitable only for single
// shot recognition like command or query.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ void recognizeSpeech()
cout << "Say something...\n";

// Starts speech recognition, and returns after a single utterance is recognized. The end of a
// single utterance is determined by listening for silence at the end or until a maximum of 15
// single utterance is determined by listening for silence at the end or until a maximum of about 30
// seconds of audio is processed. The task returns the recognition text as result.
// Note: Since RecognizeOnceAsync() returns only a single utterance, it is suitable only for single
// shot recognition like command or query.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ void recognizeIntent()
cout << "Say something...\n";

// Starts intent recognition, and returns after a single utterance is recognized. The end of a
// single utterance is determined by listening for silence at the end or until a maximum of 15
// single utterance is determined by listening for silence at the end or until a maximum of about 30
// seconds of audio is processed. The task returns the recognition text as result.
// Note: Since RecognizeOnceAsync() returns only a single utterance, it is suitable only for single
// shot recognition like command or query.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ void TranslationWithMicrophone()
cout << "Say something...\n";

// Starts translation, and returns after a single utterance is recognized. The end of a
// single utterance is determined by listening for silence at the end or until a maximum of 15
// single utterance is determined by listening for silence at the end or until a maximum of about 30
// seconds of audio is processed. The task returns the recognized text as well as the translation.
// Note: Since RecognizeOnceAsync() returns only a single utterance, it is suitable only for single
// shot recognition like command or query.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public static async Task RecognizeSpeechAsync()
Console.WriteLine("Say something...");

// Starts speech recognition, and returns after a single utterance is recognized. The end of a
// single utterance is determined by listening for silence at the end or until a maximum of 15
// single utterance is determined by listening for silence at the end or until a maximum of about 30
// seconds of audio is processed. The task returns the recognition text as result.
// Note: Since RecognizeOnceAsync() returns only a single utterance, it is suitable only for single
// shot recognition like command or query.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public static async Task RecognizeIntentAsync()
Console.WriteLine("Say something...");

// Starts intent recognition, and returns after a single utterance is recognized. The end of a
// single utterance is determined by listening for silence at the end or until a maximum of 15
// single utterance is determined by listening for silence at the end or until a maximum of about 30
// seconds of audio is processed. The task returns the recognition text as result.
// Note: Since RecognizeOnceAsync() returns only a single utterance, it is suitable only for single
// shot recognition like command or query.
Expand Down
7 changes: 1 addition & 6 deletions quickstart/csharp/dotnetcore/from-microphone/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,7 @@ This sample demonstrates how to recognize speech with C# under .NET 6.0 (Windows
* On Windows, macOS, or Linux:
* [.NET 6.0](https://dotnet.microsoft.com/download/dotnet/6.0)
* On Windows you also need the [Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019](https://support.microsoft.com/help/2977003/the-latest-supported-visual-c-downloads) for your platform.
* On Ubuntu or Debian, run the following commands for the installation of required packages:

```sh
sudo apt-get update
sudo apt-get install libssl-dev libasound2
```
* On Linux, see the [Linux platform requirements](https://learn.microsoft.com/azure/ai-services/speech-service/quickstarts/setup-platform?tabs=linux&pivots=programming-language-csharp#platform-requirements) for installing the required dependencies.

## Build the sample

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static async Task RecognizeSpeechAsync()
Console.WriteLine("Say something...");

// Starts speech recognition, and returns after a single utterance is recognized. The end of a
// single utterance is determined by listening for silence at the end or until a maximum of 15
// single utterance is determined by listening for silence at the end or until a maximum of about 30
// seconds of audio is processed. The task returns the recognition text as result.
// Note: Since RecognizeOnceAsync() returns only a single utterance, it is suitable only for single
// shot recognition like command or query.
Expand Down
7 changes: 1 addition & 6 deletions quickstart/csharp/dotnetcore/text-to-speech/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,7 @@ See the [accompanying article](https://docs.microsoft.com/azure/cognitive-servic
* On Windows or Linux:
* [.NET 6.0](https://dotnet.microsoft.com/download/dotnet/6.0)
* On Windows you also need the [Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019](https://support.microsoft.com/help/2977003/the-latest-supported-visual-c-downloads) for your platform.
* On Ubuntu or Debian, run the following commands for the installation of required packages:

```sh
sudo apt-get update
sudo apt-get install libssl-dev libasound2
```
* On Linux, see the [Linux platform requirements](https://learn.microsoft.com/azure/ai-services/speech-service/quickstarts/setup-platform?tabs=linux&pivots=programming-language-csharp#platform-requirements) for installing the required dependencies.

## Build the sample

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,7 @@ See the [accompanying article](https://docs.microsoft.com/azure/cognitive-servic
* On Windows or Linux:
* [.NET 6.0](https://dotnet.microsoft.com/download/dotnet/6.0)
* On Windows you also need the [Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019](https://support.microsoft.com/help/2977003/the-latest-supported-visual-c-downloads) for your platform.
* On Ubuntu or Debian, run the following commands for the installation of required packages:

```sh
sudo apt-get update
sudo apt-get install libssl-dev libasound2
```
* On Linux, see the [Linux platform requirements](https://learn.microsoft.com/azure/ai-services/speech-service/quickstarts/setup-platform?tabs=linux&pivots=programming-language-csharp#platform-requirements) for installing the required dependencies.

## Build the sample

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public async void ButtonClick()
}

// Starts speech recognition, and returns after a single utterance is recognized. The end of a
// single utterance is determined by listening for silence at the end or until a maximum of 15
// single utterance is determined by listening for silence at the end or until a maximum of about 30
// seconds of audio is processed. The task returns the recognition text as result.
// Note: Since RecognizeOnceAsync() returns only a single utterance, it is suitable only for single
// shot recognition like command or query.
Expand Down
2 changes: 1 addition & 1 deletion quickstart/csharp/uwp/from-microphone/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ See the [accompanying article](https://docs.microsoft.com/azure/cognitive-servic

To debug the app and then run it, press F5 or use **Debug** \> **Start Debugging**. To run the app without debugging, press Ctrl+F5 or use **Debug** \> **Start Without Debugging**.

When you see the `Enable microphone` button, click it. Then select the `Speech recognition with microphone input` button and start speaking. The next (up to) 15 seconds of English speech will be sent to the Speech service and transcribed.
When you see the `Enable microphone` button, click it. Then select the `Speech recognition with microphone input` button and start speaking. The speech will be sent to the Speech service and transcribed.

## References

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ private async void SpeechRecognitionFromMicrophone_ButtonClicked(object sender,
{
// </create_speech_recognizer_1>
// Starts speech recognition, and returns after a single utterance is recognized. The end of a
// single utterance is determined by listening for silence at the end or until a maximum of 15
// single utterance is determined by listening for silence at the end or until a maximum of about 30
// seconds of audio is processed. The task returns the recognition text as result.
// Note: Since RecognizeOnceAsync() returns only a single utterance, it is suitable only for single
// shot recognition like command or query.
Expand Down
2 changes: 1 addition & 1 deletion quickstart/csharp/uwp/translate-speech-to-text/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ See the [accompanying article](https://docs.microsoft.com/azure/cognitive-servic

To debug the app and then run it, press F5 or use **Debug** \> **Start Debugging**. To run the app without debugging, press Ctrl+F5 or use **Debug** \> **Start Without Debugging**.

When you see the `Enable microphone` button, click it. Then select the `Translate speech from the microphone input` button and start speaking. The next (up to) 15 seconds of English speech will be sent to the Speech service and transcribed.
When you see the `Enable microphone` button, click it. Then select the `Translate speech from the microphone input` button and start speaking. The speech will be sent to the Speech service and transcribed.

## References

Expand Down
7 changes: 1 addition & 6 deletions quickstart/java/jre/conversation-transcription/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,7 @@ See the [accompanying article](https://docs.microsoft.com/azure/cognitive-servic
* A PC (Windows x64 or a supported Linux distribution) or Mac (macOS 10.14 or later) capable to run Eclipse,[<sup>[1]</sup>](#footnote1) with a working microphone.
* Java 11 JRE/JDK.
* Version 4.8 of [Eclipse](https://www.eclipse.org), 64-bit.[<sup>[1]</sup>](#footnote1)
* On Ubuntu or Debian, run the following commands for the installation of required packages:

```sh
sudo apt-get update
sudo apt-get install libssl-dev libasound2
```
* On Linux, see the [Linux platform requirements](https://learn.microsoft.com/azure/ai-services/speech-service/quickstarts/setup-platform?tabs=linux&pivots=programming-language-java#platform-requirements) for installing the required dependencies.

<small><a name="footnote1">1</a>. This sample has not been verified with Eclipse on ARM platforms.</small>

Expand Down
7 changes: 1 addition & 6 deletions quickstart/java/jre/from-microphone/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,7 @@ See the [accompanying article](https://docs.microsoft.com/azure/cognitive-servic
* A PC (Windows x64 or a supported Linux distribution) or Mac (macOS 10.14 or later) capable to run Eclipse,[<sup>[1]</sup>](#footnote1) with a working microphone.
* Java 8 or 11 JRE/JDK.
* Version 4.8 of [Eclipse](https://www.eclipse.org), 64-bit.[<sup>[1]</sup>](#footnote1)
* On Ubuntu or Debian, run the following commands for the installation of required packages:

```sh
sudo apt-get update
sudo apt-get install libssl-dev libasound2
```
* On Linux, see the [Linux platform requirements](https://learn.microsoft.com/azure/ai-services/speech-service/quickstarts/setup-platform?tabs=linux&pivots=programming-language-java#platform-requirements) for installing the required dependencies.

<small><a name="footnote1">1</a>. This sample has not been verified with Eclipse on ARM platforms.</small>

Expand Down
7 changes: 1 addition & 6 deletions quickstart/java/jre/intent-recognition/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,7 @@ See the [accompanying article](https://docs.microsoft.com/azure/cognitive-servic
* A PC (Windows x64 or a supported Linux distribution) or Mac (macOS 10.14 or later) capable to run Eclipse,[<sup>[1]</sup>](#footnote1) with a working microphone.
* Java 8 or 11 JRE/JDK.
* Version 4.8 of [Eclipse](https://www.eclipse.org), 64-bit.[<sup>[1]</sup>](#footnote1)
* On Ubuntu or Debian, run the following commands for the installation of required packages:

```sh
sudo apt-get update
sudo apt-get install libssl-dev libasound2
```
* On Linux, see the [Linux platform requirements](https://learn.microsoft.com/azure/ai-services/speech-service/quickstarts/setup-platform?tabs=linux&pivots=programming-language-java#platform-requirements) for installing the required dependencies.

<small><a name="footnote1">1</a>. This sample has not been verified with Eclipse on ARM platforms.</small>

Expand Down
7 changes: 1 addition & 6 deletions quickstart/java/jre/meeting-transcription/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,7 @@ See the [accompanying article](https://docs.microsoft.com/azure/cognitive-servic
* A PC (Windows x64 or a supported Linux distribution) or Mac (macOS 10.14 or later) capable to run Eclipse,[<sup>[1]</sup>](#footnote1) with a working microphone.
* Java 11 JRE/JDK.
* Version 4.8 of [Eclipse](https://www.eclipse.org), 64-bit.[<sup>[1]</sup>](#footnote1)
* On Ubuntu or Debian, run the following commands for the installation of required packages:

```sh
sudo apt-get update
sudo apt-get install libssl-dev libasound2
```
* On Linux, see the [Linux platform requirements](https://learn.microsoft.com/azure/ai-services/speech-service/quickstarts/setup-platform?tabs=linux&pivots=programming-language-java#platform-requirements) for installing the required dependencies.

<small><a name="footnote1">1</a>. This sample has not been verified with Eclipse on ARM platforms.</small>

Expand Down
7 changes: 1 addition & 6 deletions quickstart/java/jre/speaker-recognition/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,7 @@ See the [accompanying article](https://docs.microsoft.com/azure/cognitive-servic
* A PC (Windows x64 or a supported Linux distribution) or Mac (macOS 10.14 or later) capable to run Eclipse,[<sup>[1]</sup>](#footnote1) with a working microphone.
* Java 8 or 11 JRE/JDK.
* Version 4.8 of [Eclipse](https://www.eclipse.org), 64-bit.[<sup>[1]</sup>](#footnote1)
* On Ubuntu or Debian, run the following commands for the installation of required packages:

```sh
sudo apt-get update
sudo apt-get install libssl-dev libasound2
```
* On Linux, see the [Linux platform requirements](https://learn.microsoft.com/azure/ai-services/speech-service/quickstarts/setup-platform?tabs=linux&pivots=programming-language-java#platform-requirements) for installing the required dependencies.

<small><a name="footnote1">1</a>. This sample has not been verified with Eclipse on ARM platforms.</small>

Expand Down
7 changes: 1 addition & 6 deletions quickstart/java/jre/text-to-speech/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,7 @@ See the [accompanying article](https://docs.microsoft.com/azure/cognitive-servic
* A PC (Windows x64 or a supported Linux distribution) or Mac (macOS 10.14 or later) capable to run Eclipse,[<sup>[1]</sup>](#footnote1) with a working speaker.
* Java 8 or 11 JRE/JDK.
* Version 4.8 of [Eclipse](https://www.eclipse.org), 64-bit.[<sup>[1]</sup>](#footnote1)
* On Ubuntu or Debian, run the following commands for the installation of required packages:

```sh
sudo apt-get update
sudo apt-get install libssl-dev libasound2
```
* On Linux, see the [Linux platform requirements](https://learn.microsoft.com/azure/ai-services/speech-service/quickstarts/setup-platform?tabs=linux&pivots=programming-language-java#platform-requirements) for installing the required dependencies.

<small><a name="footnote1">1</a>. This sample has not been verified with Eclipse on ARM platforms.</small>

Expand Down
7 changes: 1 addition & 6 deletions quickstart/java/jre/translate-speech-to-text/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,7 @@ See the [accompanying article](https://docs.microsoft.com/azure/cognitive-servic
* A PC (Windows x64 or a supported Linux distribution) or Mac (macOS 10.14 or later) capable to run Eclipse,[<sup>[1]</sup>](#footnote1) with a working microphone.
* Java 8 or 11 JRE/JDK.
* Version 4.8 of [Eclipse](https://www.eclipse.org), 64-bit.[<sup>[1]</sup>](#footnote1)
* On Ubuntu or Debian, run the following commands for the installation of required packages:

```sh
sudo apt-get update
sudo apt-get install libssl-dev libasound2
```
* On Linux, see the [Linux platform requirements](https://learn.microsoft.com/azure/ai-services/speech-service/quickstarts/setup-platform?tabs=linux&pivots=programming-language-java#platform-requirements) for installing the required dependencies.

<small><a name="footnote1">1</a>. This sample has not been verified with Eclipse on ARM platforms.</small>

Expand Down
7 changes: 1 addition & 6 deletions quickstart/java/jre/virtual-assistant/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,7 @@ See the [accompanying article](https://docs.microsoft.com/azure/cognitive-servic
* Java 8 or 11 JRE/JDK.
* Version 4.8 of [Eclipse](https://www.eclipse.org), 64-bit.[<sup>[1]</sup>](#footnote1)
* A pre-configured bot created using Bot Framework version 4.2 or above. See [here for steps on how to create a bot](https://blog.botframework.com/2018/05/07/build-a-microsoft-bot-framework-bot-with-the-bot-builder-sdk-v4/). The bot would need to subscribe to the new "Direct Line Speech" channel to receive voice inputs.
* On Ubuntu or Debian, run the following commands for the installation of required packages:

```sh
sudo apt-get update
sudo apt-get install libssl-dev libasound2
```
* On Linux, see the [Linux platform requirements](https://learn.microsoft.com/azure/ai-services/speech-service/quickstarts/setup-platform?tabs=linux&pivots=programming-language-java#platform-requirements) for installing the required dependencies.

<small><a name="footnote1">1</a>. This sample has not been verified with Eclipse on ARM platforms.</small>

Expand Down
Loading

0 comments on commit cf7591d

Please sign in to comment.