How to connect dryer duct to wall?
Assuming the rectangle is a 10" x 3-1/4" and the dryer is 4" round, you can get something custom made ($$$) or do this with two pieces;

rectangle to round:


round 6" to 4"