Specify correct output sampling rate for final conversion.
Enable debug logging for testing.