You tickled my brain about something I'd seen a while back (by which I mean a month or two ago... I have PC-XT kinds of memory...) that might be helpful to you... dunno...

https://hackaday.io/project/19350-an-old-fashion-acoustic-modem-for-the-iphone