The frequency command is used for setting the frequency of tone used in the test. The default frequency is set to 500 Hz which is suitable for many people. The value is in Hertz.
Here we have a testing with a frequency of 800 Hz.
require "cw" cw do frequency 800 word_count 4 end