A ready-to-use Unity plugin for Speech Input/Output using native Speech API of both Apple macOS and MS Windows.
Author: Jotaro Shigeyama and Thijs Roumen
SpeechOut speechOut = new SpeechOut();
SpeechIn speechIn = new SpeechIn(OnRecognized);
void Start(){
Dialog();
}
async void Dialog(){
await speechOut.Speak("Hello!");
await speechIn.Listen(new string[] { "Hello", "Hi", "Hey" });
await speechOut.Speak("How are you doing?");
await speechIn.Listen(new string[] { "I'm fine", "Nah", "I'm Sick" });
//...
}
This project repo contains
.dll
and .bundle
from above source project.This plugin works and tested on macOS Catalina or above, and Windows 10 (Windows 8 is not supported).
Right now English / Dutch / German / Japanese are supported. You need to install necessary language module from your OS setting.
Just simply grab all Scripts, Plugins (and if Scenes if you need) to your own Unity project file.
Some macOS users will experience broken speech input due to missing dictation kits: mostly because of bug on Apple. If you encounter some issue on speech input, please try these.
tested on Apple Swift version 5.1.3
cd NSSpeechTest
swift run
.bundle
file in Assets/Plugins
of your Unity project.See MyMacSpeechScript.cs
.
coming soon.
Your feedback is welcome!