Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/noir-neo/UniSpeech
iOS speech framework native plugin for Unity
https://github.com/noir-neo/UniSpeech
ios speech-recognition unity unity3d-plugin
Last synced: about 2 months ago
JSON representation
iOS speech framework native plugin for Unity
- Host: GitHub
- URL: https://github.com/noir-neo/UniSpeech
- Owner: noir-neo
- License: mit
- Created: 2017-10-11T10:09:23.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2017-10-11T15:13:08.000Z (over 6 years ago)
- Last Synced: 2024-01-27T23:44:38.610Z (5 months ago)
- Topics: ios, speech-recognition, unity, unity3d-plugin
- Language: C#
- Homepage:
- Size: 24.4 KB
- Stars: 14
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-stars - UniSpeech - neo | 14 | (C#)
- awesome-unity-open-source-on-github - UniSpeech - iOS speech framework native plugin for Unity (iOS)
README
# UniSpeech
iOS Speech framework plugin for Unity
## Installation
1. From Source
- Clone this repo and copy the `Assets/UniSpeech/Pluigins/iOS/` and `Assets/UnitySwift/` directory to your own project.
## Usage```
using UniSpeech;
using UnityEngine;public class SpeechRecognizer : MonoBehaviour, ISpeechRecognizer
{
void Start()
{
UniSpeech.SpeechRecognizer.CallbackGameObjectName = gameObject.name;
UniSpeech.SpeechRecognizer.RequestRecognizerAuthorization();
}public void OnAuthorized()
{
UniSpeech.SpeechRecognizer.StartRecord();
}public void OnRecognized(string transcription)
{
Debug.Log("OnRecognized: " + transcription);
}public void OnError(string description) { }
public void OnUnauthorized() { }
public void OnAvailable() { }
public void OnUnavailable() { }
}
```You need to configure `Edit > Project Settings > Player > iOS > Other Settings > Microphone Usage Description`
![image](https://user-images.githubusercontent.com/3272594/31448986-b5259b02-aee0-11e7-8403-7d5451e341b4.png)## Sample
See [UniSpeech/Sample](https://github.com/noir-neo/UniSpeech/tree/master/Assets/UniSpeech/Sample)
## Requirements
- iOS 10+
## License
the MIT License.
Dependent on [miyabi/unity-swift](https://github.com/miyabi/unity-swift)