Azure-Samples/cognitive-services-speech-sdk
Sample code for the Microsoft Cognitive Services Speech SDK
What it solves
This repository provides practical code examples to help developers integrate speech-enabled features into their applications using the Microsoft Cognitive Services Speech SDK. It bridges the gap between documentation and implementation by providing ready-to-run samples for various platforms and languages.
How it works
The project hosts a collection of quickstarts and complex scenarios that utilize the Azure Speech SDK. These samples demonstrate how to interact with Azure's speech services via subscription keys, covering three primary modalities:
- Speech Recognition: Converting spoken audio from a microphone or file into text.
- Speech Translation: Translating spoken audio into text in another language.
- Speech Synthesis: Converting text into spoken audio (text-to-speech) played through a speaker.
Who it’s for
Developers building cross-platform applications (Windows, Linux, macOS, Android, iOS, and Web) who need to add voice interfaces, transcription services, or translation capabilities using C++, C#, Java, JavaScript/Node.js, Python, Objective-C, or Swift.
Highlights
- Multi-language support: Examples provided for a wide array of programming languages.
- Cross-platform coverage: Samples for desktop, mobile, and web environments.
- Coded examples for core features: Dedicated quickstarts for one-shot recognition, translation, and synthesis.
- Advanced scenarios: Includes samples for batch transcription, batch synthesis, and audio device enumeration.
Related
- Project
Azure-Samples/Cognitive-Speech-TTSA Microsoft‑maintained repo of SDK and REST code samples showing how to use Azure Cognitive Services Speech (Text‑to‑Speech), with links to customer stories, blog posts, and research. Ideal for developers who need ready‑to‑run examples for realistic, multilingual synthetic voices, custom neural voices, and related Azure Speech features.
- Project
Migushthe2nd/MsEdgeTTSA Node.js library that provides an interface to the Microsoft Edge Read Aloud text-to-speech service, allowing developers to generate high-quality spoken audio from text.
- Project
microsoft/cognitive-services-speech-sdk-jsThe Microsoft Cognitive Services Speech SDK for JavaScript is a library that brings speech capabilities to web and Node.js apps. It's installed via npm, has official samples and docs, can be built from source, and includes a test suite that needs Azure credentials. It collects telemetry by default (disableable), and contributions require a CLA.
- Project
microsoft/skillsMicrosoft / skills is a genuine open‑source toolbox that equips AI coding agents (e.g., GitHub Copilot) with ready‑made, Azure‑specific “skills” – code snippets, templates, and MCP server scaffolding – so the agents can generate correct Azure SDK calls, manage Foundry resources, and follow governance patterns. Install via `npx skills add microsoft/skills`, pick only the needed skills (≈175 across Python, .NET, TypeScript, Java, Rust), and use the provided `AGENTS.md` and MCP configs to build custom agents for backend, frontend, infrastructure, or planning tasks.
- Project
aliyun/alibabacloud-bailian-speech-demoA repository of sample code for Alibaba Cloud’s Bailian speech AI models, covering speech recognition, synthesis, real-time conversation, music generation, and more. It provides ready-to-run examples for common use cases like call centers, meetings, and video analysis, with free trial quotas and community contributions.