How can I save my android tts output in a wav file?

后端 未结 3 1708
野趣味
野趣味 2021-01-02 14:19

I have looked almost everywhere trying to find a way to save my android tts output in an audio file. I looked at these posts:

  • How can I save TTS output in an a
3条回答
  •  忘掉有多难
    2021-01-02 14:54

    The important method is synthesizeToFile. It will write the audio to a file on the device that you specify. You can then play that file with a MediaPlayer or you can pull it off the device onto your development system with the adb command-line tool using the command

    adb pull 
    

提交回复
热议问题