TensorSpeech / TensorFlowTTS

:stuck_out_tongue_closed_eyes: TensorFlowTTS: Real-Time State-of-the-art Speech Synthesis for Tensorflow 2 (supported including English, French, Korean, Chinese, German and Easy to adapt for other languages)
https://tensorspeech.github.io/TensorFlowTTS/
Apache License 2.0
3.84k stars 815 forks source link

issue while running android app #144

Closed manmay-nakhashi closed 4 years ago

manmay-nakhashi commented 4 years ago

pushed uploaded model which is in assets folder. not able load model from given path W/System.err: java.lang.IllegalArgumentException: Contents of /storage/self/primary/fastspeech2_quant.tflite does not encode a valid TensorFlow Lite model: Could not open '/storage/self/primary/fastspeech2_quant.tflite'.

manmay-nakhashi commented 4 years ago

@mapledxf

dathudeptrai commented 4 years ago

@manmay-nakhashi you should change the path in the code to relative path or absolute path :)). https://github.com/TensorSpeech/TensorflowTTS/blob/master/examples/android/app/src/main/java/com/tensorspeech/tensorflowtts/MainActivity.java#L31-L32