ChineseTtsTflite
0.5.0
Kotlin + Jetpack Compose + Tensorflow Liteを使用して開発されたTTSエンジンは、完全にオフラインで使用できます。
2つのオプションモデル:FastSpeechとTacotron、どちらもTensorFlowttsからのものです
Pinyinへのテキストの方法は、Tensorflowtts_chineseからのものです
リアルタイムの推論出力オーディオであるため、デバイスのパフォーマンスには特定の要件があります。
その中で、FastSpeechはより速いですが、生成されたオーディオは擬人化が少なく、通常のミッドレンジ以上の携帯電話で使用できます。
タコトロンには高性能要件があります。全体的な効果は優れていますが、非常に遅いため、現在はほとんど実用的ではなく、テストのみです。
├─app/src/main/assets
│ baker_mapper.json
│ fastspeech2_quan.tflite
│ mb_melgan.tflite
│ tacotron2_quan.tflite
./gradlew assembleReleaseアドレスをダウンロードしてください
Netron
Tensorflow Liteバイナリファイルサイズを削減します
トリミング後にAARをダウンロードしてください
トリミング前後のARRファイルサイズの比較:
Tensorflowtts
Tensorflowtts_chinese
Tensorflowガイド
参照TFテスト
参照tflite変換
Google Pico TTSソース
$ git clone https://github.com/TensorSpeech/TensorFlowTTS.git
$ cd TensorFlowTTS
$ pip install .
$ pip install git+https://github.com/repodiac/german_transliterate.git$ cd models-tf
$ python test-h5.py$ python convert-tflite.py