Skip to content

Latest commit

 

History

History

TTSSampleKotlin

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

TTSSample

License

English | 中文

Contents

Introduction

TTSSample uses the text-to-speech capability of HUAWEI ML Kit to convert text into speech. It realizes the function of speaking out immediately and generates speech that mimics human voices naturally, providing emotional and personalized text-to-speech services.

For details about the service introduction and access guide, visit the following website: [HUAWEI ML Kit Development Guide] (https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides-V5/service-introduction-0000001050040017-V5) [HUAWEI ML Kit API Reference] (https://developer.huawei.com/consumer/en/doc/development/HMSCore-References-V5/mlsdktts-overview-0000001050167594-V5)

Project directory structure

TTSSampleKotlin

|-- com.sample.ttssamplekotlin
    |-- Activity
        |-- TtsActivity // Text to speech

More Scenarios

The text-to-speech function provided by HUAWEI ML Kit is also applicable to the following scenarios: News reading, audio novels, stock information broadcast, voice navigation, and video dubbing.

Procedure

For details about the development procedure, please refer to [Machine Learning made Easy: - Text To Speech using Kotlin and Huawei ML Kit] (https://forums.developer.huawei.com/forumPortal/en/topicview?tid=0201272341735060076&fid=0101187876626530001).

Supported Environment

Android 4.4 or later is recommended.

License

The sample code has obtained the [Apache 2.0 license] (https://www.apache.org/licenses/LICENSE-2.0).