Skip to content

PowerShell script to interface with the TTS part of the Azure Speech Services

License

Notifications You must be signed in to change notification settings

ThisIsntTheWay/azure_tts_ps

Repository files navigation

azure_tts_ps

PowerShell script to interface with the TTS API endpoint of Azure Speech Services.

Simple text

.\main.ps1 -apiKey .\secret\apiKey -voice "Natasha" -text "Hello world" -codec "webm" -codecQuality "max" -quiet $false

Multi line document

$text = (Get-Content .\sample.txt -encoding UTF8)
.\main.ps1 -apiKey .\secret\apiKey -voice "Natasha" -text $text -codec "audio" -codecQuality "max" -quiet $false

Piped text

'Hello World' | .\main.ps1 -apiKey .\secret\apiKey -voice "Natasha" -codec "webm" -codecQuality "max" -quiet $false

Piped multi line document

$text = [string](Get-Content .\sample.txt -encoding UTF8)
$text | .\main.ps1 -apiKey .\secret\apiKey -voice "Natasha" -codec "webm" -codecQuality "max" -quiet $false

About

PowerShell script to interface with the TTS part of the Azure Speech Services

Topics

Resources

License

Stars

Watchers

Forks