Module outloud
[hide private]
[frames] | no frames]

Module outloud

source code

Outloud voice definitions using ACSS.

This module encapsulates Outloud-specific voice definitions. It maps device-independent ACSS voice definitions into appropriate Outloud voice parameter settings.


Version: $Revision: 3535 $

Date: $Date: 2005-11-17 06:32:59 -0800 (Thu, 17 Nov 2005) $

Author: $Author: raman $

Copyright: Copyright (c) 2005 T. V. Raman

License: LGPL

Functions [hide private]
 
_update_map(table, key, format, settings)
Internal function to update acss->synth mapping.
source code
 
getrate(r) source code
 
getvoicelist() source code
 
getvoice(acss)
Memoized function that returns synthesizer code for specified ACSS setting.
source code
 
acss2voice(acss)
Return synthesizer code.
source code
Variables [hide private]
  __id__ = '$Id: outloud.py 3535 2005-11-17 14:32:59Z raman $'
  _defined_voices = {}
  _table = {'family': {'betty': ' `v7 ', 'child': ' `v3 ', 'denn...
  _male_ap = [(0, 0, 90), (1, 13, 81), (2, 26, 72), (3, 39, 63),...
  _man_ap = [(0, 0, 90), (1, 10, 85), (2, 20, 80), (3, 30, 70), ...
  _female_ap = [(0, 5, 70), (1, 17, 66), (2, 33, 62), (3, 49, 58...
  _male_pr = [(0, 0), (1, 5), (2, 15), (3, 20), (4, 25), (5, 30)...
  _man_pr = [(0, 0), (1, 5), (2, 15), (3, 20), (4, 25), (5, 30),...
  _female_pr = [(0, 0), (1, 5), (2, 15), (3, 20), (4, 25), (5, 3...
  _male_stress = [(0, 0), (1, 5), (2, 10), (3, 15), (4, 20), (5,...
  _male_richness = [(0, 0, 60), (1, 4, 78), (2, 8, 80), (3, 12, ...
  __package__ = None
hash(x)
Function Details [hide private]

getvoice(acss)

source code 

Memoized function that returns synthesizer code for specified ACSS setting. Synthesizer code is a tupple of the form (open,close) where open sets the voice, and close resets it.


Variables Details [hide private]

_table

Value:
{'family': {'betty': ' `v7 ',
            'child': ' `v3 ',
            'dennis': ' `v1  `vb0 ',
            'female': ' `v7 ',
            'frank': ' `v1 `vr100 ',
            'harry': ' `v1 `vh65 `vb50 ',
            'kit': ' `v3 ',
            'male': ' `v1 ',
...

_male_ap

Value:
[(0, 0, 90),
 (1, 13, 81),
 (2, 26, 72),
 (3, 39, 63),
 (4, 52, 54),
 (5, 65, 50),
 (6, 74, 40),
 (7, 83, 30),
...

_man_ap

Value:
[(0, 0, 90),
 (1, 10, 85),
 (2, 20, 80),
 (3, 30, 70),
 (4, 40, 60),
 (5, 50, 60),
 (6, 60, 50),
 (7, 70, 40),
...

_female_ap

Value:
[(0, 5, 70),
 (1, 17, 66),
 (2, 33, 62),
 (3, 49, 58),
 (4, 65, 54),
 (5, 81, 50),
 (6, 85, 55),
 (7, 89, 60),
...

_male_pr

Value:
[(0, 0),
 (1, 5),
 (2, 15),
 (3, 20),
 (4, 25),
 (5, 30),
 (6, 47),
 (7, 64),
...

_man_pr

Value:
[(0, 0),
 (1, 5),
 (2, 15),
 (3, 20),
 (4, 25),
 (5, 30),
 (6, 47),
 (7, 64),
...

_female_pr

Value:
[(0, 0),
 (1, 5),
 (2, 15),
 (3, 20),
 (4, 25),
 (5, 30),
 (6, 47),
 (7, 64),
...

_male_stress

Value:
[(0, 0),
 (1, 5),
 (2, 10),
 (3, 15),
 (4, 20),
 (5, 25),
 (6, 30),
 (7, 35),
...

_male_richness

Value:
[(0, 0, 60),
 (1, 4, 78),
 (2, 8, 80),
 (3, 12, 84),
 (4, 16, 88),
 (5, 20, 92),
 (6, 24, 93),
 (7, 28, 95),
...