georgid/AlignmentDuration

when WITH_SHORT_PAUSES = 1

Opened this issue · 1 comments

we got error: last state for word SAZ is not sp. Sorry - not implemented.

The problem is it is that I removed sp from SAZ so that it is not sil sp but sil.

remove
align._PhonemeBase.PhonemeBase.getNumStates
and replace by return 1

move this logic ```

   stateIndices = range( phoneme.getNumStates())   
        if ParametersAlgo.ONLY_MIDDLE_STATE and len(phoneme.model.states) == 3: # take only middle state. 1 is middle in 0,1,2
                 stateIndices = [1]

from align._LyricsWithModelsBase._LyricsWithModelsBase._phonemes2stateNetwork
to align._LyricsWithModelsBase._LyricsWithModelsBase._createStateWithDur