Hello,
I have been working to connect to the AT&T API's and have been successful in using the curl genie to request/receive the OAuth Token, but I have two issues as I attempt to access the API and upload the .wav file for processing. First, the curl genie dialog window opens for a very brief time and while I can see there are exceptions, it then disappears before I can capture what the text is. Is there an option to freeze that window or capture the dialog in a different way?
Secondly, the curl statement I'm trying to translate is formatted in the same order as the example on the AT&T developer website and is as follows:
curl --insecure https://api.att.com/speech/v3/speechToText --header �Authorization: bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" --data-binary @�C:\Users\JK\Documents\Test1_2015-11-18.wav� --header �Content-Type: audio/wav� --header �Accept: application/json�
I receive a number of aberrant outcomes from the curl genie as soon as I add the --data-binary @ file name. These include the message "Curl call did not produce output" to disfunctional Xbasic output where the only reference to the .wav file is: dim posted_fields as c = ("RIFF\00") and no file name anywhere in the Xbasic output. I did confirm that this is a correct statement in the libCURL library which the Release Notes indicate is used by the curl genie.
The ce.setOpt("HTTPHEADER",slist1) is correct with the order above and just to be sure there isn't an order dependency in the curl statement I have rearranged the order to group all of the --header statements together and the posted_fields statement remains as previously stated.
As background, I'm running V12.3 Build 2999 with System Addins Build 4519. Any thoughts? Your comments are appreciated and if the genie isn't capable of working with a binary file, suggestions on any other approaches (http_post ?) would be of value.
Thanks,
Joe
I have been working to connect to the AT&T API's and have been successful in using the curl genie to request/receive the OAuth Token, but I have two issues as I attempt to access the API and upload the .wav file for processing. First, the curl genie dialog window opens for a very brief time and while I can see there are exceptions, it then disappears before I can capture what the text is. Is there an option to freeze that window or capture the dialog in a different way?
Secondly, the curl statement I'm trying to translate is formatted in the same order as the example on the AT&T developer website and is as follows:
curl --insecure https://api.att.com/speech/v3/speechToText --header �Authorization: bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" --data-binary @�C:\Users\JK\Documents\Test1_2015-11-18.wav� --header �Content-Type: audio/wav� --header �Accept: application/json�
I receive a number of aberrant outcomes from the curl genie as soon as I add the --data-binary @ file name. These include the message "Curl call did not produce output" to disfunctional Xbasic output where the only reference to the .wav file is: dim posted_fields as c = ("RIFF\00") and no file name anywhere in the Xbasic output. I did confirm that this is a correct statement in the libCURL library which the Release Notes indicate is used by the curl genie.
The ce.setOpt("HTTPHEADER",slist1) is correct with the order above and just to be sure there isn't an order dependency in the curl statement I have rearranged the order to group all of the --header statements together and the posted_fields statement remains as previously stated.
As background, I'm running V12.3 Build 2999 with System Addins Build 4519. Any thoughts? Your comments are appreciated and if the genie isn't capable of working with a binary file, suggestions on any other approaches (http_post ?) would be of value.
Thanks,
Joe
Comment