Supported Language List

Welcome! Forums Unity Plugins Mobile Speech Recognizer Supported Language List

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #2273
    amgame
    Participant

    I just imported the example project and the speech recognition is working on Android. however in the SetLanguage screen the dropdown is not getting populated with the supported language list.
    Is there any steps that needs to be done first to load the supported language list?

    #2274
    PiotrPiotr
    Keymaster

    It should work out of the box. Can you see adb logs from a device? Probably GetSupportedLanguages throwing some errors.

    #2277
    amgame
    Participant

    Yes logcat showing the following error

    10-01 15:20:37.055: E/Unity(14818): java.lang.NullPointerException: Attempt to invoke virtual method ‘int android.content.IntentFilter.getPriority()’ on a null object reference
    10-01 15:20:37.055: E/Unity(14818): at kokosoft.unity.speechrecognition.SpeechRecognizerBridge$4.compare(SpeechRecognizerBridge.java:150)
    10-01 15:20:37.055: E/Unity(14818): at kokosoft.unity.speechrecognition.SpeechRecognizerBridge$4.compare(SpeechRecognizerBridge.java:147)
    10-01 15:20:37.055: E/Unity(14818): at java.util.TimSort.countRunAndMakeAscending(TimSort.java:355)
    10-01 15:20:37.055: E/Unity(14818): at java.util.TimSort.sort(TimSort.java:220)
    10-01 15:20:37.055: E/Unity(14818): at java.util.Arrays.sort(Arrays.java:1492)
    10-01 15:20:37.055: E/Unity(14818): at java.util.ArrayList.sort(ArrayList.java:1470)
    10-01 15:20:37.055: E/Unity(14818): at java.util.Collections.sort(Collections.java:206)
    10-01 15:20:37.055: E/Unity(14818): at kokosoft.unity.speechrecognition.SpeechRecognizerBridge.sendImplicitOrderedBroadcast(SpeechRecognizerBridge.java:147)
    10-01 15:20:37.055: E/Unity(14818): at kokosoft.unity.speechrecognition.SpeechRecognizerBridge.GetSupportedLanguages(SpeechRecognizerBridge.java:120)
    10-01 15:20:37.055: E/Unity(14818): at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
    10-01 15:20:37.055: E/Unity(14818): at com.unity3d.player.UnityPlayer.access$300(Unknown Source:0)
    10-01 15:20:37.055: E/Unity(14818): at com.unity3d.player.UnityPlayer$e$1.handleMessage(Unknown Source:95)
    10-01 15:20:37.055: E/Unity(14818): at android.os.Handler.dispatchMessage(Handler.java:103)
    10-01 15:20:37.055: E/Unity(14818): at android.os.Looper.loop(Looper.java:237)
    10-01 15:20:37.055: E/Unity(14818): at com.unity3d.player.UnityPlayer$e.run(Unknown Source:20)

    #2278
    amgame
    Participant

    Hi,
    Any pointers on how to fix this?

    #2280
    PiotrPiotr
    Keymaster

    Android is sometimes so buggy :facepalm:
    Will look into this in next 1-2 days and update here.

    #2281
    PiotrPiotr
    Keymaster

    @amgame could you try jar file uploaded here?

    Just replace existing file in Plugins/Android. Let me know if that fixes this issue for you, will update patch then. 🙂

    #2288
    amgame
    Participant

    Its working now with the new jar file. Thank you for the quick response.

    #2291
    PiotrPiotr
    Keymaster

    Thanks for checking it out!

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.