Doc: Fix the broken code snippets in the Quick Speech Example


This commit fixes the code snippets and slightly improves the formatting
within the article.

Pick-to: 6.10 6.9 6.8
Change-Id: Ic2a352eaba705fb88120cfc39d9c9dd13aa45fbd
Reviewed-by: Tim Blechmann <tim.blechmann@qt.io>
commitcf533ad6e0ad0cb0de550836a6a56b0630f864ea
parentb0fc1e0330408f4241c1d9ba76bf79c14f45e7f8
authorAlexei Cazacov <alexei.cazacov@qt.io>
committerAlexei Cazacov <alexei.cazacov@qt.io>
commit timeFri, 29 Aug 2025 08:46:16 +0300