The API is powered by the pipelines, it seems you’re trying a private model so I don’t really have access, but you can check out
pipe = pipeline(model="NR/myprivate_model")
pipe("myfilename.wav")
It should work out of the box and produce the same thing as the API.