---
title: Text To Speech Recognition
canonical: https://0110.be/posts/Text_To_Speech_Recognition
markdown_url: https://0110.be/posts/Text_To_Speech_Recognition.md
id: 300
published_at: '2008-05-11T00:00:00Z'
updated_at: '2013-12-05T18:19:15Z'
author: Joren
tags:
- name: 0110.be
  markdown_url: https://0110.be/tags/0110.be.md
- name: Code
  markdown_url: https://0110.be/tags/Code.md
- name: Poging tot humor
  markdown_url: https://0110.be/tags/Poging%20tot%20humor.md
---

# Text To Speech Recognition

![Python Logo](https://0110.be/files/attachments/300/python-logo.gif "Python Logo")

Om [Python](http://www.python.org/) wat te leren kennen heb ik een "Text To Speech Recognition" programma geschreven. Het roept [SAPI 5.1](http://www.microsoft.com/downloads/details.aspx?FamilyID=5e86ec97-40a7-453f-b0ee-6583171b4530&displaylang=en) aan om een tekst voor te laten lezen door Microsoft Sam. Het voorgelezen stuk tekst wordt daarna meteen via microfoon opgenomen en Sam probeert het zelf, via Speech Recognition, te verstaan. Het resultaat van de speech recognition wordt dan gelezen door Sam enzovoort... Dit is een voorbeeld van Sam in dialoog met zichzelf:

> I am sitting in a room different from the one you are in now. I am recording the sound of my speaking voice and I am going to play it back into the room again.

> I'm sitting in a room different from the one U.N. NA I'm recording the sound of my speak English and I'm going to play it back into the room against

> I'm sitting in a room different from the one you could in a LAN recording the sound of my speak English and I'm going to clamp back into the room against

> I'm sitting in a room different from the one you put in a LAN recording the sound and I speak English and I'm going to clamp back into the room against

> I'm sitting in a room different from the one you put in a LAN recording the sound and I speak a Mac into ghent

> I'm sitting in a room different from the one you put in a LAN recording the sound and I speak a match into ghent

De broncode is "hier":\[TTSR.py\] te vinden.

