This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| wiki:ai:speech-translate_lab [2025/05/21 18:03] – created ymurugesan | wiki:ai:speech-translate_lab [2025/05/21 20:44] (current) – zhein | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | # Azure Speech & Translator with Key Vault Integration | + | ======Azure Speech & Translator with Key Vault Integration====== |
| - | ## 🥤 Overview | + | ===== 🥤 Overview===== |
| This setup securely connects to Azure **Speech-to-Text** and **Translator** services using secrets stored in **Azure Key Vault**, accessed via `DefaultAzureCredential`. | This setup securely connects to Azure **Speech-to-Text** and **Translator** services using secrets stored in **Azure Key Vault**, accessed via `DefaultAzureCredential`. | ||
| Line 7: | Line 7: | ||
| --- | --- | ||
| - | ## 🔐 Azure Key Vault Setup | + | ===== 🔐 Azure Key Vault Setup===== |
| - | 1. **Create a Key Vault** in Azure Portal. | + | 1. **Create a Key Vault** in Azure Portal. |
| 2. Add the following **secrets**: | 2. Add the following **secrets**: | ||
| | Secret Name | Example Value | | | Secret Name | Example Value | | ||
| - | | ------------------- | --------------------------- | | + | | --------------------------- | --------------------------- | |
| | `speech-key` | | `speech-key` | ||
| | `speech-region` | | `speech-region` | ||
| Line 26: | Line 26: | ||
| --- | --- | ||
| - | ## 👤 Local Setup (Developer Machine) | + | ===== 👤 Local Setup (Developer Machine)===== |
| - | ### 1. Install tools: | + | ==== 1. Install tools:==== |
| ```bash | ```bash | ||
| Line 35: | Line 35: | ||
| ``` | ``` | ||
| - | ### 2. Authenticate: | + | ==== 2. Authenticate: |
| ```bash | ```bash | ||
| Line 45: | Line 45: | ||
| --- | --- | ||
| - | ## 🤠 Full Python Script Using Azure Key Vault | + | ===== 🤠 Full Python Script Using Azure Key Vault===== |
| < | < | ||
| ```python | ```python | ||
| Line 104: | Line 104: | ||
| ``` | ``` | ||
| </ | </ | ||
| + | |||
| + | |||
| + | =====Test result===== | ||
| + | |||
| + | {{wiki: | ||