在 Unity iOS 中使用原生语音识别来生成文本
Speech to text and text to speech in Unity iOS and Unity Android
I have provided all Java and Object-C source. You can learn how it works and add optimizations or new features.
class SpeechToText
{
public bool isShowPopupAndroid = false;
...Requires Xcode8 or higher. Target iOS 10.0.
Add frameworks
- speech.farmwork
- AVFoundation.framework
Add permissions
- Privacy – Microphone Usage Description
- Privacy – Speech Recognition Usage Description暂无开放 Issues,或尚未同步最近议题。