Changeset 2483

Show
Ignore:
Timestamp:
11/09/08 22:51:56 (2 months ago)
Author:
bzr
Message:

Sapi4: disable particular voice parameters if their min and max are found to be equal or max is less than min.

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk

    • Property bzr:revision-info
      •  

        old new  
        1 timestamp: 2008-11-09 22:45:27.869999886 +1100 
        2 committer: James Teh <jamie@jantrid.net> 
         1timestamp: 2008-11-10 09:49:19.440000057 +1100 
         2committer: Michael Curran <mick@kulgan.net> 
        33properties:  
        44        branch-nick: main 
    • Property bzr:revision-id:v3-list-QlpoOTFBWSZTWbrL2vUAAB1VgAAQABCAQDrrnqAgAFCgaaGRkxBoTIJ6mmaNRwhndFAoNhZjh_YY4a01fOg1ulgNNC2UrzPdXXEnDpX8XckU4UJC6y9r1A..
      •  

        old new  
        2522522280 jamie@jantrid.net-20081106075153-p4o534murjkdzapb 
        2532532281 jamie@jantrid.net-20081109114527-f0kqf0o8k8713bsc 
         2542282 mick@kulgan.net-20081109224919-7rp3kij24boyy66f 
    • Property bzr:file-ids
      •  

        old new  
        1 source/config/__init__.py       46@dbe06fc7-9119-0410-a01d-9dbf589ecbba:trunk:source%2Fconfig%2F__init__.py 
        2 source/gui/settingsDialogs.py   299@dbe06fc7-9119-0410-a01d-9dbf589ecbba:trunk:source%2Fgui%2FsettingsDialogs.py 
        3 source/synthDriverHandler.py    97@dbe06fc7-9119-0410-a01d-9dbf589ecbba:trunk:source%2FsynthDriverHandler.py 
        4 source/synthDrivers/_espeak.py  612@dbe06fc7-9119-0410-a01d-9dbf589ecbba:trunk:source%2FsynthDrivers%2F_espeak.py 
        5 source/synthDrivers/audiologic.py       audiologic.py-20080701031200-sjkq3p9snm96sxhq-2 
        6 source/synthDrivers/espeak.py   612@dbe06fc7-9119-0410-a01d-9dbf589ecbba:trunk:source%2FsynthDrivers%2Fespeak.py 
        71source/synthDrivers/sapi4.py    sapi4.py-20081105062308-fz5mgli5iso5vcdq-2 
        8 source/synthDrivers/sapi5.py    94@dbe06fc7-9119-0410-a01d-9dbf589ecbba:trunk:source%2FsynthDrivers%2Fsapi5.py 
        9 source/synthSettingsRing.py     1111@dbe06fc7-9119-0410-a01d-9dbf589ecbba:trunk:source%2F_synthSettingsRing.py 
        10 user_docs/whats%20new.txt       559@dbe06fc7-9119-0410-a01d-9dbf589ecbba:trunk:user_docs%2Fwhats%20new.txt 
    • Property bzr:text-parents
      •  

        old new  
        1 source/config/__init__.py       mick@kulgan.net-20081106053934-wy7im3e0a4n01gd5 
        2 source/gui/settingsDialogs.py   jamie@jantrid.net-20081109091405-cr7i6qx0r32qxzv2 
        3 source/synthDriverHandler.py    jamie@jantrid.net-20081109113343-zabfejnnivsxf2gd 
        4 source/synthDrivers/_espeak.py  jamie@jantrid.net-20081106064553-6iftm4vexioo630i 
        5 source/synthDrivers/audiologic.py       jamie@jantrid.net-20081109052259-kxgyslupb8qa1jye 
        6 source/synthDrivers/espeak.py   jamie@jantrid.net-20081109052655-7z096nch59fgwzl5 
        7 source/synthDrivers/sapi4.py    mick@kulgan.net-20081109055011-8tcy3vfb69sjdwge 
        8 source/synthDrivers/sapi5.py    jamie@jantrid.net-20081109052259-kxgyslupb8qa1jye 
        9 source/synthSettingsRing.py     jamie@jantrid.net-20081109100954-vzi0052zk64nib6y 
        10 user_docs/whats%20new.txt       jamie@jantrid.net-20081109105054-ollwznuzdm6qy6ho 
  • trunk/source/synthDrivers/sapi4.py

    r2482 r2483  
    113113                        self._maxRate=newVal.value-1 
    114114                        self._ttsAttrs.SpeedSet(oldVal.value) 
     115                        if self.maxRate<=self.minRate: 
     116                                self.hasRate=False 
    115117                #Find out pitch limits 
    116118                self.hasPitch=bool(mode.dwFeatures&TTSFEATURE_PITCH) 
     
    126128                        self._maxPitch=newVal.value 
    127129                        self._ttsAttrs.PitchSet(oldVal.value) 
     130                        if self.maxPitch<=self.minPitch: 
     131                                self.hasPitch=False 
    128132                #Find volume limits 
    129133                self.hasVolume=bool(mode.dwFeatures&TTSFEATURE_VOLUME) 
     
    139143                        self._maxVolume=newVal.value 
    140144                        self._ttsAttrs.VolumeSet(oldVal.value) 
     145                        if self.maxVolume<=self.minVolume: 
     146                                self.hasVolume=False 
    141147 
    142148        def _get_voice(self):