commit | a24b50bee1aca19028477b235862bcd2c37135ed | [log] [tgz] |
---|---|---|
author | Niels Egberts <nielse@google.com> | Fri Nov 20 14:47:31 2015 +0000 |
committer | Niels Egberts <nielse@google.com> | Mon Nov 23 10:15:39 2015 +0000 |
tree | c9ab12d1a1d1f7d99663202a3cdca6b840a31a19 | |
parent | f1e520169309f1303d4383298dd5644df59efe4b [diff] |
Restrict audioformat to 8bit, 16bit or float PCM with an annotation and a warning. TextToSpeech.synthesizeToFile has only ever worked with 8bit and 16bit PCM. In case of float PCM an invalid file would be generated and in case of other encodings the TTS engine would crash. Also add more annotations to SynthesisCallback. Change-Id: I1c44a44509e9b53bb2e1b0f2044b1a5919875e1c