You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to have some small pauses during speech. Currently, the audio is continuously played, the best way to simulate natural pauses would be to have either a constant duration or a randomized duration for a pause.
The pauses can be triggered on whitespaces.
The current implementation has the following mechanism set up, but the speech sounds monotonic. Investigate this.
The text was updated successfully, but these errors were encountered:
* feat: add random intervals to timeouts.
I add a function to generate random timeouts for the execution of the speak function. This adds a more natural speech as was intended by the issue #8.
* refactor: reorganize code by using functions.
* refactor: change to number.
* fix: write to dialogueText now matches the speak timeout.
* feat: add extra treatment to remove extra white spaces.
* docs: update some of the JSDocs to match new functions.
* refactor: separate white space treatments to its own function.
* refactor: make random intervals relative to interval chosen.
Now, all the random intervals are inversely proportional to the interval
chosen. Which means:
+ if the interval chosen is low, the random interval is high.
+ if the interval chosen is high, the random interval is low.
This makes the voices more natural.
* refactor: remove unecessary console.log.
* fix: make only one audio context available for the code.
* refactor: follow suggestions for refactoring.
It would be nice to have some small pauses during speech. Currently, the audio is continuously played, the best way to simulate natural pauses would be to have either a constant duration or a randomized duration for a pause.
The pauses can be triggered on whitespaces.
The current implementation has the following mechanism set up, but the speech sounds monotonic. Investigate this.
The text was updated successfully, but these errors were encountered: