The rifters in Starfish had a lung replaced by a system that does the appropriate gas exchange itself, removing all the problems of bad thingthings dissolving into and out of bodily fluids under extreme pressure, and the latter has a simpler system that produces breathing gas that is inhaled by an unmodified human.
I can't tell which system you're specifically interested in, though note that the former is more invasive and needs a direct gas exchange system with blood pumped through it (a little like ECMO, perhaps combined with liquid breathing, avoiding any high-pressure gas stages) to get oxygen in and CO2 out, whereas the. The latter system uses the diver's lungs for this purpose (effectively hydrox diving). That's obviously simpler and uninvasive, but doesn't solve problems of gas narcosis or the bends. I won't go into further detail here, but obviously there are details you need to care about.
The density of oxygen at STP is about 0.04013 mol/dm3 (a little less than the equivalent ideal gas)ideal gas), so we can see that our athlete needs ~5mmol of oxygen per second.
There's a single oxygen atom per water molecule. We therefore need 10mmol of water to general 5mmol of O2. The molecular weight of water is 18.01528 g/mol, therefore you can get your entire oxygen needs from .18g of pure water per second... an equivalent flow of just a 10ml per minute! (and FWIW,if you're interested in checking my results tally with this chemistry.SE question, so my working can be cross checked!answer will help)
Obviously flow rates in a real devisedevice would likely be higher, because you don't want your electrolysis cell to go completely dry to avoid. This avoids clogging from dissolved materials like salt or calcium carbonates, and stops liberated gas from getting too hot.
You can see that you can supply all the water you need for your electrolysing-gill needs from a tiny pump, with a tiny inlet hole (or several holes to reduce the risk of blockage). Similarly, a small vent hole (or series of holes) would be needed to vent any excess gas, which will be 10mmol/s of H2 if you're directly oxygenating the diver's blood.
A resting human needs more like 5-8l/m of air, which is vastly less than the athlete, and so someone floating or paddling gently will need an order of magnitude less water.
Note: if you are generating gas to be inhaled you will need to split more water to provide enough hydrogen to dilute the oxygen, because breathing to high a partial pressure of oxygen results in acute oxygen toxicity which can be fatal. This means you'll generate an excess of oxygen that will have to be vented into the sea, instead of an excess of hydrogen. Remember that whilst hydrox is potentially dangerous under normal circumstances, you're neither generating nor storing large quantities of the stuff, and what you do generate is either consumed immediately or vented. It should let you dive safely to depths of over 200m without narcosis risks. careful decompression will still be required, but this could be made be safer and easier than heliox diving.
Power requirements are a slightly larger problem. Water needs 237.24 kJ/mol to split, so to split the required rate of 10mmol water per second you need a ~2380W power supplyyou need a ~2380W power supply, which at the necessary 1.23v equates to a nearly 2KA current. This is equivalent to the power supply needed for welding. You'll be wanting a decent fuel cell or battery pack to drive your air supply!
Of course, a normal person might need as little as a tenth or a twentieth of the pro-athlete's flow rate, and in turn this reduces power demands to a more achievable 238Wrequiring a reasonable 238W power supply, leaving you with power demands more like an electric bicycle which is obviously acheivable with modern day battery tech without being too bulky or expensive.
Note: if you are generating gas to be inhaled you will need to split more water to provide enough hydrogen to dilute Even the oxygen, because breathing to high a partial pressure of oxygen results in acute oxygen toxicity which can be fatal. This means you'll generate an excessathlete can't sustain sprinting levels of oxygen that will haveeffort for long, compared to be vented into the sealikely length of a dive.