ned1313 / azurespeechtotextpowershell Goto Github PK
View Code? Open in Web Editor NEWPowerShell Scripts for Azure Speech to Text API
License: MIT License
PowerShell Scripts for Azure Speech to Text API
License: MIT License
Hi Ned
Found your code here from a Google Search
I had to change all your references to the deprecated Powershell RM modules to the Az Module equivalents
Doing MP3 to Text right now is a mess from MS
They have multiple in-play services that make coding a nightmare:
SpeechSDK
Rest API (10 Second AKA not functional or usable) here:
https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/rest-speech-to-text
Batch Translator: (Seems most on-point, I may try this myself directly)
https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/batch-transcription
Deprecated Bing Transalator
https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/how-to-migrate-from-bing-speech
Zoom (3rd Party)
And of course NOTHING available in Logic Apps
I guess we need some more help here:
New-AzSSBatchRequest : The remote server returned an error: (400) Bad Request.
At line:208 char:15
208 is this line here: ($id = )
#For each blob start a new batch run
$ids = @{}
foreach($key in $tokens.Keys){
$id = New-AzSSBatchRequest -subscriptionKey $subscriptionKey -serviceRegion $serviceRegion -blobSAS $tokens[$key] -transcriptionName $key -transcriptionDesc "$key started at $(Get-Date)"
$ids.Add($id,$key)
}
Im assuming the $SubscriptionKey is my Cognitive Services in the Portal under
Quick Start section
Unfortunately I have to eventually figure outhow to skip the interactive login with
Connect-AzAccount, but that will come later
Here is the full Error:
New-AzSSBatchRequest : The remote server returned an error: (400) Bad Request.
At line:208 char:15
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Exception calling "Add" with "2" argument(s): "Key cannot be null.
Parameter name: key"
At line:209 char:9
$ids.Add($id,$key)
~~~~~~~~~~~~~~~~~~
I called your code like this:
New-AzSSMultiBatchRequest -storageAccountName 'XXX' -resourceGroupName 'XXX' -containerName 'XXX' -subscriptionKey 'XXX' -serviceRegion 'eastus'
Obviously with XXX as my data
Thanks,
George
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.