TTS offline speech synthesis (language | Voice +)

Source: Internet
Author: User

TTS offline speech synthesis (language | Voice +)

There are three ways of speech synthesis in the sky.

  1. Online speech synthesis (free)

  2. Offline use of speech synthesis (free, need to install a language in the local app and download offline resources)

  3. Use the CyberLink Offline Voice pack (paid)

This allows for offline speech synthesis

Source

(Android Studio project): http://download.csdn.net/detail/q4878802/9063593

Description

Using the notation to achieve offline speech synthesis and online speech synthesis is very similar, the way to download the SDK is the same, the same is the choice of online speech synthesis , but the use of offline engine can be borrowed speech synthesized voice.

Online speech synthesis Address: http://blog.csdn.net/q4878802/article/details/48092495

Here's where say and online speech synthesis is not used.

1. Download and install the notes, download the offline resources

Offline Voice dictation articles are described in the article, address: http://blog.csdn.net/q4878802/article/details/47834601

2. Network permissions can be deleted, local synthesis does not require networking, but access to network status must have.
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
3. Change the recognition engine to the local engine
// 引擎类型 本地mTts.setParameter(SpeechConstant.ENGINE_TYPE, SpeechConstant.TYPE_LOCAL);
4. Comment out the parameters of the engine mode setting in the class of application initialization
// param.append(",");// param.append(SpeechConstant.ENGINE"=" + SpeechConstant.MODE_MSC);

speechconstant.mode_msc parameter means to use offline package resources, if the offline package resources can not be found to go network recognition, if the setting of this mode is not using the language (voice +) If the use of offline package, you need this parameter.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced. All articles, any technical point, whether original or reproduced, are used in the program or demo test before publishing! Bo Master qq:4878802.

TTS offline speech synthesis (language | Voice +)

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.