fix: avoid skipping the first phoneme

pull/2180/head
彭震东 3 years ago committed by GitHub
parent bc2613b772
commit 85102213ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -74,7 +74,7 @@ def process_sentence(config: Dict[str, Any],
start = 0
end = d_cumsum[-1]
if phones[0] == "sil" and len(durations) > 1:
start = times[1]
start = times[0]
durations = durations[1:]
phones = phones[1:]
if phones[-1] == 'sil' and len(durations) > 1:

Loading…
Cancel
Save