Re: [orca-list] Orca failing to find speech servers
- From: Tomas Cerha <cerha brailcom org>
- To: Willie Walker <William Walker Sun COM>
- Cc: "David E. Price" <deprice cs utah edu>, orca-list gnome org
- Subject: Re: [orca-list] Orca failing to find speech servers
- Date: Mon, 30 Mar 2009 10:49:50 +0200
Willie Walker wrote:
The other traceback is from the speech-dispatcher factory, and
it looks like the speechdispatcherfactory.py:_getSpeechServer is failing
to create a server. So, this *might* be a speech-dispatcher
configuration problem.
Hello, Speech Dispatcher is not installed in this case. This is
correctly detected, but not correctly handled in getSpeechServers (my
fault). The attached patch fixes this. Shall I send it through bugzilla?
Best regards, Tomas
Index: speechdispatcherfactory.py
===================================================================
--- speechdispatcherfactory.py (revision 4656)
+++ speechdispatcherfactory.py (working copy)
@@ -1,4 +1,4 @@
-# Copyright 2006, 2007, 2008 Brailcom, o.p.s.
+# Copyright 2006, 2007, 2008, 2009 Brailcom, o.p.s.
#
# Author: Tomas Cerha <cerha brailcom org>
#
@@ -90,10 +90,12 @@
getFactoryName = staticmethod(getFactoryName)
def getSpeechServers():
+ servers = []
default = SpeechServer._getSpeechServer(SpeechServer.DEFAULT_SERVER_ID)
- servers = [default]
- for module in default.list_output_modules():
- servers.append(SpeechServer._getSpeechServer(module))
+ if default is not None:
+ servers.append(default)
+ for module in default.list_output_modules():
+ servers.append(SpeechServer._getSpeechServer(module))
return servers
getSpeechServers = staticmethod(getSpeechServers)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]