You might want to try DIY'ing something like this [1] depending on the extensiveness of her surgery. It basically records electrical signals (EMG) emitted by the vocal chords (subvocalizations) and can convert it to text with ML/other signal processing algorithms. Basically a rudimentary version of the transhumanist Brain-Computer Interfaces that would enable telepathy.
[1] https://dam-prod.media.mit.edu/x/2018/03/23/p43-kapur_BRjFwE...