Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Watson Speech To Text API

bmillrine
8 - Asteroid

 

Trying to get attached workflow working in line with this guidance.

 

API Guidance

 

Test flac file on guidance page.

 

Your help is greatly appreciated.

 

Thnaks

3 REPLIES 3
PaulN
Alteryx Alumni (Retired)

Hi @bmillrine,

 

A new great example, thanks a lot!

 

You are almost done with your workflow! The online missing thing is the file itself. 

In the example, curl is used with parameter --data-binary to upload the file:

 

curl -X POST -u {username}:{password}
--header "Content-Type: audio/flac"
--header "Transfer-Encoding: chunked"
--data-binary @{path}audio-file.flac
"https://stream.watsonplatform.net/speech-to-text/api/v1/recognize?continuous=true"

 

In your workflow, you will have to do the same using a Blob Input tool:

Workflow.png

 

 It will use the file path mentioned in the Text Input tool ([file path]):

 

blobconf.png

 

 

 

The result of this tool will be used directly in the Download tool:

 

Download.png

 

 

As a result you should obtain something similar to the following:

results.png

 

 Kind regards,

 

Paul Noirel

Customer Support Engineer

 

 

 

 

 

 

bmillrine
8 - Asteroid

Paul

 

Thanks for your help, greatly appreciated.

 

Thanks

DenisR
5 - Atom

@ 

 

Hi,

 

IBM updated their API, and your workflow is not working any more. Would you mind to have a quick look?

 

I'm getting the following error:

API1_0-1574794386754.png

 

 

 

 

 
 
 
 
 
 
 

 

Labels