-
Notifications
You must be signed in to change notification settings - Fork 667
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[speech-to-text] asynchronous creation, can't get recognitions.completed_with_results
#415
Comments
Thank you for your back, i ´ll work on it as soon as possible and i give you a return on this issue. |
Thanks @adrien2p ! If I can do anything, let me know. |
@adrien2p, it looks like the
|
@jeffpk62 you are right, it's codded to accept |
@micahbrich This should be fixed in v2.26.1 which is now available on npm. Can you test and confirm? |
Hmmmm @nfriedly I can't explain it yet, but this isn't quite working. It does successfully pass the events now, but it seems like when I include:
in the options object, I don't ever get any I did dig into the library folder and saw that the ...
options: { qs:
{ callback_url: 'https://testurl.ngrok.io/callback',
events:
[ 'recognitions.started',
'recognitions.failed',
'recognitions.completed_with_results',
sum: [Function],
average: [Function] ],
continuous: true,
max_alternatives: 0,
timestamps: true,
word_confidence: true,
inactivity_timeout: -1,
model: 'en-US_NarrowbandModel',
interim_results: false,
profanity_filter: false,
smart_formatting: true,
speaker_labels: false },
url: 'https://stream.watsonplatform.net/speech-to-text/api/v1/recognitions',
... I can't figure out how to see the final URL that gets sent, though. Does that look normal? |
Wait! 🙌 Update, I spoke too soon. It looks like it works when I pass it a string. I swear I tried that before, I'm not crazy. I'm successfully getting both |
Hi @micahbrich Yes you should give a coma separated string as |
Doh. We should make the SDK handle that. Users should be able to pass in an array and have it work. not sure where the sum & average functions are coming from, I wonder if something is mucking with Array.prototoye somewhere... |
Starting with v2.27.1, it should accept either a comma-separated string or an array of strings. |
You guys are so on it. 🏀 |
@nfriedly Well done man :) it was faster enougth ^^ |
Hey there! I seem to have hit some issue in defining asynchronous callback events — the docs mention you can pass an extra query parameter to request the completed callback to include results, but I can't make that happen.
I've got this:
The callback registration, transcription, and everything else is working great, just not the specified callback
events
. I get something like the last two events shown here:I tried specifying
events
in theparams
as a comma-separated string like the docs suggest & an array of strings (which the source looks like converts to a comma-separated string). I triedevents
as the key, but alsoevent
as a Hail Mary attempt. I tried writing the list as bothrecognitions.completed_with_results
and justcompleted_with_results
, in case it was a misunderstanding.I can successfully use that
recognitions.completed
event ID to do a newGET
request and get the results, but it's an extra step in a pretty time-sensitive app, so I'm hoping I can get the event & result in one like the docs suggest.Does anyone have any ideas what's up? Am I missing something, or doing anything wrong? Is this a bug?
The text was updated successfully, but these errors were encountered: