|
Add this skill
npx mdskills install sickn33/azure-ai-transcription-pySDK documentation without agent-specific instructions or trigger conditions for autonomous use
1---2name: azure-ai-transcription-py3description: |4 Azure AI Transcription SDK for Python. Use for real-time and batch speech-to-text transcription with timestamps and diarization.5 Triggers: "transcription", "speech to text", "Azure AI Transcription", "TranscriptionClient".6package: azure-ai-transcription7---89# Azure AI Transcription SDK for Python1011Client library for Azure AI Transcription (speech-to-text) with real-time and batch transcription.1213## Installation1415```bash16pip install azure-ai-transcription17```1819## Environment Variables2021```bash22TRANSCRIPTION_ENDPOINT=https://<resource>.cognitiveservices.azure.com23TRANSCRIPTION_KEY=<your-key>24```2526## Authentication2728Use subscription key authentication (DefaultAzureCredential is not supported for this client):2930```python31import os32from azure.ai.transcription import TranscriptionClient3334client = TranscriptionClient(35 endpoint=os.environ["TRANSCRIPTION_ENDPOINT"],36 credential=os.environ["TRANSCRIPTION_KEY"]37)38```3940## Transcription (Batch)4142```python43job = client.begin_transcription(44 name="meeting-transcription",45 locale="en-US",46 content_urls=["https://<storage>/audio.wav"],47 diarization_enabled=True48)49result = job.result()50print(result.status)51```5253## Transcription (Real-time)5455```python56stream = client.begin_stream_transcription(locale="en-US")57stream.send_audio_file("audio.wav")58for event in stream:59 print(event.text)60```6162## Best Practices63641. **Enable diarization** when multiple speakers are present652. **Use batch transcription** for long files stored in blob storage663. **Capture timestamps** for subtitle generation674. **Specify language** to improve recognition accuracy685. **Handle streaming backpressure** for real-time transcription696. **Close transcription sessions** when complete70
Full transparency — inspect the skill content before installing.