Microsoft Corp has announced that it will buy artificial intelligence and speech technology company Nuance Communications Inc. in an all-cash…