Integrated speech synthesis details, speech synthesis details

Source: Internet
Author: User

Integrated speech synthesis details, speech synthesis details

It should be noted that the University of Science and Technology does not provide Gradle dependencies. The Integration Method in the ADT environment is provided. Oh, dog !!! Are you still considering eclipse compatibility? (This is what I think is unfriendly) it is useless to paste the. so file to the libs folder. It does not compile the. so file of Tencent. (However, this is not mentioned in the official documentation !!!)

Therefore, you also need to configure the gradle file (which is configured in android ):

task nativeLibsToJar(type: Zip, description: "create a jar archive of the native libs") {          destinationDir file("$projectDir/libs")          baseName "Native_Libs2"          extension "jar"          from fileTree(dir: "libs", include: "**/*.so")          into "lib"      }      tasks.withType(JavaCompile) {          compileTask -> compileTask.dependsOn(nativeLibsToJar)      }  

The complete gradle is shown below:

Apply plugin: 'com. android. application 'apply plugin: 'tlin-android' apply plugin: 'tlin-android-extension' android {compileSdkVersion 26 buildToolsVersion '25. 0.0 'sourcesets {main {jniLibs. srcDirs = ['libs']} defaultConfig {applicationId "com. shtoone. hat "minSdkVersion 19 targetSdkVersion 22 versionCode 1 versionName" 1.0 "multiDexEnabled true} signingConfigs {signing {keyAlias '***** 'keypassword' ******* 'storepassword '*** * *** '} buildTypes {release {minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt '), 'proguard-rules. pro'} repositories {flatDir {dirs 'libs'}/* start */task nativeLibsToJar (type: Zip, description: "create a jar archive of the native libs ") {destinationDir file ("$ projectDir/libs") baseName "Native_Libs2" extension "jar" from fileTree (dir: "libs", include :"**/*. so ") into" lib "} tasks. withType (JavaCompile) {compileTask-> compileTask. dependsOn (nativeLibsToJar)}/* end */} dependencies {compile fileTree (dir: 'libs', include :['*. jar ']) compile "org. jetbrains. kotlin: kotlin-stdlib-jre7: $ kotlin_version "compile 'com. android. support: appcompat-v7: 26. + 'compile 'io. reactivex. rxjava2: rxandroid: 2.0.1 'compute' com. squareup. using fit2: Using Fit: 2.3.0 'compile 'com. squareup. except fit2: converter-gson: 2.3.0 'compile 'com. squareup. invalid fit2: adapter-rxjava2: 2.3.0 'compile 'com. trello. rxlifecycle2: rxlifecycle-kotlin: 2.2.1 'compile 'io. reactivex. rxjava2: rxkotlin: 2.1.0 '}
Conclusion

It has always been important to hear from the experts about gradle, but it is not important. Because gradle is usually used to add dependencies, and the sdk version is changed. I have never used obfuscation (I have heard of it many times ). Some of the above configurations are also pasted on others' blogs. The specific meanings of these configurations are unknown. It will take time to learn about gradle in the future, so you must use it flexibly.

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.