Skip to content
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

[Lex] Multi-language issue when using iOS SDK - AWSLexInteractionKit #3657

Closed
qing-at-work opened this issue Jun 30, 2021 · 4 comments
Closed
Labels
bug Something isn't working follow up Requires follow up from maintainers lex Issues related to AWS Lex

Comments

@qing-at-work
Copy link

Describe the bug
When we are using AWSLexInteractionKit, we have noticed that for Japanese language, Lex bot response text contains question marks instead of actual Japanese characters. For European languages such as Spanish, French etc., they seem to work fine.

To Reproduce
Steps to reproduce the behavior:

  1. Configure a Lex bot that returns text in Japanese
  2. Use AWSLexInteractionKit to interact with the Lex bot, such as this example
  3. Check the output text

Observed Behavior
Output text contains question marks.

Expected Behavior
Output text contains Japanese characters

Areas of the SDK you are using (AWSMobileClient, Cognito, Pinpoint, IoT, etc)?
AWSLex

Environment(please complete the following information):

  • SDK Version: 2.24.2
  • Dependency Manager: Cocoapods
  • Swift Version : 5
  • Xcode Version: 12.5.1

Device Information (please complete the following information):

  • Device: iPhone 12 simulator
  • iOS Version: iOS 14.6
  • Specific to simulators: n/a

Additional context
Looks like the switchModeInput.outputText is set in AWSLexInteractionKit.m, and it’s using response.message field. According to the documentation, this field can only be used for a limit set of languages.
We also noticed this commit, which indicated that message field in PostContentResponse has been deprecated, so does this mean AWSLexInteractionKit should also expose encodedMessage field via its interface?

@NALanhnt2
Copy link

me too

@github-actions
Copy link

This issue is stale because it has been open for 14 days with no activity. Please, provide an update or it will be automatically closed in 7 days.

@palpatim palpatim added lex Issues related to AWS Lex bug Something isn't working and removed closing soon labels Jul 23, 2021
@palpatim
Copy link
Member

Currently, Lex returns the message as part of HTTP response headers, which restricts the character set in the response. Currently to unblock customers wanting to use special characters in speech-to-text use cases, they would need to use base64 encoded strings when creating the bot and base64 decode the responses.

Next steps:

  • Investigate whether this is something that we can do in the Lex interaction kit (mid-level client), or whether it has to be done at the low-level client
  • Investigate what, if any, backend configuration options need to be set up to support this
  • Investigate what, if any, backend code a customer would have to provide to support this

@palpatim palpatim added the follow up Requires follow up from maintainers label Jul 23, 2021
@atierian
Copy link
Member

atierian commented Dec 6, 2023

Thanks for opening this feature request. We don't plan on adding support for this in the AWS SDK for iOS at this time.

@atierian atierian closed this as completed Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working follow up Requires follow up from maintainers lex Issues related to AWS Lex
Projects
None yet
Development

No branches or pull requests

4 participants