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

Prosody rate should support positive numbers #31

Closed
bklang opened this issue Jun 10, 2014 · 1 comment
Closed

Prosody rate should support positive numbers #31

bklang opened this issue Jun 10, 2014 · 1 comment

Comments

@bklang
Copy link
Member

bklang commented Jun 10, 2014

Attempting to specify the rate as either "10%" or "+10%" gives this error:

<ArgumentError> You must specify a valid rate ([positive-number](multiplier), :"x-slow", :slow, :medium, :fast, :"x-fast", :default)

The specification allows for relative values.

@benlangfeld
Copy link
Member

The specification states:

When a number is used to specify a relative change it acts as a multiplier of the default rate. For example, a value of 1 means no change in speaking rate, a value of 2 means a speaking rate twice the default rate, and a value of 0.5 means a speaking rate of half the default rate.

This is supported and is what is meant by [positive-number](multiplier). In your case, you want 1.1.

The spec also states:

Relative changes for the attributes above can be specified:

  • as a percentage (a number optionally preceded by "+" or "-" and followed by "%"), e.g. "3%", "+15.2%", "-8.0%", or
  • as a number

This percentage version is not currently supported.

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