diff options
author | Jean-Michel Trivi <jmtrivi@google.com> | 2010-03-07 13:05:52 -0800 |
---|---|---|
committer | Jean-Michel Trivi <jmtrivi@google.com> | 2010-03-07 14:02:31 -0800 |
commit | 796325b619a467eade0d6303c05b94a791a9c241 (patch) | |
tree | 7a20d78765b1261907672c3a9bd579a765c9fc17 /packages/TtsService | |
parent | 83835359e51ddb8be37cea9bf4bb32f9390d82b7 (diff) | |
download | frameworks_base-796325b619a467eade0d6303c05b94a791a9c241.zip frameworks_base-796325b619a467eade0d6303c05b94a791a9c241.tar.gz frameworks_base-796325b619a467eade0d6303c05b94a791a9c241.tar.bz2 |
Fix bug 2449814
Reduced the amount of filtering and amplification at the output
of the Pico TTS engine v1.1.0.2
Change-Id: I89f577b5e94e171b4ed892faffb863f19428cc1a
Diffstat (limited to 'packages/TtsService')
-rwxr-xr-x | packages/TtsService/src/android/tts/SynthProxy.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/TtsService/src/android/tts/SynthProxy.java b/packages/TtsService/src/android/tts/SynthProxy.java index 6255275..71f2e8f 100755 --- a/packages/TtsService/src/android/tts/SynthProxy.java +++ b/packages/TtsService/src/android/tts/SynthProxy.java @@ -36,9 +36,9 @@ public class SynthProxy { // Such a huge filter gain is justified by how much energy in the low frequencies is "wasted" at // the output of the synthesis. The low shelving filter removes it, leaving room for // amplification. - private final static float PICO_FILTER_GAIN = 5.5f; // linear gain - private final static float PICO_FILTER_LOWSHELF_ATTENUATION = -18.0f; // in dB - private final static float PICO_FILTER_TRANSITION_FREQ = 1100.0f; // in Hz + private final static float PICO_FILTER_GAIN = 4.0f; // linear gain + private final static float PICO_FILTER_LOWSHELF_ATTENUATION = -16.0f; // in dB + private final static float PICO_FILTER_TRANSITION_FREQ = 1000.0f; // in Hz private final static float PICO_FILTER_SHELF_SLOPE = 1.0f; // Q // @@ -50,7 +50,7 @@ public class SynthProxy { */ public SynthProxy(String nativeSoLib) { boolean applyFilter = nativeSoLib.toLowerCase().contains("pico"); - Log.v(TtsService.SERVICE_TAG, "about to load "+ nativeSoLib + ", applyFilter="+applyFilter); + Log.v(TtsService.SERVICE_TAG, "1000 about to load "+ nativeSoLib + ", applyFilter="+applyFilter); native_setup(new WeakReference<SynthProxy>(this), nativeSoLib); native_setLowShelf(applyFilter, PICO_FILTER_GAIN, PICO_FILTER_LOWSHELF_ATTENUATION, PICO_FILTER_TRANSITION_FREQ, PICO_FILTER_SHELF_SLOPE); |