• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by ragsr · Jan 26, 2019 at 04:14 AM · iosscript error

Missing speech recognition code needed for Unity iOS Build?

Using the "Universal Windows Platform" Build Platform option I have created a simple working Unity test app on a modern Windows 10 system. It happens to use speech recognition. Using the "PC, Mac & Linux Standalone" Platform option I have done a "Master" Build of it and successfully run the resulting executable on a separate Windows laptop using Unity WebPlayer.

I now want to create an iOS version of this test app that will run using a Unity Webplayer on a Mac Mini. I've attempted to complete a Build using the Unity "iOS" Build Platform and have run into problems associated with the speech recognition elements of my script. The Build is failing with errors such as "KeywordRecognizer could not be found". The reference to KeywordRecognizer comes from the 10th line in the excerpt of my script cc'd below.

NOTE: When doing the initial Build Settings for the iOS Build, Unity prompted me that I needed to download a "Unity iOS Support" suite (The instructions explicitly had me download and run the .exe file "UnitySetup-IOS-Support-for-Editor-2017.2p2.exe" to accomplish this). The download completed as expected and I restarted the Build itself. As mentioned above, it failed to build and put out numerous error messages similar to the example above such as "'PhraseRecognizerEventArgs' could not be found". In addition, I got an error message that read "'Windows' does not exist in 'Unity Engine'"

Please note the using statement "using UnityEngine.Windows.Speech;" below in the script excerpt. I believe that within the referenced code "UnityEngine.Windows.Speech" the code for "KeywordRecognizer" is found for the Windows version of this script. I further believe that the download of "Unity iOS Support" did not have any code to support KeywordRecognizer. The terms "KeywordRecognizer" and "PhraseRecognizerEventArgs" are clearly Speech related. So my question is as follows...

QUESTION:What additional downloads do I need to complete to support the Speech requirements of my script when I do the iOS version of the Unity Build?

SCRIPT EXCERPT: using System; using System.Collections; using System.Collections.Generic; using System.Linq; using UnityEngine; using UnityEngine.Windows.Speech;

public class MoveOpponent01B : MonoBehaviour { private KeywordRecognizer keywordRecognizer; private Dictionary actions = new Dictionary (); public GameObject[] waypoints; int current = 0; float rotSpeed; public float speed; float WPradius = .1f; int go = 0;

All community help is greatly appreciated. Thx. Cheers, Bob G.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by OstrichBoy · Nov 27, 2019 at 10:56 PM

Did you ever figure this out? I am stuck on this exact problem

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

199 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

UNET: Network [Command] from non-player object 0 Answers

error CS0234: The type or namespace name `IActiveBuildTargetChanged 3 Answers

Texture tilling problem on iOS 2 Answers

ios device 0 Answers

Xcdoe Build Error gvr audio 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges