Replace potentiometer with digital version (Speakers)
You ought to consider that the volume pot is logarithmic and this might mean that the digipot's resolution needs to be quite high to get a non granular change in volume when you control it.