[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problems with "end" callback in Python
From: |
James Simmons |
Subject: |
Problems with "end" callback in Python |
Date: |
Fri, 18 Apr 2008 16:24:33 -0500 |
Hynek,
I looked at the specification for SSML and I'm puzzled. Would it be
enough to put <mark> tags around each word, or would I need to make a
properly formed SSML document? Also, I'm not seeing any reference to
SSML in the page that explains how to use speech-dispatcher with
Python. A simple Python example would help lots.
The new implementation of SD sounds good.
James Simmons
Hynek Hanke wrote:
> James Simmons napsal(a)
>
>> Unfortunately the words have long pauses between them. It sounds
>> like the voice of Colossus having a really bad day.
>
> Yes, because in this way, each time you send something to the
> synthesizer, you must wait until the synthesizer synthesizes it. If
> you would send a longer text however, the synthesizer can work in
> advance to the audio output, so it is much faster. Also, there is much
> less network overhead etc. And as you pointed out very correctly, the
> resulting sound will have much better quality because it will contain
> intonation etc.
>
> So a better solution would be to insert index marks (see SSML
> specifications) into the text after each word and send it to Speech
> Dispatcher.
>
> Not even this is optimal because you have to guess where the word
> boundaries are. A new implementation of Speech Dispatcher (which will
> however still take some time to finish) has a full solution to the
> problem. You only send the original text and the synthesizer itself
> will find word and sentence boundaries and will notify the client
> application when they are reached (together with the exact position in
> the original text).
>
> The proposed insertion of custom SSML index marks into your text
> should however be a fairly good solution in your case. I hope you
> don't run into another threading problems with pygtk. It is quite a
> problem that it is not thread safe.
>
> With regards,
> Hynek
- Problems with "end" callback in Python, James Simmons, 2008/04/11
- Problems with "end" callback in Python, Milan Zamazal, 2008/04/11
- Problems with "end" callback in Python, James Simmons, 2008/04/11
- Problems with "end" callback in Python, Hynek Hanke, 2008/04/14
- Problems with "end" callback in Python, James Simmons, 2008/04/14
- Problems with "end" callback in Python, James Simmons, 2008/04/17
- Problems with "end" callback in Python, Hemant Goyal, 2008/04/18
- Problems with "end" callback in Python, James Simmons, 2008/04/18
- Problems with "end" callback in Python, Hynek Hanke, 2008/04/18
- Problems with "end" callback in Python,
James Simmons <=
- Problems with "end" callback in Python, Lukas Loehrer, 2008/04/20
- Problems with "end" callback in Python, Hynek Hanke, 2008/04/21
- Problems with "end" callback in Python, James Simmons, 2008/04/22
- Problems with "end" callback in Python, Hynek Hanke, 2008/04/23
- Pygtk does not play nicely with speech-dispatcher, James Simmons, 2008/04/24
- [pygtk] Pygtk does not play nicely with speech-dispatcher, Dave Aitel, 2008/04/24
- [pygtk] Pygtk does not play nicely with speech-dispatcher, James Simmons, 2008/04/24
- [pygtk] Pygtk does not play nicely with speech-dispatcher, Michael Urman, 2008/04/24
- [pygtk] Pygtk does not play nicely with speech-dispatcher, James Simmons, 2008/04/25
- [pygtk] Pygtk does not play nicely with speech-dispatcher, Dave Aitel, 2008/04/25