返回顶部
a

azure-ai-transcription-pyAzure AI转录

|

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.0
安全检测
已通过
2,067
下载量
免费
免费
1
收藏
概述
安装方式
版本历史

azure-ai-transcription-py

Azure AI Transcription SDK for Python

用于Azure AI转录(语音转文本)的客户端库,支持实时转录和批量转录。

安装

bash
pip install azure-ai-transcription

环境变量

bash
TRANSCRIPTION_ENDPOINT=https://<资源名称>.cognitiveservices.azure.com
TRANSCRIPTION_KEY=<你的密钥>

身份验证

使用订阅密钥进行身份验证(此客户端不支持DefaultAzureCredential):

python
import os
from azure.ai.transcription import TranscriptionClient

client = TranscriptionClient(
endpoint=os.environ[TRANSCRIPTION_ENDPOINT],
credential=os.environ[TRANSCRIPTION_KEY]
)

转录(批量)

python
job = client.begin_transcription(
name=会议转录,
locale=en-US,
content_urls=[https://<存储路径>/audio.wav],
diarization_enabled=True
)
result = job.result()
print(result.status)

转录(实时)

python
stream = client.beginstreamtranscription(locale=en-US)
stream.sendaudiofile(audio.wav)
for event in stream:
print(event.text)

最佳实践

  1. 1. 启用说话人分离:当存在多个说话人时
  2. 使用批量转录:处理存储在blob存储中的长文件
  3. 捕获时间戳:用于字幕生成
  4. 指定语言:提高识别准确率
  5. 处理流式背压:用于实时转录
  6. 关闭转录会话:完成后及时关闭

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 azure-ai-transcription-py-1776376212 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 azure-ai-transcription-py-1776376212 技能

通过命令行安装

skillhub install azure-ai-transcription-py-1776376212

下载

⬇ 下载 azure-ai-transcription-py v0.1.0(免费)

文件大小: 1.49 KB | 发布时间: 2026-4-17 16:05

v0.1.0 最新 2026-4-17 16:05
Initial release of azure-ai-transcription-py — Azure AI speech-to-text SDK for Python.

- Provides client library for real-time and batch transcription with timestamps and diarization.
- Supports subscription key authentication.
- Offers usage examples for both batch and streaming transcription.
- Lists essential environment variables for authentication and endpoint configuration.
- Includes best practices for optimal transcription results.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部