speech-demo | voice api example - 语音api示例 | Speech library
kandi X-RAY | speech-demo Summary
kandi X-RAY | speech-demo Summary
voice api example
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Parses a JSON token .
- Get the next token .
- Populate the bean map .
- Get the next string .
- Get the next value .
- Convert a JSON object to a JSON string .
- Runs json post method
- Reads bytes into a byte array
- Emit a new key .
- get response bytes from http connection
speech-demo Key Features
speech-demo Examples and Code Snippets
Community Discussions
Trending Discussions on speech-demo
QUESTION
I'm considering porting a speech 2D HTML5 web game I've built to Unity2D for iPhone and Android. I'm a full-stack web developer, and not a Unity developer, so an agency would help me build the Unity app. Before signing with them, I need to be sure both Speech to Text (STT)
and Text to Speech (TTS)
services are available for Mandarin, Spanish, and English, otherwise I'd waste a lot of money up front.
For Web, Webkit Speech (STT Docs, STT Demo, TTS Docs, TTS Demo) is easily accessible via the browser. I've found that IBM Watson has an API available, and has demos for STT and TTS, and I've found that they have a Unity SDK here, but I don't have the skillsets to test the Unity SDK.
I'm looking for guidance on great STT and TTS APIs that the agency can use for those three foreign languages.
- Does the Unity SDK provide support for frontend STT and TTS audio streaming? STT needs to capture users' voice input and transcribe it quickly. Likewise, TTS needs to allow the user to hover over a target language word and listen to a near-native pronunciation.
- Does it offer both STT and TTS for Spanish, Mandarin, and English?
- What other NLP APIs are there which meet my requirements?
Apologies, I'm completely new to Unity/phone development so any guidance here would be extremely helpful. If no APIs exist that meet these requirements then Unity won't work for my app since STT and TTS is critical.
...ANSWER
Answered 2020-Jun-08 at 23:52Overall, realtime audio recording in Unity is awful, the system is simply not designed to record audio continuously. You can record a clip with AudioSource but that is a clip of fixed length, not a streaming solution.
For streaming you can get the audio with AudioFilterRead but it is not really the API for recording, it is more for effects. For recording it has unpredictable latency and also slows down the UI significantly.
As a result, you can only have push-to-talk kind of interaction, not realtime interaction.
If you have other alternatives you'd better consider them too. For example, you can consider native app.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install speech-demo
You can use speech-demo like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the speech-demo component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page