EveryVoiceTTS / EveryVoiceTTS/EveryVoice

improve max length handling

Open
#733 0 comments 0 reactions 1 assignee Claimed by @joanise View on GitHub
bug
Dominant language
Python
Stars
45
Forks
4
Avg merge
1d 8h
Merged PRs (30d)
14

Description

### Bug description

Currently, the algorithm in `textsplit.py` will cut a sentence off at the `max_length`, even if this splits up a word. Instead, this algorithm should **always** preserve words and perhaps even preserve whole sentences or phrases.

### How to reproduce the bug

```python
# Sample code to reproduce the problem
```

### Error messages and logs

```
# Error messages and logs here please
```

### Environment

Current environment

# Please paste the output of `everyvoice --diagnostic` here

# EveryVoice Diagnostic information

### More info

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.