Closed
Bug 1191667
Opened 9 years ago
Closed 9 years ago
No audio indicator when using speechSynthesis.speak() with indirect audio
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
mozilla43
People
(Reporter: m_kato, Assigned: m_kato)
References
Details
Attachments
(3 files)
(deleted),
patch
|
eeejay
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
eeejay
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
eeejay
:
review+
|
Details | Diff | Splinter Review |
nsSpeechTask has to use nsIAudioChannelAgent to notify audio indicator.
Env
Windows 8.1 (Web Speech Synthesis backend is only implemented on Windows)
Step
1. media.webspeech.synth.enabled=true on about:config and restart
2. Browser http://html5-examples.craic.com/google_chrome_text_to_speech.html
3. Click [Speak] in Demo 1:
Result
no audio indicator on current tab
Expected Result
Show audio indicator on current tab
Assignee | ||
Comment 1•9 years ago
|
||
nsSpeechTask should have nsIAudioChannelAgentCallback interface for audio indicator. So add dependency bug
Depends on: 1191814
Assignee | ||
Comment 2•9 years ago
|
||
Assignee: nobody → m_kato
Assignee | ||
Comment 3•9 years ago
|
||
Assignee | ||
Comment 4•9 years ago
|
||
Comment on attachment 8652174 [details] [diff] [review]
Part 1. Add onVolumeChanged method to nsISpeechTaskCallback
add onVolumeChanged method to change volume after starting speak.
Attachment #8652174 -
Flags: review?(eitan)
Assignee | ||
Comment 5•9 years ago
|
||
Comment on attachment 8652175 [details] [diff] [review]
Part 2. Call onVolumeChanged when changing volume
When WindowVolumeChanged is called, we should change volume on indirect service, too.
Attachment #8652175 -
Flags: review?(eitan)
Comment 6•9 years ago
|
||
Comment on attachment 8652174 [details] [diff] [review]
Part 1. Add onVolumeChanged method to nsISpeechTaskCallback
Review of attachment 8652174 [details] [diff] [review]:
-----------------------------------------------------------------
This is great! How about a test?
::: dom/media/webspeech/synth/nsISpeechService.idl
@@ +30,5 @@
> */
> void onCancel();
> +
> + /**
> + * The user or applicatioln has changed the volume of this speech.
typo, application.
Attachment #8652174 -
Flags: review?(eitan) → review+
Comment 7•9 years ago
|
||
Comment on attachment 8652175 [details] [diff] [review]
Part 2. Call onVolumeChanged when changing volume
Review of attachment 8652175 [details] [diff] [review]:
-----------------------------------------------------------------
Not sure why this is a separate patch, but this is good too.
Attachment #8652175 -
Flags: review?(eitan) → review+
Assignee | ||
Comment 8•9 years ago
|
||
Assignee | ||
Comment 9•9 years ago
|
||
Comment on attachment 8652708 [details] [diff] [review]
Part 3. Call NotifyStartedPlaying to show audio indicator
I forget additional fix.
I think that bug 1191814's fix is still incorrect. To show audio indicator, we have to call NotifyStartedPlaying().
Also, WindowVolumeChanged() has a bug (see bug 1197673), so to work correctly, we have to apply it too.
Attachment #8652708 -
Flags: review?(eitan)
Updated•9 years ago
|
Attachment #8652708 -
Flags: review?(eitan) → review+
Comment 10•9 years ago
|
||
Comment 11•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/cf29589b47c8
https://hg.mozilla.org/mozilla-central/rev/c55b38a5ee09
https://hg.mozilla.org/mozilla-central/rev/c92a7a24d757
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox43:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•