Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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
0
Question by collinsag · Oct 27, 2015 at 09:32 AM · c#serverwwwwindowsjson

Integrating Watson Speech-to-Text with Unity

Hi, I am trying to integrate IBM's Watson into my project for the purpose of speech-to-text, but am pretty mixed up about WWW & WWWForm, and what alternatives Do work within Unity 5. Presently, I can record the audio input from the microphone to a WAV file, and then I need help to figure out the appropriate way to connect it to Watson.

The Client side (Unity) - Mainly C# code.

One script will continuously record microphone input, and will save to a new audio file every 15 seconds.

And then another script will handle communication with Watson - 1) if "file_"+x+".wav" exists, send it to watson and wait for response back. process json result (as simple as printing the transcript portion), and then repeat.

Finally, the program will run on a pc with Windows 7 (I wish I could use linux but alas, I am only a pawn in this endeavor). I really appreciate any help - thank you,

Watson Docs https://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/speech-to-text/api/v1/?java#recognize

REST Methods http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/apis/#!/speech-to-text

Comment
Add comment · Show 1
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 sarachan · Jan 23, 2016 at 01:55 PM 0
Share

You may want to check this out... Just put out this week: https://developer.ibm.com/open/2016/01/21/introducing-watson-unity-sdk/

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by BelinExperience · May 27, 2017 at 02:19 PM

The mechanism you're proposing has already been superseded by a streaming protocol. You can get on the fly results from audio which you collect and send immediately, and the evolving results eventually come back as a final translation with a matrix of available alternates.

IBM provides an example in the SDK for how to use the speech to text streaming. It works well in your proposed environment.

watson-sdk\Scripts\Widgets\SpeechToTextWidget.cs

If you add this script to an object in your scene, and configure the speech to text service in the Unity IDE's WATSON menu, it should debug the text results as they are obtained.

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.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Getting a Code to Run at a Specific Time of Day Even if App is Off. 1 Answer

Retreive Jsonfile and Read It 0 Answers

Why is my upload/download WebRequest not working? 1 Answer

Multiple Cars not working 1 Answer

Problem Parsing Json (JsonUtility) 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