Speech Service- RestrictOutboundNetworkAccess by info.odysseyx@gmail.com August 22, 2024 written by info.odysseyx@gmail.com August 22, 2024 0 comment 9 views 9 What is Voice Service? The Speech service provides the ability to convert speech to text and text to speech using speech resources. This is one of the Cognitive Accounts types, i.e. type”: “Microsoft.CognitiveServices/accounts” and “kind”: “SpeechServices”. What is the restrictOutboundNetworkAccess property and why would I use it? The restrictOutboundNetworkAccess property is used to enable data loss prevention in the Speech service. When this property is enabled, the Speech service will only connect to the allowed endpoints specified in the FQDN allowed endpoints list. For example -> If you need to transcribe data coming from a Blob, the FQDN of the storage account must be in this list. If this property is not set to true, the Speech service will not be able to access the storage account. Reference documentation describing this property – https://learn.microsoft.com/en-us/azure/ai-services/cognitive-services-data-loss-prevention?tabs=azu… How do I enable/disable restrictOutboundNetworkAccess for voice services? You cannot manually deploy the Speech service by setting the “restrictOutboundNetworkAccess” property to true or false in the Azure portal. You can deploy the Speech service using ARM/PowerShell/terraform by setting the property restrictOutboundNetworkAccess to true or false. CLI/powershell usage reference:- Data Loss Prevention – Azure AI Services | Microsoft Learn Using ARM templates, see: Microsoft.CognitiveServices/accounts – Bicep, ARM Templates, and Terraform AzAPI Reference | Microsoft L… Sample code to deploy a Speech service using a custom template deployment in the Azure Portal with restrictOutboundNetworkAccess set to true and a list of allowed FQDNs Please note the following: Outbound network access restrictions Real Estate, We Use It Too List of allowed Fqdns This contains a list of URLs that can be accessed by the voice service. { “$schema”: “https://schema.management.azure.com/schemas/2019-04-01 deploymenttemplate.json#”, “Content Version”: “1.0.0.0”, “parameters”: { “cognitive service name”: { “type”: “string”, “metadata”: { “description”: “Cognitive Service Account Name” } }, “location”: { “Default”: “[resourceGroup().location]”, “type”: “string”, “metadata”: { “Description”: “Location of the cognitive services account” } }, “SKU”: { “default”: “F0”, “Accepted values”: [ “F0”, “S0” ], “type”: “string”, “metadata”: { “Description”: “Pricing Tier for Cognitive Service Accounts” } } }, “resources”: [ { “type”: “Microsoft.CognitiveServices/accounts”, “apiVersion”: “2022-12-01”, “name”: “[parameters(‘cognitiveServiceName’)]”, “location”: “[parameters(‘location’)]”, “SKU”: { “name”: “[parameters(‘sku’)]” }, “type”: “SpeechServices”, “attribute”: { “restrictOutboundNetworkAccess”: true, “disableLocalAuth”: true, “List of allowed Fqdns”: [ “microsoft.com” ] } } ]} The above code deploys the voice service. Set restrictOutboundNetworkAccess to “true” How to check if restrictOutboundNetworkAccess is enabled/disabled for Speech Services You can go to the JSON view of the deployed resource and check whether the property is set to “true” or “false”. Reference documentation for test use cases can be found here. Use Case for Testing Restrictoutboundnetworkaccess for Speech Service – Microsoft Community Hub Source link Share 0 FacebookTwitterPinterestEmail info.odysseyx@gmail.com previous post Just a moment… next post Just a moment… You may also like From Zero to Hero: Building Your First Voice Bot with GPT-4o Real-Time API using... October 12, 2024 A Guide to Responsible Synthetic Data Creation October 12, 2024 Capacity Template – MGDC for SharePoint October 11, 2024 Using Azure NetApp Files (ANF) for data- and logfiles for Microsoft SQL Server in... October 11, 2024 Microsoft Community – Do you love stickers?! Do you want to be a part... October 11, 2024 Advanced Alerting Strategies for Azure Monitoring October 11, 2024 Leave a Comment Cancel Reply Save my name, email, and website in this browser for the next time I comment.