| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/browser/speech/endpointer/energy_endpointer_params.h" | 5 #include "content/browser/speech/endpointer/energy_endpointer_params.h" |
| 6 | 6 |
| 7 namespace speech_input { | 7 namespace speech { |
| 8 | 8 |
| 9 EnergyEndpointerParams::EnergyEndpointerParams() { | 9 EnergyEndpointerParams::EnergyEndpointerParams() { |
| 10 SetDefaults(); | 10 SetDefaults(); |
| 11 } | 11 } |
| 12 | 12 |
| 13 void EnergyEndpointerParams::SetDefaults() { | 13 void EnergyEndpointerParams::SetDefaults() { |
| 14 frame_period_ = 0.01f; | 14 frame_period_ = 0.01f; |
| 15 frame_duration_ = 0.01f; | 15 frame_duration_ = 0.01f; |
| 16 endpoint_margin_ = 0.2f; | 16 endpoint_margin_ = 0.2f; |
| 17 onset_window_ = 0.15f; | 17 onset_window_ = 0.15f; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 43 offset_confirm_dur_ = source.offset_confirm_dur(); | 43 offset_confirm_dur_ = source.offset_confirm_dur(); |
| 44 decision_threshold_ = source.decision_threshold(); | 44 decision_threshold_ = source.decision_threshold(); |
| 45 min_decision_threshold_ = source.min_decision_threshold(); | 45 min_decision_threshold_ = source.min_decision_threshold(); |
| 46 fast_update_dur_ = source.fast_update_dur(); | 46 fast_update_dur_ = source.fast_update_dur(); |
| 47 sample_rate_ = source.sample_rate(); | 47 sample_rate_ = source.sample_rate(); |
| 48 min_fundamental_frequency_ = source.min_fundamental_frequency(); | 48 min_fundamental_frequency_ = source.min_fundamental_frequency(); |
| 49 max_fundamental_frequency_ = source.max_fundamental_frequency(); | 49 max_fundamental_frequency_ = source.max_fundamental_frequency(); |
| 50 contamination_rejection_period_ = source.contamination_rejection_period(); | 50 contamination_rejection_period_ = source.contamination_rejection_period(); |
| 51 } | 51 } |
| 52 | 52 |
| 53 } // namespace speech_input | 53 } // namespace speech |
| OLD | NEW |