Closed Bug 1256521 Opened 9 years ago Closed 9 years ago

SAPI speech rate conversion is not accurate

Categories

(Core :: Web Speech, defect)

Unspecified
Windows
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla48
Tracking Status
firefox48 --- fixed

People

(Reporter: eeejay, Assigned: eeejay)

References

()

Details

Attachments

(1 file, 2 obsolete files)

The speech rate that is given is not correctly reflected in the output. For example, setting the uttance rate to 2, gives an increase of 1.43x.
MozReview-Commit-ID: EuQAqfoxwmo
Attachment #8730490 - Flags: review?(bugs)
I removed the min/max clipping to allow the underlying engine to deal with rate values outside the official "supported" range.
Attachment #8730490 - Attachment is obsolete: true
Attachment #8730490 - Flags: review?(bugs)
Attachment #8730840 - Flags: review?(bugs)
Blocks: 1254234
Comment on attachment 8730840 [details] [diff] [review] Normalize speech rate in Windows. Am I missing something here, or does passing rate 0 really not work? And since aRate isn't bounded in anyway, how is end results supposed to be [-10,10]
Attachment #8730840 - Flags: review?(bugs) → review-
With 0 case I mean that it is unclear what actually happens if 0 is passed as rate.
(In reply to Olli Pettay [:smaug] from comment #4) > Comment on attachment 8730840 [details] [diff] [review] > Normalize speech rate in Windows. > > Am I missing something here, or does passing rate 0 really not work? Oops, totally bad stuff happens. > And since aRate isn't bounded in anyway, how is end results supposed to be > [-10,10] According to the msdn docs, values above those bounds are allowed, but the engine does not need to support anything beyond. But there is a good point here, SpeechSynthesisUtterance.rate should bind the rate to 0.1-10. From a test with Chrome, they do that. I'll open a new bug for that.
MozReview-Commit-ID: EuQAqfoxwmo
Attachment #8730840 - Attachment is obsolete: true
Attachment #8731350 - Flags: review?(bugs)
Attachment #8731350 - Flags: review?(bugs) → review+
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla48
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: