azure-speech-to-text-rest-py
用于短音频的 Azure 语音转文本 REST API(Python)。用于无需语音 SDK 对最长 60 秒的音频文件进行简单语音识别。 触发词:“speech to text REST”“短音频转写”“语音识别 REST API”“STT REST”“recognize speech REST”。 不适用于:长音频(超过 60 秒)、实时流式传输、批量转写、自定义语音模型、语音翻译。请改用语音 SDK 或批量转写 API。
机器翻译查看英文原文
Azure Speech to Text REST API for short audio (Python). Use for simple speech recognition of audio files up to 60 seconds without the Speech SDK. Triggers: "speech to text REST", "short audio transcription", "speech recognition REST API", "STT REST", "recognize speech REST". DO NOT USE FOR: Long audio (>60 seconds), real-time streaming, batch transcription, custom speech models, speech translation. Use Speech SDK or Batch Transcription API instead.
适用对象:云服务、运维与安全。自动收录 · 待核查。
原作者说明节选
从固定版本的 SKILL.md 提取,保留原文语言。以下内容属于作者说明,本站尚未验证安装、兼容或运行结果。
查看英文原文
原文涵盖的主题
- Azure Speech to Text REST API for Short Audio
- Prerequisites
- Environment Variables
- Installation
- Authentication & Lifecycle
- Quick Start
- Audio Requirements
- Content-Type Headers
Simple REST API for speech-to-text transcription of short audio files (up to 60 seconds). No SDK required - just HTTP requests. 1. Azure subscription - Create one free 2. Speech resource - Create in Azure Portal 3. Get credentials - After deployment, go to resource > Keys and Endpoint 🔑 Two rules apply to every code sample below: 1. Two auth modes are supported. Use a subscription key (Ocp-Apim-Subscription-Key header) for quick access, or a Microsoft Entra token (including one acquired with DefaultAzureCredential) via the Authorization request header (see "Option 2" below). Never hardcode credentials in source. 2. Use context managers for files and HTTP resources so file handles and network connections are released deterministically: - Sync: with open(...) as f: and (when reusing connections) with requests.Session() as session: - Async: async with aiohttp.ClientSession() as session: Snippets may abbreviate this setup, but production code should always follow both rules. | Format | Codec | Sample Rate | Notes | |--------|-------|-------------|-------| | WAV | PCM | 16 kHz, mono | Recommended | | OGG | OPUS | 16 kHz, mono | Smaller file size | Limitations: Maximum 60 seconds of aud
这里只展示节选,请以完整原文和当前要求为准。
- 来源仓库
- microsoft/skills
- 源文件
- .github/plugins/azure-sdk-python/skills/azure-speech-to-text-rest-py/SKILL.md
- 固定版本
- 9287b443662d2433c85621c7325ee72a0ce499b5
来源与内容状态
本条为自动发现的元数据,尚未完成人工文档核查;适用性与运行结果待核查。
原作者:Microsoft Skills · 原作者仓库元数据。文档核查:未核查。最近来源检查:2026-11-10T19:02:06.439Z。
分类由名称、说明与路径规则生成,分类不代表已核实适配。
许可与权利归属
MIT。第三方内容及版权归原作者,使用条件以原文为准。
许可原文 ↗本站没有因同步、复制或用户自报成功而将资源标为运行验证通过。
限制与注意事项
- 元数据收录不代表本站已经安装、适配、实测或进行安全审查。