Speech recognition is excellent for getting input, but machines also need to learn from gathered data.

For that, there's a whole domain of AI called machine learning. Machine learning is such a vital step that it's often confused for AI.