Public/Get-VoiceAgent.ps1

function Get-VoiceAgent {
    [OutputType('pscustomobject')]
    [CmdletBinding()]
    param
    ()

    $ErrorActionPreference = 'Stop'

    InvokeApi -Uri "https://$($script:config.SubscriptionRegion).tts.speech.microsoft.com/cognitiveservices/voices/list" -Method 'GET'
}