[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DHBE00SFRYPZDYZ99ETWCT":3,"skill-same:01M7DHBE00SFRYPZDYZ99ETWCT":59},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":13,"repositoryHtmlUrl":31,"repositoryHomepageUrl":32,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M7DHBE00SFRYPZDYZ99ETWCT","azure-ai-transcription-py",null,"Azure AI Transcription SDK for Python. Use for real-time and batch speech-to-text transcription with timestamps and diarization.\nTriggers: \"transcription\", \"speech to text\", \"Azure AI Transcription\", \"TranscriptionClient\".","ak2dev\u002Fagentguard","ak2dev","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F233005497?v=4","01M7DGWK3E3XCC276C6YRFSN05","01M7DGWK4J2A9WQ44CS5CRP4R6",0,"MIT","https:\u002F\u002Fgithub.com\u002Fak2dev\u002Fagentguard\u002Fblob\u002Fmain\u002Fbench\u002Fcorpus\u002Fbenign\u002Freal-ms-azure-ai-transcription-py\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: azure-ai-transcription-py\ndescription: |\n  Azure AI Transcription SDK for Python. Use for real-time and batch speech-to-text transcription with timestamps and diarization.\n  Triggers: \"transcription\", \"speech to text\", \"Azure AI Transcription\", \"TranscriptionClient\".\nlicense: MIT\nmetadata:\n  author: Microsoft\n  version: \"1.0.0\"\n  package: azure-ai-transcription\n---\n\n# Azure AI Transcription SDK for Python\n\nClient library for Azure AI Transcription (speech-to-text) with real-time and batch transcription.\n\n## Installation\n\n```bash\npip install azure-ai-transcription\n```\n\n## Environment Variables\n\n```bash\nTRANSCRIPTION_ENDPOINT=https:\u002F\u002F\u003Cresource>.cognitiveservices.azure.com\nTRANSCRIPTION_KEY=\u003Cyour-key>  # For key auth; not needed when using DefaultAzureCredential\u002FTokenCredential\n```\n\n## Authentication & Lifecycle\n\n> **🔑 Two rules apply to every code sample below:**\n>\n> 1. **Two auth modes are supported:** `AzureKeyCredential(os.environ[\"TRANSCRIPTION_KEY\"])` for key-based auth, or `DefaultAzureCredential()` \u002F any `TokenCredential` for Entra ID. Prefer `DefaultAzureCredential` in production; never hardcode credentials in code.\n> 2. **Wrap every client in a context manager** so HTTP transports and sockets are released deterministically:\n>    - Sync: `with \u003CClient>(...) as client:`\n>    - Async: `async with \u003CClient>(...) as client:`\n>\n> Snippets may abbreviate this setup, but production code should always follow both rules.\n\nUse subscription key authentication:\n\n```python\nimport os\nfrom azure.core.credentials import AzureKeyCredential\nfrom azure.ai.transcription import TranscriptionClient\n\nwith TranscriptionClient(\n    endpoint=os.environ[\"TRANSCRIPTION_ENDPOINT\"],\n    credential=AzureKeyCredential(os.environ[\"TRANSCRIPTION_KEY\"]),\n) as client:\n    transcriptions = list(client.list_transcriptions())\n```\n\n## Transcription (Batch)\n\n```python\nimport os\nfrom azure.core.credentials import AzureKeyCredential\nfrom azure.ai.transcription import TranscriptionClient\n\nwith TranscriptionClient(\n    endpoint=os.environ[\"TRANSCRIPTION_ENDPOINT\"],\n    credential=AzureKeyCredential(os.environ[\"TRANSCRIPTION_KEY\"]),\n) as client:\n    job = client.begin_transcription(\n        name=\"meeting-transcription\",\n        locale=\"en-US\",\n        content_urls=[\"https:\u002F\u002F\u003Cstorage>\u002Faudio.wav\"],\n        diarization_enabled=True,\n    )\n    result = job.result()\n    print(result.status)\n```\n\n## Transcription (Real-time)\n\n```python\nimport os\nfrom azure.core.credentials import AzureKeyCredential\nfrom azure.ai.transcription import TranscriptionClient\n\nwith TranscriptionClient(\n    endpoint=os.environ[\"TRANSCRIPTION_ENDPOINT\"],\n    credential=AzureKeyCredential(os.environ[\"TRANSCRIPTION_KEY\"]),\n) as client:\n    stream = client.begin_stream_transcription(locale=\"en-US\")\n    stream.send_audio_file(\"audio.wav\")\n    for event in stream:\n        print(event.text)\n```\n\n## Best Practices\n\n1. **Pick sync OR async and stay consistent.** Do not mix `azure.xxx` sync clients with `azure.xxx.aio` async clients in the same call path. Choose one mode per module.\n2. **Always use context managers for clients and async credentials.** Wrap every client in `with Client(...) as client:` (sync) or `async with Client(...) as client:` (async). For async `DefaultAzureCredential` from `azure.identity.aio`, also use `async with credential:` so tokens and transports are cleaned up.\n3. **Enable diarization** when multiple speakers are present\n4. **Use batch transcription** for long files stored in blob storage\n5. **Capture timestamps** for subtitle generation\n6. **Specify language** to improve recognition accuracy\n7. **Handle streaming backpressure** for real-time transcription\n8. **Close transcription sessions** when complete\n\n## Reference Files\n\n| File | Contents |\n|------|----------|\n| [references\u002Fcapabilities.md](references\u002Fcapabilities.md) | Additional non-hero capabilities, operation-group coverage, and production checklists. |\n| [references\u002Fnon-hero-scenarios.md](references\u002Fnon-hero-scenarios.md) | Dedicated non-hero examples for secondary\u002Fadvanced scenarios. |\n","# Azure AI Transcription SDK for Python\n\nClient library for Azure AI Transcription (speech-to-text) with real-time and batch transcription.\n\n## Installation\n\n```bash\npip install azure-ai-transcription\n```\n\n## Environment Variables\n\n```bash\nTRANSCRIPTION_ENDPOINT=https:\u002F\u002F\u003Cresource>.cognitiveservices.azure.com\nTRANSCRIPTION_KEY=\u003Cyour-key>  # For key auth; not needed when using DefaultAzureCredential\u002FTokenCredential\n```\n\n## Authentication & Lifecycle\n\n> **🔑 Two rules apply to every code sample below:**\n>\n> 1. **Two auth modes are supported:** `AzureKeyCredential(os.environ[\"TRANSCRIPTION_KEY\"])` for key-based auth, or `DefaultAzureCredential()` \u002F any `TokenCredential` for Entra ID. Prefer `DefaultAzureCredential` in production; never hardcode credentials in code.\n> 2. **Wrap every client in a context manager** so HTTP transports and sockets are released deterministically:\n>    - Sync: `with \u003CClient>(...) as client:`\n>    - Async: `async with \u003CClient>(...) as client:`\n>\n> Snippets may abbreviate this setup, but production code should always follow both rules.\n\nUse subscription key authentication:\n\n```python\nimport os\nfrom azure.core.credentials import AzureKeyCredential\nfrom azure.ai.transcription import TranscriptionClient\n\nwith TranscriptionClient(\n    endpoint=os.environ[\"TRANSCRIPTION_ENDPOINT\"],\n    credential=AzureKeyCredential(os.environ[\"TRANSCRIPTION_KEY\"]),\n) as client:\n    transcriptions = list(client.list_transcriptions())\n```\n\n## Transcription (Batch)\n\n```python\nimport os\nfrom azure.core.credentials import AzureKeyCredential\nfrom azure.ai.transcription import TranscriptionClient\n\nwith TranscriptionClient(\n    endpoint=os.environ[\"TRANSCRIPTION_ENDPOINT\"],\n    credential=AzureKeyCredential(os.environ[\"TRANSCRIPTION_KEY\"]),\n) as client:\n    job = client.begin_transcription(\n        name=\"meeting-transcription\",\n        locale=\"en-US\",\n        content_urls=[\"https:\u002F\u002F\u003Cstorage>\u002Faudio.wav\"],\n        diarization_enabled=True,\n    )\n    result = job.result()\n    print(result.status)\n```\n\n## Transcription (Real-time)\n\n```python\nimport os\nfrom azure.core.credentials import AzureKeyCredential\nfrom azure.ai.transcription import TranscriptionClient\n\nwith TranscriptionClient(\n    endpoint=os.environ[\"TRANSCRIPTION_ENDPOINT\"],\n    credential=AzureKeyCredential(os.environ[\"TRANSCRIPTION_KEY\"]),\n) as client:\n    stream = client.begin_stream_transcription(locale=\"en-US\")\n    stream.send_audio_file(\"audio.wav\")\n    for event in stream:\n        print(event.text)\n```\n\n## Best Practices\n\n1. **Pick sync OR async and stay consistent.** Do not mix `azure.xxx` sync clients with `azure.xxx.aio` async clients in the same call path. Choose one mode per module.\n2. **Always use context managers for clients and async credentials.** Wrap every client in `with Client(...) as client:` (sync) or `async with Client(...) as client:` (async). For async `DefaultAzureCredential` from `azure.identity.aio`, also use `async with credential:` so tokens and transports are cleaned up.\n3. **Enable diarization** when multiple speakers are present\n4. **Use batch transcription** for long files stored in blob storage\n5. **Capture timestamps** for subtitle generation\n6. **Specify language** to improve recognition accuracy\n7. **Handle streaming backpressure** for real-time transcription\n8. **Close transcription sessions** when complete\n\n## Reference Files\n\n| File | Contents |\n|------|----------|\n| [references\u002Fcapabilities.md](references\u002Fcapabilities.md) | Additional non-hero capabilities, operation-group coverage, and production checklists. |\n| [references\u002Fnon-hero-scenarios.md](references\u002Fnon-hero-scenarios.md) | Dedicated non-hero examples for secondary\u002Fadvanced scenarios. |\n",{"name":5,"license":14,"metadata":23,"description":27},{"author":24,"package":25,"version":26},"Microsoft","azure-ai-transcription","1.0.0","Azure AI Transcription SDK for Python. Use for real-time and batch speech-to-text transcription with timestamps and diarization.\nTriggers: \"transcription\", \"speech to text\", \"Azure AI Transcription\", \"TranscriptionClient\".\n","main","634c25395a24b98cd6125453ad4abb65517bcabb","bench\u002Fcorpus\u002Fbenign\u002Freal-ms-azure-ai-transcription-py","https:\u002F\u002Fgithub.com\u002Fak2dev\u002Fagentguard","https:\u002F\u002Fsite-bionic8.vercel.app","https:\u002F\u002Fgithub.com\u002Fak2dev","2026-11-11 02:37:06",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add ak2dev\u002Fagentguard --skill azure-ai-transcription-py",{"tool":41,"command":42},"bunx","bunx skills add ak2dev\u002Fagentguard --skill azure-ai-transcription-py",{"tool":44,"command":45},"pnpm","pnpm dlx skills add ak2dev\u002Fagentguard --skill azure-ai-transcription-py","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fak2dev\u002Fagentguard\u002Fblob\u002Fmain\u002Fbench\u002Fcorpus\u002Fbenign\u002Freal-ms-azure-ai-transcription-py\u002FSKILL.md",true,[49,55],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Fcapabilities.md","REFERENCE","参考文档",1163,"https:\u002F\u002Fgithub.com\u002Fak2dev\u002Fagentguard\u002Fblob\u002Fmain\u002Fbench\u002Fcorpus\u002Fbenign\u002Freal-ms-azure-ai-transcription-py\u002Freferences\u002Fcapabilities.md",{"path":56,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":57,"sourceHtmlUrl":58},"references\u002Fnon-hero-scenarios.md",3700,"https:\u002F\u002Fgithub.com\u002Fak2dev\u002Fagentguard\u002Fblob\u002Fmain\u002Fbench\u002Fcorpus\u002Fbenign\u002Freal-ms-azure-ai-transcription-py\u002Freferences\u002Fnon-hero-scenarios.md",[60,68,73,78,83,89],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":64,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":18},"01M7DJ7GBSJBJ32GXNQXVAMNYK","csv-tool","Summarize CSV files and report column statistics.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fak2dev\u002Fagentguard\u002Fblob\u002Fmain\u002Ffixtures\u002Frules\u002FAG-SYS-002\u002Fpositive\u002Ffault\u002Fcsv-tool\u002FSKILL.md",[],[],{"skillNo":69,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":64,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":18},"01M7DJ7F00PA7EHFM39RVCC8R5","https:\u002F\u002Fgithub.com\u002Fak2dev\u002Fagentguard\u002Fblob\u002Fmain\u002Ffixtures\u002Frules\u002FAG-SYS-002\u002Fnegative\u002Fnormal\u002Fcsv-tool\u002FSKILL.md",[],[],{"skillNo":74,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":64,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":18},"01M7DJ7DP7KDW7MYY5Q0R0JFEN","https:\u002F\u002Fgithub.com\u002Fak2dev\u002Fagentguard\u002Fblob\u002Fmain\u002Ffixtures\u002Frules\u002FAG-SYS-001\u002Fpositive\u002Ftoo-large\u002Fcsv-tool\u002FSKILL.md",[],[],{"skillNo":79,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":64,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":18},"01M7DJ7C3VA0KQ8Q9ESNX6AJHE","https:\u002F\u002Fgithub.com\u002Fak2dev\u002Fagentguard\u002Fblob\u002Fmain\u002Ffixtures\u002Frules\u002FAG-SYS-001\u002Fnegative\u002Fsmall\u002Fcsv-tool\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":64,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":18},"01M7DJ7AQZTGY5YADQX73TRB7K","pdf","https:\u002F\u002Fgithub.com\u002Fak2dev\u002Fagentguard\u002Fblob\u002Fmain\u002Ffixtures\u002Frules\u002FAG-SKL-TYP-002\u002Fpositive\u002Fother-publisher\u002Fpdf\u002FSKILL.md",[],[],{"skillNo":90,"name":85,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":64,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":18},"01M7DJ7831XDVWS4W9SAAKBJHX","https:\u002F\u002Fgithub.com\u002Fak2dev\u002Fagentguard\u002Fblob\u002Fmain\u002Ffixtures\u002Frules\u002FAG-SKL-TYP-002\u002Fnegative\u002Fsame-publisher\u002Fpdf\u002FSKILL.md",[],[]]