I had the same problem after I have activated Google Assistant Voice Recognition (the OK Google thing).
In camera mode you can easily fix it by deactivating from Settings the Audio Control mode (you won't be able to take automatically pictures by saying CHEESE).
When you are in Camera, Swype...