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

Module dectalk

source code

Dectalk voice definitions using ACSS.

This module encapsulates Dectalk-specific voice definitions. It maps device-independent ACSS voice definitions into appropriate Dectalk 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: dectalk.py 3535 2005-11-17 14:32:59Z raman $'
  _defined_voices = {}
  _table = {'family': {'betty': ':nb', 'child': ' :nk ', 'dennis...
  _male_ap = [(0, 96, 115), (1, 101, 112), (2, 108, 109), (3, 11...
  _man_ap = [(0, 50, 125), (1, 59, 123), (2, 68, 121), (3, 77, 1...
  _female_ap = [(0, 160, 115), (1, 170, 112), (2, 181, 109), (3,...
  _male_pr = [(0, 0, 0), (1, 20, 10), (2, 40, 20), (3, 60, 30), ...
  _man_pr = [(0, 0, 0), (1, 16, 20), (2, 32, 40), (3, 48, 60), (...
  _female_pr = [(0, 0, 0), (1, 50, 10), (2, 80, 20), (3, 100, 25...
  _male_stress = [(0, 0, 0, 0, 0), (1, 3, 6, 20, 3), (2, 6, 12, ...
  _man_stress = [(0, 0, 0, 0, 0), (1, 4, 6, 2, 2), (2, 8, 12, 4,...
  _female_stress = [(0, 1, 1, 0, 0), (1, 3, 4, 11, 0), (2, 5, 8,...
  _male_richness = [(0, 0, 100), (1, 14, 80), (2, 28, 60), (3, 4...
  _man_richness = [(0, 100, 0), (1, 96, 3), (2, 93, 6), (3, 90, ...
  _female_richness = [(0, 0, 100), (1, 8, 76), (2, 16, 52), (3, ...
  __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': ':nb',
            'child': ' :nk ',
            'dennis': ':nd',
            'female': ' :nb ',
            'frank': ':nf',
            'kid': ':nk',
            'male': ' :np ',
            'man': ' :nh ',
...

_male_ap

Value:
[(0, 96, 115),
 (1, 101, 112),
 (2, 108, 109),
 (3, 112, 106),
 (4, 118, 103),
 (5, 122, 100),
 (6, 128, 98),
 (7, 134, 96),
...

_man_ap

Value:
[(0, 50, 125),
 (1, 59, 123),
 (2, 68, 121),
 (3, 77, 120),
 (4, 83, 118),
 (5, 89, 115),
 (6, 95, 112),
 (7, 110, 105),
...

_female_ap

Value:
[(0, 160, 115),
 (1, 170, 112),
 (2, 181, 109),
 (3, 192, 106),
 (4, 200, 103),
 (5, 208, 100),
 (6, 219, 98),
 (7, 225, 96),
...

_male_pr

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

_man_pr

Value:
[(0, 0, 0),
 (1, 16, 20),
 (2, 32, 40),
 (3, 48, 60),
 (4, 64, 80),
 (5, 80, 100),
 (6, 137, 100),
 (7, 174, 100),
...

_female_pr

Value:
[(0, 0, 0),
 (1, 50, 10),
 (2, 80, 20),
 (3, 100, 25),
 (4, 110, 30),
 (5, 140, 35),
 (6, 165, 57),
 (7, 190, 75),
...

_male_stress

Value:
[(0, 0, 0, 0, 0),
 (1, 3, 6, 20, 3),
 (2, 6, 12, 40, 6),
 (3, 9, 18, 60, 9),
 (4, 12, 24, 80, 14),
 (5, 18, 32, 100, 18),
 (6, 34, 50, 100, 20),
 (7, 48, 65, 100, 35),
...

_man_stress

Value:
[(0, 0, 0, 0, 0),
 (1, 4, 6, 2, 2),
 (2, 8, 12, 4, 4),
 (3, 12, 18, 6, 6),
 (4, 16, 24, 8, 8),
 (5, 20, 30, 10, 9),
 (6, 40, 48, 32, 16),
 (7, 60, 66, 54, 22),
...

_female_stress

Value:
[(0, 1, 1, 0, 0),
 (1, 3, 4, 11, 0),
 (2, 5, 8, 22, 0),
 (3, 8, 12, 33, 0),
 (4, 11, 16, 44, 0),
 (5, 14, 20, 55, 0),
 (6, 35, 40, 65, 10),
 (7, 56, 80, 75, 20),
...

_male_richness

Value:
[(0, 0, 100),
 (1, 14, 80),
 (2, 28, 60),
 (3, 42, 40),
 (4, 56, 30),
 (5, 70, 28),
 (6, 60, 24),
 (7, 70, 16),
...

_man_richness

Value:
[(0, 100, 0),
 (1, 96, 3),
 (2, 93, 6),
 (3, 90, 9),
 (4, 88, 11),
 (5, 86, 12),
 (6, 60, 24),
 (7, 40, 44),
...

_female_richness

Value:
[(0, 0, 100),
 (1, 8, 76),
 (2, 16, 52),
 (3, 24, 28),
 (4, 32, 10),
 (5, 40, 4),
 (6, 50, 3),
 (7, 65, 3),
...