Giter VIP home page Giter VIP logo

azurespeechtotextpowershell's People

Contributors

ned1313 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

azurespeechtotextpowershell's Issues

New-AzSSBatchRequest : The remote server returned an error: (400) Bad Request.

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:

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

  • ... $id = New-AzSSBatchRequest -subscriptionKey $subscriptionKey -s ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
    • FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,New-AzSSBatchRequest

Exception calling "Add" with "2" argument(s): "Key cannot be null.
Parameter name: key"
At line:209 char:9

  •     $ids.Add($id,$key)
    
  •     ~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : ArgumentNullException

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.