About the Speech SDK

The Speech Software Development Kit (SDK) gives your applications access to the functions of the Speech Services, making it easier to develop speech-enabled software. Currently, the SDKs provide access to speech-to-text, text-to-speech, speech translation, and intent recognition. A general overview about the capabilities and supported platforms can be found on the documentation entry page.

Programming language Platform API reference
C/C++ Windows, Linux Browse
C# Windows, UWP, .NET Framework (Windows), .NET Core, Unity Browse
Java Android, Windows, Linux Browse
Java* Speech Devices SDK Browse
JavaScript/Node.js Browser, Windows, Linux, macOS Browse
Objective-C iOS Browse
Python Windows, Linux, macOS Browse

* The Java SDK is also available as part of the Speech Devices SDK.

Important

By downloading any of the Speech SDK for Azure Cognitive Services components on this page, you acknowledge its license. See the Microsoft Software License Terms for the Speech SDK.

Get the SDK

Windows

For Windows, we support the following languages:

  • C# (UWP and .NET), C++: You can reference and use the latest version of our Speech SDK NuGet package. The package includes 32-bit and 64-bit client libraries and managed (.NET) libraries. The SDK can be installed in Visual Studio by using NuGet. Search for Microsoft.CognitiveServices.Speech.

  • Java: You can reference and use the latest version of our Speech SDK Maven package, which supports only Windows x64. In your Maven project, add https://csspeechstorage.blob.core.windows.net/maven/ as an additional repository and reference com.microsoft.cognitiveservices.speech:client-sdk:1.5.1 as a dependency.

Linux

Note

Currently, we support only Ubuntu 16.04, Ubuntu 18.04, and Debian 9 on a PC (x86 or x64 for C++ development and x64 for .NET Core, Java, and Python).

Make sure you have the required libraries installed by running the following shell commands:

On Ubuntu:

sudo apt-get update
sudo apt-get install libssl1.0.0 libasound2

On Debian 9:

sudo apt-get update
sudo apt-get install libssl1.0.2 libasound2
  • C#: You can reference and use the latest version of our Speech SDK NuGet package. To reference the SDK, add the following package reference to your project:

    <PackageReference Include="Microsoft.CognitiveServices.Speech" Version="1.5.1" />
    
  • Java: You can reference and use the latest version of our Speech SDK Maven package. In your Maven project, add https://csspeechstorage.blob.core.windows.net/maven/ as an additional repository and reference com.microsoft.cognitiveservices.speech:client-sdk:1.5.1 as a dependency.

  • C++: Download the SDK as a .tar package and unpack the files in a directory of your choice. The following table shows the SDK folder structure:

    Path Description
    license.md License
    ThirdPartyNotices.md Third-party notices
    include Header files for C and C++
    lib/x64 Native x64 library for linking with your application
    lib/x86 Native x86 library for linking with your application

    To create an application, copy or move the required binaries (and libraries) into your development environment. Include them as required in your build process.

Android

The Java SDK for Android is packaged as an AAR (Android Library), 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.5.1.

To consume the package from your Android Studio project, make the following changes:

  • In the project-level build.gradle file, add the following to the repository section:

    maven { url 'https://csspeechstorage.blob.core.windows.net/maven/' }
    
  • In the module-level build.gradle file, add the following to the dependencies section:

    implementation 'com.microsoft.cognitiveservices.speech:client-sdk:1.5.1'
    

The Java SDK is also part of the Speech Devices SDK.

Get the samples

For the latest samples, see the Cognitive Services Speech SDK sample code repository on GitHub.

Next steps