Comparison between Android Chinese speech synthesis (TTS) Engines
Yao. guet 2012-02-03, reprinted please indicate the source: http://blog.csdn.net/Yao_GUET
Android 1.6 and later versions support TTS (text-to-speech), which we call speech
IntroductionDue to the end of the six-year project, entered a period of "convalescence" of the vacuum period, so there is time to summarize the experience of the project, learning new posture and skills, to their own skill level is also a promotion. In addition, the individual lazy cancer serious, in order to force themselves to study hard, set up some Falai ( such as not write a blog woman cough cough, I will draw the flag successfully, Hum ), overall, the effect is very good.The project uses
[Android speech synthesis TTS] mainstream domestic engine comparison, androidttsPS.
TTS is TextToSpeech (from text to language), that is, speech synthesis. TTS intelligently converts text into natural speech streams. TTS technolog
PS.TTS that Texttospeech (from text to language), i.e. speech synthesis. TTS intelligently transforms text into a natural voice stream. TTS technology for real-time conversion of text files, the short conversion time can be calculated in seconds. In its unique intelligent voice controller, the
Using intent to invoke speech recognition programs
Description
Android mainly through recognizerintent to achieve speech recognition, in fact, the code is relatively simple, but if the speech recognition device can not be found, will throw an exception activitynotfoundexception, so we need to catch this exception. an
Android Speech Recognition uses cloud technologies to recognize users' voice input, including voice control technologies. We will use the APIS provided by Google to implement this function. Feature: recognize the voice input by the user and print it on the list.
First, create the following activity and create a listview control under the button (The project identified by the back-and-forth explicit language
[Android translation articles] Build the most convenient way between Voice Search and your application, android speech
Reprinted please indicate the source: http://blog.csdn.net/zhaokaiqiang1992
If you want your users to say "OK, Google", and then search for something in your application, how many lines of code is required? Actually, it does not take a few lines
First, you can use the following code to test whether your machine has the speech recognition function:[Java]PackageManager pm = getPackageManager ();List New Intent (RecognizerIntent. ACTION_RECOGNIZE_SPEECH), 0 );If (activities. size ()! = 0 ){/* Activity exists */Toast. makeText (AndroidVoiceActivity. this, "Activity exists", Toast. LENGTH_LONG). show ();} Else {/* Activity Not Found will throw ActivityNotFoundException if it is Not determined */To
. New Android Project
Just like the normal Android program, we need to join the Hkust Language SDK package, which mainly includes
Msc.jar and libmsc.so Dynamic Library files, project Lib screenshot
2, layout
This is only a simple layout, set only one button as the language recognition button and a text component for display recognition results, the layout f
The Android system supports speech synthesis in five languages (German, English, Spanish, French, and Italian), excluding Chinese. However, the Android system allows third parties to support TTS in Chinese, therefore, we only need to install a suitable third-party TTS application and set it in the system.
There are also several TTS tools available. In fact, we do
This project source code is to force voice application source code, to force is an Android phone application, combined with speech recognition and sharing, encourage users to use self-suggestive method to supplement positive energy.private void Showshare () { sharesdk.initsdk (this); Onekeyshare OKs = new Onekeyshare (); Oks.disablessowhenauthorize (); Share the notification icon
1. Register your account and add apps2. Select App for Android platform, download SDK3. Copy the Libs files from the SDK to the Libs directory of the Project4. Add User Rights uses-permissionAndroid:name= "Android.permission.INTERNET"/> uses-permissionAndroid:name= "Android.permission.RECORD_AUDIO"/> uses-permissionAndroid:name= "Android.permission.ACCESS_NETWORK_STATE"/> uses-permissionAndroid:
Apple's iphone uses Google technology for speech recognition. Android, which is a powerful Google app, naturally embeds its core technology into the Android system and carries forward it with google's Cloud technology.
Therefore, Google Voice Recognition is extremely easy to implement in
, R. raw. up );Down = MediaPlayer. create (this, R. raw. down );Left = MediaPlayer. create (this, R. raw. left );Right = MediaPlayer. create (this, R. raw. right );Enter = MediaPlayer. create (this, R. raw. enter );A = MediaPlayer. create (this, R. raw. );S = MediaPlayer. create (this, R. raw. s );D = MediaPlayer. create (this, R. raw. d );F = MediaPlayer. create (this, R. raw. f );}@ OverridePublic boolean onKeyDown (int keyCode, KeyEvent event ){MediaPlayer mp;Switch (keyCode ){Case KeyEvent.
What is the optimal number of text boxes on a single page of the App ?, App text box count
[1]. The number of optimal text boxes on each page varies with mobile phone screens of different sizes.
[1.1] for iPhone 4 screen size, when the resolution is 640x960px, the maximum nu
order to start from scratch to plan an app to the app online this process as the main line, as far as possible to fit the actual combat, the whole process involved in the various types of knowledge, not limited to a certain aspect, so that the reader of the app development knowledge has a comprehensive understanding, help them broaden their horizons, And be able
component that is not a vector diagram needs to be re-designed according to the 1280*720 size.2. Font and font size of Android app design specificationWe must know Android design Common sense: Android 4.0 after the use of the font is Roboto. Chinese font: Fangzheng Orchid Pavilion blackbodyToday we are explaining the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.