The quality command becomes available when using ebook2cw as a tone generator, and allows you to set the MP3 quality of the destination MP3 file. quality accepts values of integers from 1 (highest quality) through to 9 (lowest quality).

require "cw"

cw do
  puts 'quality = 9 (worst)'
  use_ebook2cw
  word_count 4
  print_letters
end

cw do
  puts 'quality = 1 (best)'
  use_ebook2cw
  quality    1
  word_count 4
  print_letters
end
Tags: commands