简体   繁体   中英

How to control listen action in watson unity sdk?

I am working on speech-to-text project in Unity3D . And I'm very new on this topic, so trying to modify Watson Unity SDK's demo to understand how it works. I am trying to stop and start the listening action of Speech-toText function, but it listens and converts to text non-stop. Is there anyone can direct me to the area I should look?

I am using Unity 5.3.4p4. and I have downloaded the SDK from here - https://github.com/watson-developer-cloud/unity-sdk

thanks

The microphone widget is the component that is actually getting audio from the device. In the example you should be able to call OnToggleActive() on the microphone widget to stop sending data to SpeechToText.

The SpeechToText abstraction also has a method to StartListening() and StopListening() .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM