Skip to content

Commit 350b115

Browse files
committed
[Dual Frequency] Add presets with silence source
The presets with silence source allow the DUT record the sound from external speaker without playing it. A auxiliary phone can play the sound on the external speaker and the DUT will record.
1 parent 6250ad6 commit 350b115

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

apps/OboeTester/app/src/main/java/com/mobileer/oboetester/FrequencyPresetRepository.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,5 +128,12 @@ private void setupDualPresets() {
128128
mPresets.add(new FrequencyPreset("Voice Recognition", R.string.source_white_noise,
129129
StreamConfiguration.INPUT_PRESET_VOICE_RECOGNITION, new int[]{30, 100, 4000, 20000},
130130
bandsVoiceRec, 50.0f, AudioDeviceInfo.TYPE_UNKNOWN));
131+
132+
mPresets.add(new FrequencyPreset("Silence Unprocessed", R.string.source_silence, StreamConfiguration.INPUT_PRESET_UNPROCESSED,
133+
new int[]{30, 100, 7000, 20000}, bandsUnprocessed, 50.0f, AudioDeviceInfo.TYPE_UNKNOWN));
134+
135+
mPresets.add(new FrequencyPreset("Silence Voice Recognition", R.string.source_silence,
136+
StreamConfiguration.INPUT_PRESET_VOICE_RECOGNITION, new int[]{30, 100, 4000, 20000},
137+
bandsVoiceRec, 50.0f, AudioDeviceInfo.TYPE_UNKNOWN));
131138
}
132139
}

0 commit comments

Comments
 (0)