Skip to content

Provide accurate offline voice-to-text services for VR,AR and Android platforms, such as oculus quest1/2/pro or pico3/4

Notifications You must be signed in to change notification settings

jiangzhiyu1016/Android-Offline-Speech-Recognition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 

Repository files navigation

Reply to Question

About Windows version

  • 2023.1.21 This commitment has been fulfilled The Windows version has been added, the plug-in has been submitted for review, and the case has been updated

About VR Demonstration project

About Phrases equaling Events(keyword subscription, keyword auto-matching)

This is a good idea, I will record it in my development document and implement it as soon as possible in the next plan

  • 2023.2.4 This commitment has been fulfilled,We provide the similarity algorithm, which can return the similarity with a keyword

About Support for other languages

This is in the next Plan, which is to support almost all languages (you may need to train your own language model, of course, to make the process as easy as possible).

Android-Offline-Speech-Recognition

Provide accurate offline voice-to-text services for VR,AR and Android platforms, such as oculus quest1/2/pro or pico3/4

The plug-in supports UE 4.26/4.27/5.0/5.1, and since the store only allows submission of the last three versions, you can compile the plug-in yourself if you need other versions

Introduction

1.支持两种语音离线识别(英语和汉语)

  1. Support two kinds of offline speech recognition (English and Chinese) 2.简单,强大,创作者可以用几个蓝图函数轻松调用它
  2. Simple and powerful, creators can easily call it with several blueprint functions 3.不依赖任何其他服务,调用插件,打包android arm64就可以运行
  3. Do not rely on any other services, call plug-in, package android arm64 can run 4.为VR耳机开发,所以它超适合 oculus quest1/2/pro or pico3/4 我会提供一个VR一体机例子
  4. Developed for VR headsets, so it's super suitable for oculus quest1/2/pro or pico3/4 I'll give you an example of a VR all-in-one

How To Use:

Project Settings--Android

  • Build--Only Choose Support arm64 [aka arm64-v8a]
  • Advanced APK Packaging--Add permissions to support Voice chat (RECORD_AUDIO) @9VUM)65C_~S3LC%YJBHPWB image

How To call our plugin

  • 1.Make sure that Jvoice Plugin is enabled in your plugin
  • 2.For example image

function declaration

1.Jvoice_Execute(float Param,FString info);

  • Param: Alternate parameter, can be random floating point number
  • info = "1": Initialization model(Don't repeat calls,It is best to initialize the plugin in the level blueprint)
  • info = "2": Initialization audio(Don't repeat calls,It is best to initialize the plugin in the level blueprint)
  • info = "3": The interface is reserved. You are advised to use info=6
  • info = "4": The interface is reserved. You are advised to use info=6
  • info = "5": Reset the text of the model. After the call, the model returns the text to zero
  • info = "6": Read speech and convert text in a thread in real time,Calling it again terminates the thread

2.getJvoicePointer()

  • getJvoicePointer() gets an object that can bind real-time speech-to-text results to events

Call routine diagram summary

image

  1. Complete process, start real-time voice to text

image 2. the model returns the text to zero

image 3. Stop converting speech to text/Start converting speech to text

image

How to use in windows

  1. Call Jvoice WindowsInit to initialize

  2. Invoke Jvoice OpenExe to start the voice stream server

image

  1. Call Jvoice_WindowExit to end the voice service when you don't need it or before you end the game

image

  1. Like Android, you can receive real-time data here

image

  1. Just fill in the keywords and the text similarity is returned

image

  1. Converts the Chinese in the string to Pinyin/把字符串中的中文转为拼音

image

Common errors

Jvoice plug-in cannot be found if packaged on Android phone

  1. If you are a blueprint plug-in, you need to create a C++ class

image

If it is UE5.0 or below, create a new C++ class in the file TAB

image

  1. Visual studio opens after you create a new C++ class You can select debug directly, if there is a problem you can right-click the project and select rebuild solution

image

  1. If you are using the oculus branch of Unreal Engine, please send me an email with the Shopping Mall plugin purchase page and I will reply with a version that supports the oculus branch of Unreal Engine(Email: 1146094743@qq.com)
  • The Unreal Engine of the oculus branch does not seem to support conditional compilation, so I have specially prepared a VR example of the oculus branch for you and our corresponding plugin

备注: 本项目的kotlin部分来自开源项目https://github.com/k2-fsa/sherpa-ncnn

About

Provide accurate offline voice-to-text services for VR,AR and Android platforms, such as oculus quest1/2/pro or pico3/4

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published