Cannot connect to Azure Speech
# support
s
@Support.Voice-Agent I am getting the following error when trying to connect my Azure Speech: property orgId should not exist property createdAt should not exist property updatedAt should not exist API Key is validated: Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved. Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows PS C:\WINDOWS\system32> $FetchTokenHeader = @{ >> 'Content-type'='application/x-www-form-urlencoded' >> 'Content-Length'= '0' >> 'Ocp-Apim-Subscription-Key' = 'RiJz9gEOYLf4jGCwSouHiS8vClBRATE9Z0c1h0L5teoVaSoIlewrJQQJ99BKACYeBjFXJ3w3AAAYACOGMDu2' >> } >> $OAuthToken = Invoke-RestMethod -Method POST -Uri https://eastus.api.cognitive.microsoft.com/sts/v1.0/issueToken -Headers $FetchTokenHeader >> $OAuthToken >> Valid key was returned.......................iJ1cm46bXMuY29nbml0aXZlc2VydmljZXMifQ.1SqctqZrdZqqS2dyw_NV4XOl3gltcUhTLg-218ygnmwZAPwjPVZQ67WFO220APZgnrkvL2e9D7vUbIG68y0rFA PS C:\WINDOWS\system32> https://cdn.discordapp.com/attachments/1444198074569195581/1444198075039223900/image.png?ex=69423f44&is=6940edc4&hm=54aeb3a5a8385e9b9d51f9b9728c3c5dd587328ad8630738fdbc3af7d4942ffb&
c
Here’s a cURL request you can use to create an Azure Speech credential:
Copy code
bash
curl -X POST 'https://api.vapi.ai/credential' \
  -H 'Authorization: Bearer YOUR_VAPI_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "provider": "azure",
    "service": "speech",
    "region": "eastus",
    "apiKey": "YOUR_AZURE_SPEECH_API_KEY"
  }'
Replace
YOUR_VAPI_API_KEY
and
YOUR_AZURE_SPEECH_API_KEY
with your actual keys, and adjust the region if needed. Let me know if you'd like us to validate the credential once created!