Preheat oven to 350°F (175°C). Grease and line your baking pan with parchment paper.
In a bowl, whisk together flour, baking powder, and salt. Set aside.
In a separate large bowl, cream butter and sugar until light and fluffy.
Beat in eggs one at a time, then add vanilla and almond extracts.
Mix in sour cream until smooth.
Gradually fold in the dry ingredients until just combined.
Spread half the batter in the prepared pan.
Scatter raspberries evenly over the batter, then top with remaining batter.
Prepare crumb topping: mix flour, sugars, almonds, and melted butter until crumbly.
Sprinkle the crumb topping evenly over the batter.
Bake for 40–45 minutes or until a toothpick inserted in the center comes out clean.
Cool in pan for 10 minutes, then transfer to a wire rack to cool completely.
Dust with powdered sugar if desired before serving.