Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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 /
avatar image
2
Question by Sylafrs · Oct 14, 2013 at 03:46 PM · speechvoicecomparisoncross-platform

How to use Speech recognition ?

Hey,

I'm currently working on how to use Speech recognition. Having googled all this day, I found many libraries such as :

  • Microsoft Speech API (SAPI) => Windows

  • CMU Sphinx (PocketSphinx) => Cross platform (written in C)

  • They love games' pluggin (Doesn't work well) => Cross platform

  • Google Web Speech API (Online) => Online devices, webplayer

  • Google Speech API => Android

(And other like SILVIA, but it seems (very) expensive.. ..http://en.wikipedia.org/wiki/List_of_speech_recognition_software)

To begin with, I'm trying to test the SAPI one, but System.Speech is not available in the Mono version. I tried to find the library dll or a similar project..

If you know other libraries or packages, or even theorical documentation to code that (last resort ^^'), I'd be very grateful :)


My goal is to compare an AudioClip (registered with Microphone class) with 3 other AudioClips to get the one that must be the correct sentence (or 'not understood') : the problem is I don't know if it's possible to do a quick check or if I must use speech recognition.

Thank you for your help,

Sylafrs.


Edit : errors (within lib names :p)

Edit 2 : I have a simple solution (I don't like) : don't use unity to do the speech recognition.

  • do it in another process => Not web player, depends on the device.

  • or use a server => For online devices.

Edit 3 : correction (english syntax error :p)

Edit 4 : pocketsphinx is cross platform

Comment
Add comment · Show 3
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
avatar image Sylafrs · Oct 18, 2013 at 12:17 PM 0
Share

I tried PocketSphinx in C. $$anonymous$$y C program works (I just must to read the doc a little longer to create dynamic grammar (not in a jsgf file)) Then, I must create the Unity wrapper (I hope the dll will be okay). Finally test in devices (mustn't work ^^')

avatar image Sylafrs · Oct 24, 2013 at 08:02 AM 0
Share

I've made a little PocketSphinx dll + wrapper for unity/windows but the speech recognition system doesn't seem to work well (in english with my accent or in french)..

Damn ^^

avatar image Sylafrs · Oct 24, 2013 at 08:03 AM 0
Share

By setting the sample rate to 8000 for Pocketsphinx (cmd_ln_init function) and Unity3d ($$anonymous$$icrophone.Start method) it works well for English

I must find out why it doesn't work for french..

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by DaveA · Oct 14, 2013 at 05:24 PM

There is a speech kit in the Asset Store which I tried but had no luck with. I would look into using SAPI on Windows or Google on mobile/web, I think those are the best bet.

Comment
Add comment · Show 2 · 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
avatar image Sylafrs · Oct 15, 2013 at 07:32 AM 0
Share

The "They love games" one ? Yeah, I've seen a video and the demo : it doesn't work well, I prefer not to use it ^^

avatar image Sylafrs · Oct 24, 2013 at 12:18 PM 0
Share

I finally choose Pocketsphinx, but it doesn't work well for French (and SAPI works very well, but can't be added to Unity)

avatar image
0

Answer by cybersoft · Feb 12, 2014 at 02:42 PM

CMU SPHINX (PocketSphinx, OpenEars) seems to be best solution but someone have to make a plugin or module for Unity. I think about creating a group of developer for that work for Unity.

Comment
Add comment · Show 3 · 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
avatar image Sylafrs · Feb 14, 2014 at 08:57 AM 0
Share

Thanks for your answer. I've made the plugin but it works on Windows only (for the moment). I think there might be some bugs too in there, but it works fine :)

The problem is that I created it when I was working at my company.. so I don't know if I can give you the code :/

avatar image terras1gneus · Jan 28, 2015 at 03:24 PM 0
Share

what did your company say sylafrs? are you able to?

avatar image gazou · Jan 28, 2016 at 06:33 PM 0
Share

Hi there, have managed to make the plugin for Unity? I want to make it work for Android but it is a bitch.

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.

Follow this Question

Answers Answers and Comments

17 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

Related Questions

DictationRecognizer: Does it have an option to return an array of possible translations? 0 Answers

Can you force Unity to use Oculus microphone? 0 Answers

Speech recognition on Android with Unity 3D 0 Answers

how to use Android's speechrecognizer in unity ? 0 Answers

Teamspeak SDK, Client fails to open devices 0 Answers


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