ZeeNastalski / unity-watson-chat

This is a demonstration of a chatbot made in Unity using IBM Watson. The demo has been presented at Unite Melbourne 2017.
8 stars 2 forks source link

An error message "list index out of range" is outputted in Japanese model #1

Open MoonRock1961 opened 7 years ago

MoonRock1961 commented 7 years ago

Thank you for your providing the useful project.

I'd like to create Japanese chatbot with this unity project. However, if the language model is changed from "en-US" to "ja-JP", then the "speech-to-text" is outputted an error message "list index out of range".

Could you tell me how to fix this error.

Thank you.

ZeeNastalski commented 7 years ago

Hi, can you give more details? where did you change the language id (file and line) and paste the exception stack? thanks

MoonRock1961 commented 7 years ago

Thank you for your reply.

Your original English version works fine. But I have changed only the 93rd line of "SpeechToText.cs" in "Watson-unity-sdk-1.0.0/Scripts/Services/SpeechToText/v1" as follows: private string _recognizeModel = "ja-JP_BroadbandModel"; // ID of the model to use. Best regards.

ZeeNastalski commented 6 years ago

Hi miwatsuki, I tested it and the error comes from watson web service. I don't understand why. My projects uses IBM watson unity SDK to talk to watson web services and there may be an error in how they formulate http request or process the response. I suggest you ask this question there: https://github.com/watson-developer-cloud/unity-sdk

Sorry I couldn't help more.

MoonRock1961 commented 6 years ago

Thank you for your information. I will ask the question to the watson sdk site as you suggest if I can't fix the error by myself.