Azure-Samples/cognitive-services-speech-sdk

Sample code for the Microsoft Cognitive Services Speech SDK

What it solves

This repository provides a comprehensive set of code samples to help developers integrate speech-enabled features into their applications using the Microsoft Cognitive Services Speech SDK. It bridges the gap between SDK documentation and real-world implementation across multiple platforms and languages.

How it works

The project organizes examples into quickstarts and advanced samples. These samples demonstrate how to interact with the Azure Speech Service via the SDK, covering three primary modalities: speech-to-text (recognition), text-to-speech (synthesis), and speech-to-speech (translation). It also includes tools for managing audio hardware, such as enumerating connected microphones and speakers.

Who it’s for

Developers building cross-platform applications (Windows, Linux, macOS, Android, iOS, and Web) who need to add voice interaction, transcription, or translation capabilities using C++, C#, Java, JavaScript, Node.js, Python, Objective-C, or Swift.

Highlights

  • Multi-platform support: Examples for almost every major OS and mobile platform.
  • Broad language coverage: Implementation samples in eight different programming languages.
  • Speech-to-Text: Quickstarts for one-shot recognition from microphones and files.
  • Text-to-Speech: Examples of synthesis to default speakers or result buffers.
  • Speech Translation: One-shot translation and transcription samples.
  • Voice Assistant Integration: Samples for creating custom voice assistants using the DialogServiceConnector.

Related

  • Project
  • Project
  • Project
  • Project
  • Project