Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

insert a custom pause between phrases #18

Closed
Balamoote opened this issue Dec 19, 2021 · 8 comments
Closed

insert a custom pause between phrases #18

Balamoote opened this issue Dec 19, 2021 · 8 comments

Comments

@Balamoote
Copy link

I would be nice to add a setting:

  • add a custom pause between phrases (after . ! ? - — – ...)
  • add custom pauses between words

Could be really useful for some people.

@drmfinlay
Copy link
Owner

drmfinlay commented Dec 22, 2021 via email

@Balamoote
Copy link
Author

Hello Danesprite!
Yes, I am aware of the setting, thank to point that one out.

As to the default pause settings, I would suggest 200 ms after a sentence and 400 after a paragraph. However, this heavily depends on one's personal preferrances and the text itself. That is why it would be nice to able to tweak the values depending on the situation.

@drmfinlay
Copy link
Owner

drmfinlay commented Dec 26, 2021 via email

@Balamoote
Copy link
Author

Hello Danesprite,

I think maybe an additional option "pause is proportional to speech rate" could solve this (and a warning won't hurt). Basically, a situation must be avoided when user sets a duration of, say, 500 ms at speed 2 and then wonders, why the pause is only 250 ms. For my use-case, only absolute numbers are of any practical meaning.

Another way is just define pauses for speech rate "1.0" and let the user do the math.

Usually, I would choose a certain speech rate and then adjust pauses - and here only absolute durations in ms make sense. Also if you consider Google speech engine. From version to version, the default perceived speech rate is sometimes different and needs to be adjusted but not the pauses. The pauses define structure of the text and I prefer them to be "standard" for every situation.

drmfinlay added a commit that referenced this issue Feb 9, 2022
Notable changes:
- Move most of the TTS setup code into ApplicationEx.
- Replace the Speaker class with methods in ApplicationEx.
- Move the file chooser code from MainActivity into a super-class.
- Rewrite UtteranceProgressListener classes to stream input instead.
- Add input filtering to be used for custom pauses (re: issue #18).
- Expose task progress to fragments via ActivityEvents.
- Implement fragment status text fields.
- Remove a number of dialogs rendered unnecessary by these changes.
- Update and correct some related string resources.
drmfinlay added a commit that referenced this issue Feb 9, 2022
Notable changes:
- Move most of the TTS setup code into ApplicationEx.
- Replace the Speaker class with methods in ApplicationEx.
- Move the file chooser code from MainActivity into a super-class.
- Rewrite UtteranceProgressListener classes to stream input instead.
- Add input filtering to be used for custom pauses (re: issue #18).
- Expose task progress to fragments via ActivityEvents.
- Implement fragment status text fields.
- Remove a number of dialogs rendered unnecessary by these changes.
- Update and correct some related string resources.
@drmfinlay
Copy link
Owner

drmfinlay commented Feb 12, 2022 via email

drmfinlay added a commit that referenced this issue Jun 22, 2022
Re: #18.

The durations available in the settings span from 100 to 500 ms.
There are also options for letting the TTS engine decide on the du-
ration and, as discussed, whether to scale custom silence values to
the selected speech rate.
drmfinlay added a commit that referenced this issue Jul 1, 2022
Re: #18.

Custom silence options have been added to the settings for these th-
ree textual elements. By default, the application is set to defer to
the TTS engine as before.

I have also added two silence duration choices: 750 ms and 1000 ms.

This changset marks the end of the work planned for issue #18.
@drmfinlay
Copy link
Owner

drmfinlay commented Jul 1, 2022 via email

@Balamoote
Copy link
Author

Hello Danesprite,

Thank you very much! Very good news indeed. I'll look forwards for the new release!

I agree with you on the pauses between words.

@drmfinlay
Copy link
Owner

This feature is now available in TTS Util version 4.0.0. See the releases page. The new version will be available on the Google Play and F-Droid stores soon.

Sorry this took me longer than a few days, @Balamoote.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants