You will only receive transcriptions from APIs for which you have provided valid credentials (except Windows, which does not require any). Note that Google streaming speech-to-text uses a JSON credentials file, which must be saved under "GoogleStreamingSpeechToTextProgram" under Application.streamingAssetsPath, and whose name must match the "JSON Credentials File Name" field of the "Google Streaming Speech To Text Service" component of "Canvas/SpeechToTextServiceWidgets/GoogleStreamingSpeechToTextService".
Enter your credentials for each API by going through each child of "Canvas/SpeechToTextServiceWidgets" in the Inspector and changing the appropriate field(s) in the " Speech To Text Service" component.Open the scene "speechToTextComparison.unity".
Unity 3d text windows#
The SoX application must be located within Application.streamingAssetsPath/ThirdParty/SoX/Windows for Windows environments, and Application.streamingAssetsPath/ThirdParty/SoX/MacOSX otherwise.
Matthew Schoen from Unity Labs has given us permission to include his JSON library in the package.Example of speech-to-text service usage.AudioRecordingManager functions and properties.Speech-to-text services and results base functions and properties.Speech-to-text services and results inheritance hierarchy.This article on the Unity Labs website explains some of the concepts behind speech recognition and discusses the motivation behind this package.įrequently asked questions can be found here. There is also a sample scene that compares each of these APIs. This plugin interfaces Windows streaming, Wit.ai non-streaming, Google streaming/non-streaming, and IBM Watson streaming/non-streaming speech-to-text.