unity-sdk icon indicating copy to clipboard operation
unity-sdk copied to clipboard

[speech-to-text] Null word_alternatives and double parsing on time stamps

Open LDanderz opened this issue 7 years ago • 6 comments

While using speech-to-text, res.word_alternatives always come back null, the speech recognition event never seems to come back with a key of "word_alternatives". Also on speech-to-text, parsing to double on timestamp values has the same issue as it did on confidence values (just rare that a time stamp will start/finish exactly on an integer value).

Im using the latest sdk version v2.15.3.

LDanderz avatar Mar 08 '19 15:03 LDanderz

Confirming the timestamp issue. Just ran into it. Also the same cast issue with ialternative["confidence"] in the same function.

McGake avatar Mar 09 '19 01:03 McGake

Looking at converting all of these values to strings and then converting to doubles. For the word_alternatives did you set the WordAlternativesThreshold?

_service.WordAlternativesThreshold = 0.5f;

mediumTaj avatar Mar 11 '19 18:03 mediumTaj

Can you guys try out this PR and see if you have any more issues with double parsing? https://github.com/watson-developer-cloud/unity-sdk/pull/533

mediumTaj avatar Mar 11 '19 18:03 mediumTaj

I did go through and fix all the casting myself. As to the null word alternatives, I did have the threshold set but it seems IBM may have done something their end as it all works as it should now. Many thanks for the replies.

LDanderz avatar Mar 12 '19 08:03 LDanderz

:tada: This issue has been resolved in version 2.15.4 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

mediumTaj avatar Mar 12 '19 21:03 mediumTaj

:tada: This issue has been resolved in version 3.0.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

mediumTaj avatar Mar 29 '19 00:03 mediumTaj